remove overworld namespace
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace zelda3 {
|
||||
namespace overworld {
|
||||
|
||||
absl::Status Overworld::Load(Rom &rom) {
|
||||
rom_ = rom;
|
||||
@@ -407,7 +406,7 @@ absl::Status Overworld::LoadExits() {
|
||||
|
||||
absl::Status Overworld::LoadItems() {
|
||||
ASSIGN_OR_RETURN(uint32_t pointer,
|
||||
rom()->ReadLong(zelda3::overworld::kOverworldItemsAddress));
|
||||
rom()->ReadLong(zelda3::kOverworldItemsAddress));
|
||||
uint32_t pointer_pc = core::SnesToPc(pointer); // 1BC2F9 -> 0DC2F9
|
||||
for (int i = 0; i < 128; i++) {
|
||||
ASSIGN_OR_RETURN(uint16_t word_address,
|
||||
@@ -1586,7 +1585,5 @@ absl::Status Overworld::SaveMapProperties() {
|
||||
return absl::OkStatus();
|
||||
}
|
||||
|
||||
} // namespace overworld
|
||||
} // namespace zelda3
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -19,12 +19,6 @@
|
||||
namespace yaze {
|
||||
namespace zelda3 {
|
||||
|
||||
/**
|
||||
* @namespace yaze::zelda3::overworld
|
||||
* @brief Represents the Overworld data.
|
||||
*/
|
||||
namespace overworld {
|
||||
|
||||
constexpr int GravesYTilePos = 0x49968; // short (0x0F entries)
|
||||
constexpr int GravesXTilePos = 0x49986; // short (0x0F entries)
|
||||
constexpr int GravesTilemapPos = 0x499A4; // short (0x0F entries)
|
||||
@@ -274,9 +268,7 @@ private:
|
||||
std::vector<absl::flat_hash_map<uint16_t, int>> usage_stats_;
|
||||
};
|
||||
|
||||
} // namespace overworld
|
||||
} // namespace zelda3
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace zelda3 {
|
||||
namespace overworld {
|
||||
|
||||
constexpr int OWEntranceMap = 0xDB96F;
|
||||
constexpr int OWEntrancePos = 0xDBA71;
|
||||
@@ -81,9 +80,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace overworld
|
||||
} // namespace zelda3
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace zelda3 {
|
||||
namespace overworld {
|
||||
|
||||
constexpr int OWExitRoomId = 0x15D8A; // 0x15E07 Credits sequences
|
||||
// 105C2 Ending maps
|
||||
@@ -201,9 +200,7 @@ class OverworldExit : public GameEntity {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace overworld
|
||||
} // namespace zelda3
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_ZELDA3_OVERWORLD_EXIT_H_
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace zelda3 {
|
||||
namespace overworld {
|
||||
|
||||
// List of secret item names
|
||||
const std::vector<std::string> kSecretItemNames = {
|
||||
@@ -99,9 +98,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace overworld
|
||||
} // namespace zelda3
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_ZELDA3_OVERWORLD_ITEM_H_
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace zelda3 {
|
||||
namespace overworld {
|
||||
|
||||
OverworldMap::OverworldMap(int index, Rom& rom, bool load_custom_data)
|
||||
: index_(index), parent_(index), rom_(rom) {
|
||||
@@ -742,7 +741,5 @@ absl::Status OverworldMap::BuildBitmap(OWBlockset& world_blockset) {
|
||||
return absl::OkStatus();
|
||||
}
|
||||
|
||||
} // namespace overworld
|
||||
} // namespace zelda3
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace zelda3 {
|
||||
namespace overworld {
|
||||
|
||||
static constexpr int kTileOffsets[] = {0, 8, 4096, 4104};
|
||||
|
||||
@@ -184,9 +183,7 @@ class OverworldMap : public GfxContext {
|
||||
gfx::SnesPalette current_palette_;
|
||||
};
|
||||
|
||||
} // namespace overworld
|
||||
} // namespace zelda3
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user