remove dungeon namespace

This commit is contained in:
scawful
2024-12-29 16:14:20 -05:00
parent 8cf16906e6
commit 7e470f2b33
14 changed files with 43 additions and 34 deletions

View File

@@ -5,7 +5,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
constexpr static inline absl::string_view Type1RoomObjectNames[] = {
"Ceiling ↔",
@@ -456,7 +456,8 @@ constexpr static inline absl::string_view Type3RoomObjectNames[] = {
"Nothing",
};
} // namespace dungeon
} // namespace zelda3
} // namespace yaze

View File

@@ -2,7 +2,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
void DungeonObjectRenderer::LoadObject(uint32_t routine_ptr,
std::array<uint8_t, 16>& sheet_ids) {
@@ -111,7 +111,8 @@ void DungeonObjectRenderer::UpdateObjectBitmap() {
bitmap_.Create(256, 256, 8, tilemap_);
}
} // namespace dungeon
} // namespace zelda3
} // namespace yaze

View File

@@ -15,7 +15,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
struct PseudoVram {
std::array<uint8_t, 16> sheets;
@@ -50,7 +50,8 @@ class DungeonObjectRenderer : public SharedRom {
gfx::Bitmap bitmap_;
};
} // namespace dungeon
} // namespace zelda3
} // namespace yaze

View File

@@ -17,7 +17,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
void Room::LoadHeader() {
// Address of the room header
@@ -485,7 +485,8 @@ void Room::LoadChests() {
}
}
} // namespace dungeon
} // namespace zelda3
} // namespace yaze

View File

@@ -15,7 +15,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
// room_object_layout_pointer 0x882D
// room_object_pointer 0x874C
@@ -600,7 +600,8 @@ constexpr std::string_view kEntranceNames[] = {
"Heart Piece Cave 3 (Drop In)",
"Ice Rod Cave"};
} // namespace dungeon
} // namespace zelda3
} // namespace yaze

View File

@@ -7,7 +7,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
// ============================================================================
// Dungeon Entrances Related Variables
@@ -349,7 +349,8 @@ class RoomEntrance {
uint8_t camera_boundary_fe_;
};
} // namespace dungeon
} // namespace zelda3
} // namespace yaze

View File

@@ -2,7 +2,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
ObjectOption operator|(ObjectOption lhs, ObjectOption rhs) {
return static_cast<ObjectOption>(static_cast<int>(lhs) |
@@ -130,7 +130,8 @@ void RoomObject::DrawTile(gfx::Tile16 t, int xx, int yy,
}
}
} // namespace dungeon
} // namespace zelda3
} // namespace yaze

View File

@@ -11,7 +11,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
struct SubtypeInfo {
uint32_t subtype_ptr;
@@ -201,7 +201,8 @@ class Subtype3 : public RoomObject {
}
};
} // namespace dungeon
} // namespace zelda3
} // namespace yaze

View File

@@ -5,7 +5,7 @@
namespace yaze {
namespace zelda3 {
namespace dungeon {
static const std::string RoomEffect[] = {"Nothing",
"Nothing",
@@ -85,7 +85,8 @@ static const std::string RoomTag[] = {"Nothing",
"Light Torches for Chest",
"Kill Boss Again"};
} // namespace dungeon
} // namespace zelda3
} // namespace yaze