yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
custom_object.cc File Reference
#include "zelda3/dungeon/custom_object.h"
#include <algorithm>
#include <cctype>
#include <filesystem>
#include <fstream>
#include <iterator>
#include <memory>
#include <string>
#include <string_view>
#include <tuple>
#include <unordered_set>
#include <utility>
#include "absl/strings/str_format.h"
#include "core/source_artifact_publisher.h"
#include "util/log.h"
#include "util/macro.h"
#include "zelda3/dungeon/geometry/object_geometry.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::zelda3
 Zelda 3 specific classes and functions.
 
namespace  yaze::zelda3::anonymous_namespace{custom_object.cc}
 

Functions

absl::StatusOr< std::vector< uint8_t > > yaze::zelda3::anonymous_namespace{custom_object.cc}::ReadBinaryFileAtPath (const fs::path &path)
 
bool yaze::zelda3::anonymous_namespace{custom_object.cc}::PathStartsWith (const fs::path &path, const fs::path &root)
 
bool yaze::zelda3::anonymous_namespace{custom_object.cc}::IsPortableAssetComponent (std::string_view component)
 
std::vector< CustomObject::TileMapEntryyaze::zelda3::anonymous_namespace{custom_object.cc}::VisibleRuntimeTiles (const CustomObject &object)
 
absl::StatusOr< CustomObjectyaze::zelda3::DecodeCustomObjectBinary (const std::vector< uint8_t > &data)
 
absl::StatusOr< std::vector< uint8_t > > yaze::zelda3::EncodeCustomObjectBinary (const CustomObject &object)
 
absl::StatusOr< fs::path > yaze::zelda3::ResolveCustomObjectAssetPath (const std::string &custom_objects_folder, const std::string &filename)
 
absl::StatusOr< CustomObjectAssetyaze::zelda3::LoadCustomObjectAsset (const std::string &custom_objects_folder, const std::string &filename)
 
absl::StatusOr< std::vector< uint8_t > > yaze::zelda3::PublishCustomObjectBinary (const std::string &custom_objects_folder, const std::string &filename, const CustomObject &object, const std::vector< uint8_t > &expected_source_bytes, const fs::path &expected_resolved_path)
 
uint16_t yaze::zelda3::CustomObjectRuntimeTileWord (int object_id, uint16_t source_word)
 

Variables

constexpr int yaze::zelda3::anonymous_namespace{custom_object.cc}::kBufferStrideBytes = 128
 
constexpr int yaze::zelda3::anonymous_namespace{custom_object.cc}::kBufferWidthTiles = kBufferStrideBytes / 2
 
constexpr int yaze::zelda3::anonymous_namespace{custom_object.cc}::kBufferHeightTiles = 64
 
constexpr int yaze::zelda3::anonymous_namespace{custom_object.cc}::kBufferSizeBytes = kBufferStrideBytes * kBufferHeightTiles
 
constexpr int yaze::zelda3::anonymous_namespace{custom_object.cc}::kMaxSegmentTiles = 0x20
 
const core::SourceArtifactPublisherLabels yaze::zelda3::anonymous_namespace{custom_object.cc}::kCustomObjectPublisherLabels