yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_room_transfer.h File Reference
#include <cstdint>
#include <optional>
#include <string>
#include "absl/status/statusor.h"
#include "app/editor/dungeon/dungeon_selection_edit.h"
#include "zelda3/dungeon/dungeon_rom_addresses.h"

Go to the source code of this file.

Classes

struct  yaze::editor::DungeonRoomTransferOptions
 
struct  yaze::editor::DungeonRoomDocument
 
struct  yaze::editor::DungeonRoomTransferPlan
 

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 

Functions

DungeonRoomDocument yaze::editor::CaptureDungeonRoomDocument (const zelda3::Room &room)
 
bool yaze::editor::SameDungeonRoomDocument (const DungeonRoomDocument &a, const DungeonRoomDocument &b)
 
absl::Status yaze::editor::ValidateDungeonRoomDocument (const DungeonRoomDocument &document)
 
absl::Status yaze::editor::ValidateDungeonRoomDocumentForInterchange (const DungeonRoomDocument &document)
 
absl::StatusOr< std::string > yaze::editor::SerializeDungeonRoomDocument (const DungeonRoomDocument &document)
 
absl::StatusOr< DungeonRoomDocument > yaze::editor::ParseDungeonRoomDocument (const std::string &json)
 
absl::StatusOr< DungeonRoomTransferPlan > yaze::editor::PlanDungeonRoomTransfer (const zelda3::Room &target, const DungeonRoomDocument &source, DungeonRoomTransferOptions options)
 
void yaze::editor::ApplyDungeonRoomDocument (zelda3::Room &room, const DungeonRoomDocument &document)
 

Variables

constexpr uint16_t yaze::editor::kTransferObjects = 1
 
constexpr uint16_t yaze::editor::kTransferDoors = 2
 
constexpr uint16_t yaze::editor::kTransferSprites = 4
 
constexpr uint16_t yaze::editor::kTransferItems = 8
 
constexpr uint16_t yaze::editor::kTransferMetadata = 16
 
constexpr uint16_t yaze::editor::kTransferCollision = 32
 
constexpr uint16_t yaze::editor::kTransferWater = 64
 
constexpr uint16_t yaze::editor::kTransferCore = 31
 
constexpr uint16_t yaze::editor::kTransferAll = 127
 
constexpr size_t yaze::editor::kMaxDungeonRoomDocumentBytes = 1024 * 1024
 
constexpr size_t yaze::editor::kMaxDungeonRoomDocumentObjects = 4096
 
constexpr size_t yaze::editor::kMaxDungeonRoomDocumentChestRecords
 
constexpr char yaze::editor::kRoomTransferSharedHeaderPayload []