Typedefs | |
| using | SheetCollisions = std::array<uint8_t, kCollisionsPerSheet> |
| using | ResolvedSheetIds = std::array<uint8_t, kResolvedSheetCount> |
| using | Tile8Collisions = std::array<uint8_t, kTile8CollisionCount> |
Enumerations | |
| enum class | LayoutDialect { kUnmarked , kVanilla , kZSCustomV1 , kZSCustomV2 , kZSCustomV3 , kZScreamV5 , kUnknown } |
Functions | |
| LayoutDialect | DetectLayout (const Rom &rom) |
| const char * | LayoutName (LayoutDialect dialect) |
| bool | CanUseTailExpansion (const Rom &rom) |
| absl::Status | ValidateSheetCollisionTable (const Rom &rom) |
| absl::StatusOr< SheetCollisions > | LoadSheetCollisions (const Rom &rom, int sheet_id) |
| absl::StatusOr< Tile8Collisions > | ComposeTile8Collisions (const Rom &rom, const ResolvedSheetIds &sheet_ids) |
Variables | |
| constexpr size_t | kVersionMarkerPc = 0x140145 |
| constexpr uint8_t | kPerSheetCollisionMarker = 0x05 |
| constexpr size_t | kSheetCollisionTablePc = 0x141938 |
| constexpr size_t | kSheetCollisionTableSize = 0x2000 |
| constexpr size_t | kCollisionSheetCount = 128 |
| constexpr size_t | kCollisionsPerSheet = 64 |
| constexpr size_t | kResolvedSheetCount = 8 |
| constexpr size_t | kTile8CollisionCount = 512 |
| using yaze::zelda3::zscream::SheetCollisions = std::array<uint8_t, kCollisionsPerSheet> |
Definition at line 24 of file zscream_custom_layout.h.
| using yaze::zelda3::zscream::ResolvedSheetIds = std::array<uint8_t, kResolvedSheetCount> |
Definition at line 25 of file zscream_custom_layout.h.
| using yaze::zelda3::zscream::Tile8Collisions = std::array<uint8_t, kTile8CollisionCount> |
Definition at line 26 of file zscream_custom_layout.h.
|
strong |
| Enumerator | |
|---|---|
| kUnmarked | |
| kVanilla | |
| kZSCustomV1 | |
| kZSCustomV2 | |
| kZSCustomV3 | |
| kZScreamV5 | |
| kUnknown | |
Definition at line 30 of file zscream_custom_layout.h.
|
inline |
Definition at line 40 of file zscream_custom_layout.h.
References kPerSheetCollisionMarker, kUnknown, kUnmarked, kVanilla, kVersionMarkerPc, kZScreamV5, kZSCustomV1, kZSCustomV2, kZSCustomV3, and yaze::Rom::vector().
Referenced by CanUseTailExpansion(), yaze::zelda3::CheckTailMapExpansion(), yaze::zelda3::DetectOverworldRomProfile(), yaze::zelda3::Overworld::GetTile8CollisionTypes(), yaze::zelda3::Overworld::LoadTileTypes(), yaze::zelda3::Overworld::SaveOverworldTilesType(), yaze::editor::Tile16Editor::UpdateAsPanel(), and ValidateSheetCollisionTable().

|
inline |
Definition at line 62 of file zscream_custom_layout.h.
References kUnknown, kUnmarked, kVanilla, kZScreamV5, kZSCustomV1, kZSCustomV2, and kZSCustomV3.
Referenced by yaze::zelda3::CheckTailMapExpansion(), yaze::editor::PopupManager::DrawRomInfoPopup(), and yaze::cli::handlers::RomInfoCommandHandler::Execute().
|
inline |
Definition at line 85 of file zscream_custom_layout.h.
References DetectLayout(), kUnknown, kUnmarked, kVanilla, kZScreamV5, kZSCustomV1, kZSCustomV2, and kZSCustomV3.
Referenced by yaze::zelda3::OverworldUpgradeSystem::ApplyZSCustomOverworldASM(), yaze::zelda3::BuildOverworldAllocationReport(), yaze::zelda3::CheckTailMapExpansion(), yaze::cli::handlers::RomInfoCommandHandler::Execute(), yaze::zelda3::Overworld::HasExpandedPointerTables(), and yaze::zelda3::IsSpecialTailMapExpansionEnabled().

|
inline |
Definition at line 100 of file zscream_custom_layout.h.
References DetectLayout(), kSheetCollisionTablePc, kSheetCollisionTableSize, kZScreamV5, and yaze::Rom::vector().
Referenced by ComposeTile8Collisions(), yaze::zelda3::Overworld::GetTile8CollisionTypes(), and LoadSheetCollisions().

|
inline |
Definition at line 114 of file zscream_custom_layout.h.
References kCollisionSheetCount, kCollisionsPerSheet, kSheetCollisionTablePc, ValidateSheetCollisionTable(), and yaze::Rom::vector().
Referenced by ComposeTile8Collisions().

|
inline |
Definition at line 135 of file zscream_custom_layout.h.
References kCollisionsPerSheet, LoadSheetCollisions(), and ValidateSheetCollisionTable().
Referenced by yaze::zelda3::Overworld::GetTile8CollisionTypes().

|
inlineconstexpr |
Definition at line 15 of file zscream_custom_layout.h.
Referenced by DetectLayout().
|
inlineconstexpr |
Definition at line 16 of file zscream_custom_layout.h.
Referenced by DetectLayout().
|
inlineconstexpr |
Definition at line 17 of file zscream_custom_layout.h.
Referenced by LoadSheetCollisions(), and ValidateSheetCollisionTable().
|
inlineconstexpr |
Definition at line 18 of file zscream_custom_layout.h.
Referenced by ValidateSheetCollisionTable().
|
inlineconstexpr |
Definition at line 19 of file zscream_custom_layout.h.
Referenced by LoadSheetCollisions().
|
inlineconstexpr |
Definition at line 20 of file zscream_custom_layout.h.
Referenced by ComposeTile8Collisions(), and LoadSheetCollisions().
|
inlineconstexpr |
Definition at line 21 of file zscream_custom_layout.h.
|
inlineconstexpr |
Definition at line 22 of file zscream_custom_layout.h.