5#include <unordered_map>
8#include "absl/status/status.h"
9#include "absl/strings/str_format.h"
25#include "imgui/imgui.h"
26#include "imgui_memory_editor.h"
35using ImGui::BeginChild;
36using ImGui::BeginTabBar;
37using ImGui::BeginTabItem;
38using ImGui::BeginTable;
39using ImGui::BeginTooltip;
43using ImGui::EndTabBar;
44using ImGui::EndTabItem;
46using ImGui::EndTooltip;
47using ImGui::IsItemHovered;
49using ImGui::PopStyleColor;
50using ImGui::PushStyleColor;
52using ImGui::Selectable;
53using ImGui::Separator;
54using ImGui::TableHeadersRow;
55using ImGui::TableNextColumn;
56using ImGui::TableNextRow;
57using ImGui::TableSetupColumn;
69 [
this]() { DrawOverworldCanvas(); });
71 [
this]() { status_ = DrawTileSelector(); });
73 if (rom_.is_loaded()) {
74 status_ = UpdateUsageStats();
78 [
this]() { DrawToolset(); });
80 if (rom_.is_loaded()) {
81 status_ = tile16_editor_.Update();
85 if (rom_.is_loaded()) {
86 status_ = gfx_group_editor_.Update();
98 return absl::OkStatus();
114 static bool use_work_area =
true;
115 static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration |
116 ImGuiWindowFlags_NoMove |
117 ImGuiWindowFlags_NoSavedSettings;
118 const ImGuiViewport *viewport = ImGui::GetMainViewport();
119 ImGui::SetNextWindowPos(use_work_area ? viewport->WorkPos : viewport->Pos);
120 ImGui::SetNextWindowSize(use_work_area ? viewport->WorkSize : viewport->Size);
131 static bool show_gfx_group =
false;
132 static bool show_properties =
false;
211 std::vector<uint8_t> png_data;
213 if (png_data.size() > 0) {
217 "Failed to convert overworld map surface to PNG");
227 [&]() { Checkbox(
"Properties", &show_properties); });
235 ImGuiWindowFlags_MenuBar);
240 if (show_gfx_group) {
246 if (show_properties) {
247 ImGui::Begin(
"Properties", &show_properties);
253 if (!ImGui::IsAnyItemActive()) {
254 if (ImGui::IsKeyDown(ImGuiKey_1)) {
256 }
else if (ImGui::IsKeyDown(ImGuiKey_2)) {
258 }
else if (ImGui::IsKeyDown(ImGuiKey_3)) {
260 }
else if (ImGui::IsKeyDown(ImGuiKey_4)) {
262 }
else if (ImGui::IsKeyDown(ImGuiKey_5)) {
264 }
else if (ImGui::IsKeyDown(ImGuiKey_6)) {
266 }
else if (ImGui::IsKeyDown(ImGuiKey_7)) {
268 }
else if (ImGui::IsKeyDown(ImGuiKey_8)) {
275 "##WorldId",
"##GfxId",
"##PalId",
"##SprGfxId",
276 "##5thCol",
"##6thCol",
"##7thCol",
"##8thCol"};
281 ImGui::TableSetupColumn(name);
284 ImGui::SetNextItemWidth(120.f);
291 ->mutable_area_graphics(),
302 ->mutable_area_palette(),
335 ImGui::SetNextItemWidth(100.f);
342 HOVER_HINT(
"Enable Mosaic effect for the current map");
351 ImGui::TableSetupColumn(name);
354 ImGui::SetNextItemWidth(120.f);
357 static const std::array<std::string, 8> kCustomMapSettingsColumnNames = {
358 "TileGfx0",
"TileGfx1",
"TileGfx2",
"TileGfx3",
359 "TileGfx4",
"TileGfx5",
"TileGfx6",
"TileGfx7"};
360 for (
int i = 0; i < 8; ++i) {
365 ->mutable_custom_tileset(i),
377 ->mutable_area_palette(),
410 ImGui::SetNextItemWidth(100.f);
417 HOVER_HINT(
"Enable Mosaic effect for the current map");
426 for (
int i = 0; i < 0x40; i++) {
459 int mouse_x = mouse_position.x;
460 int mouse_y = mouse_position.y;
466 auto &selected_world =
469 :
overworld_.mutable_map_tiles()->special_world;
471 int index_x = superX * 32 + tile16_x;
472 int index_y = superY * 32 + tile16_y;
478 const ImVec2 &click_position,
const std::vector<uint8_t> &tile_data) {
486 ImVec2 start_position;
517 if (ImGui::IsMouseClicked(ImGuiMouseButton_Left) ||
518 ImGui::IsMouseDragging(ImGuiMouseButton_Left)) {
519 auto &selected_world =
523 :
overworld_.mutable_map_tiles()->special_world;
534 if (start_x > end_x) std::swap(start_x, end_x);
535 if (start_y > end_y) std::swap(start_y, end_y);
537 constexpr int local_map_size = 512;
539 constexpr int tiles_per_local_map = local_map_size /
kTile16Size;
541 for (
int y = start_y, i = 0; y <= end_y; y +=
kTile16Size) {
542 for (
int x = start_x; x <= end_x; x +=
kTile16Size, ++i) {
544 int local_map_x = x / local_map_size;
545 int local_map_y = y / local_map_size;
552 int index_x = local_map_x * tiles_per_local_map + tile16_x;
553 int index_y = local_map_y * tiles_per_local_map + tile16_y;
554 int tile16_id =
overworld_.GetTileFromPosition(
556 selected_world[index_x][index_y] = tile16_id;
575 static std::vector<int> tile16_ids;
578 if (tile16_ids.size() != 0) {
584 tile16_ids.push_back(
overworld_.GetTileFromPosition(each));
594 const auto mouse_position = ImGui::GetIO().MousePos;
595 const int large_map_size = 1024;
615 const int highlight_parent =
616 overworld_.overworld_map(current_highlighted_map)->parent();
617 const int parent_map_x = highlight_parent % 8;
618 const int parent_map_y = highlight_parent / 8;
623 const int current_map_x = current_highlighted_map % 8;
624 const int current_map_y = current_highlighted_map / 8;
631 ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
638 return absl::OkStatus();
642 if (ImGui::IsMouseDragging(ImGuiMouseButton_Middle)) {
648 if (ImGui::IsMouseReleased(ImGuiMouseButton_Middle) &&
696 if (ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows) &&
697 ImGui::IsMouseDragging(ImGuiMouseButton_Middle)) {
698 ImGui::SetScrollX(ImGui::GetScrollX() + ImGui::GetIO().MouseWheelH * 16.0f);
699 ImGui::SetScrollY(ImGui::GetScrollY() + ImGui::GetIO().MouseWheel * 16.0f);
717 int grid_x =
static_cast<int>(tile_pos.x / 32);
718 int grid_y =
static_cast<int>(tile_pos.y / 32);
719 int id = grid_x + grid_y * 8;
735 return absl::OkStatus();
744 int offset = 0x40 * (key + 1);
749 auto texture = value.texture();
751 (ImTextureID)(intptr_t)texture,
789 return absl::OkStatus();
794 ImGuiTabBarFlags_FittingPolicyScroll)) {
795 if (BeginTabItem(
"Tile16")) {
799 if (BeginTabItem(
"Tile8")) {
807 if (BeginTabItem(
"Area Graphics")) {
813 return absl::OkStatus();
822 auto color = ImVec4(255, 255, 0, 100);
824 color = ImVec4(255, 255, 255, 200);
834 ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
839 ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
852 auto deleted_entrance_id =
overworld_.deleted_entrances().back();
854 auto &entrance =
overworld_.entrances()[deleted_entrance_id];
856 entrance.entrance_id_ = deleted_entrance_id;
859 entrance.deleted =
false;
863 const auto is_hovering =
866 if (!is_hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
867 ImGui::OpenPopup(
"Entrance Inserter");
875 overworld_.mutable_deleted_entrances()->emplace_back(
884 for (
auto &each : *
overworld_.mutable_exits()) {
888 ImVec4(255, 255, 255, 150));
896 ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
901 ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
906 ImGui::OpenPopup(
"Exit editor");
922 if (!hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
923 ImGui::OpenPopup(
"Exit Inserter");
935 for (
auto &item : *
overworld_.mutable_all_items()) {
939 ow_map_canvas_.DrawRect(item.x_, item.y_, 16, 16, ImVec4(255, 0, 0, 150));
949 if (hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
955 std::string item_name =
"";
959 item_name = absl::StrFormat(
"0x%02X", item.id_);
972 if (!hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
973 ImGui::OpenPopup(
"Item Inserter");
986 if (!sprite.deleted()) {
987 int map_x = sprite.map_x();
988 int map_y = sprite.map_y();
990 ImVec4(255, 0, 255, 150));
997 ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
1009 ow_map_canvas_.DrawText(absl::StrFormat(
"%s", sprite.name()), map_x,
1021 if (!hovering && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
1022 ImGui::OpenPopup(
"Sprite Inserter");
1052 return absl::OkStatus();
1056 util::logf(
"Loading overworld.");
1061 util::logf(
"Loading overworld graphics.");
1067 util::logf(
"Loading overworld tileset.");
1070 0x80, 0x2000, 0x08,
overworld_.tile16_blockset_data(),
1075 auto tile16_data =
overworld_.tile16_blockset_data();
1077 util::logf(
"Loading overworld tile16 graphics.");
1098 util::logf(
"Loading overworld maps.");
1102 auto palette =
overworld_.current_area_palette();
1107 }
catch (
const std::bad_alloc &e) {
1108 std::cout <<
"Error: " << e.what() << std::endl;
1117 return absl::OkStatus();
1122 const int depth = 0x10;
1123 for (
int i = 0; i < 3; i++)
1124 for (
auto const &sprite : *
overworld_.mutable_sprites(i)) {
1125 int width = sprite.width();
1126 int height = sprite.height();
1127 if (width == 0 || height == 0) {
1134 *sprite.preview_graphics());
1138 return absl::OkStatus();
1142 overworld_.mutable_overworld_map(map_index)->LoadAreaGraphics();
1151 overworld_.mutable_overworld_map(map_index)->bitmap_data());
1152 maps_bmp_[map_index].set_modified(
true);
1157 std::vector<std::future<void>> futures;
1160 auto refresh_map_async = [
this](
int map_index) {
1169 for (
int i = 1; i < 4; i++) {
1170 int sibling_index =
overworld_.overworld_map(source_map_id)->parent() + i;
1171 if (i >= 2) sibling_index += 6;
1173 std::async(std::launch::async, refresh_map_async, sibling_index));
1174 indices[i] = sibling_index;
1177 indices[0] = source_map_id;
1179 std::async(std::launch::async, refresh_map_async, source_map_id));
1181 for (
auto &each : futures) {
1185 int n = is_large ? 4 : 1;
1187 for (
int i = 0; i < n; ++i) {
1195 const auto current_map_palette =
overworld_.current_area_palette();
1199 for (
int i = 1; i < 4; i++) {
1201 if (i >= 2) sibling_index += 6;
1203 overworld_.mutable_overworld_map(sibling_index)->LoadPalette());
1209 return absl::OkStatus();
1214 if (current_ow_map.is_large_map()) {
1216 for (
int i = 1; i < 4; i++) {
1217 int sibling_index = current_ow_map.parent() + i;
1221 auto &map = *
overworld_.mutable_overworld_map(sibling_index);
1222 map.set_area_graphics(current_ow_map.area_graphics());
1223 map.set_area_palette(current_ow_map.area_palette());
1228 map.set_message_id(current_ow_map.message_id());
1236 return absl::OkStatus();
1247 const auto tile16_data =
overworld_.tile16_blockset_data();
1250 std::vector<std::future<absl::Status>> futures;
1252 futures.push_back(std::async(
1254 [&](
int index) -> absl::Status {
1255 std::vector<uint8_t> tile_data(16 * 16, 0x00);
1256 for (
int ty = 0; ty < 16; ty++) {
1257 for (
int tx = 0; tx < 16; tx++) {
1258 int position = tx + (ty * 0x10);
1260 tile16_data[(index % 8 * 16) + (index / 8 * 16 * 0x80) +
1262 tile_data[position] = value;
1267 return absl::OkStatus();
1272 for (
auto &future : futures) {
1282 return absl::OkStatus();
1286 static bool init_properties =
false;
1288 if (!init_properties) {
1289 for (
int i = 0; i < 0x40; i++) {
1290 std::string area_graphics_str = absl::StrFormat(
1291 "%02hX",
overworld_.overworld_map(i)->area_graphics());
1293 ->push_back(area_graphics_str);
1295 area_graphics_str = absl::StrFormat(
1296 "%02hX",
overworld_.overworld_map(i + 0x40)->area_graphics());
1298 ->push_back(area_graphics_str);
1300 std::string area_palette_str =
1301 absl::StrFormat(
"%02hX",
overworld_.overworld_map(i)->area_palette());
1303 ->push_back(area_palette_str);
1305 area_palette_str = absl::StrFormat(
1306 "%02hX",
overworld_.overworld_map(i + 0x40)->area_palette());
1308 ->push_back(area_palette_str);
1309 std::string sprite_gfx_str = absl::StrFormat(
1310 "%02hX",
overworld_.overworld_map(i)->sprite_graphics(1));
1312 ->push_back(sprite_gfx_str);
1314 sprite_gfx_str = absl::StrFormat(
1315 "%02hX",
overworld_.overworld_map(i)->sprite_graphics(2));
1317 ->push_back(sprite_gfx_str);
1319 sprite_gfx_str = absl::StrFormat(
1320 "%02hX",
overworld_.overworld_map(i + 0x40)->sprite_graphics(1));
1322 ->push_back(sprite_gfx_str);
1324 sprite_gfx_str = absl::StrFormat(
1325 "%02hX",
overworld_.overworld_map(i + 0x40)->sprite_graphics(2));
1327 ->push_back(sprite_gfx_str);
1329 std::string sprite_palette_str = absl::StrFormat(
1330 "%02hX",
overworld_.overworld_map(i)->sprite_palette(1));
1332 ->push_back(sprite_palette_str);
1334 sprite_palette_str = absl::StrFormat(
1335 "%02hX",
overworld_.overworld_map(i)->sprite_palette(2));
1337 ->push_back(sprite_palette_str);
1339 sprite_palette_str = absl::StrFormat(
1340 "%02hX",
overworld_.overworld_map(i + 0x40)->sprite_palette(1));
1342 ->push_back(sprite_palette_str);
1344 sprite_palette_str = absl::StrFormat(
1345 "%02hX",
overworld_.overworld_map(i + 0x40)->sprite_palette(2));
1347 ->push_back(sprite_palette_str);
1349 init_properties =
true;
1352 Text(
"Area Gfx LW/DW");
1360 Text(
"Sprite Gfx LW/DW");
1374 Text(
"Area Pal LW/DW");
1381 static bool show_gfx_group =
false;
1382 Checkbox(
"Show Gfx Group Editor", &show_gfx_group);
1383 if (show_gfx_group) {
1391 if (BeginTable(
"UsageStatsTable", 3,
kOWEditFlags, ImVec2(0, 0))) {
1392 TableSetupColumn(
"Entrances");
1393 TableSetupColumn(
"Grid", ImGuiTableColumnFlags_WidthStretch,
1394 ImGui::GetContentRegionAvail().x);
1395 TableSetupColumn(
"Usage", ImGuiTableColumnFlags_WidthFixed, 256);
1400 if (BeginChild(
"UnusedSpritesetScroll", ImVec2(0, 0),
true,
1401 ImGuiWindowFlags_HorizontalScrollbar)) {
1402 for (
int i = 0; i < 0x81; i++) {
1403 auto entrance_name =
rom_.resource_label()->CreateOrGetLabel(
1406 std::string str = absl::StrFormat(
"%#x - %s", i, entrance_name);
1409 ? ImGuiSelectableFlags_Disabled
1415 if (IsItemHovered()) {
1417 Text(
"Entrance ID: %d", i);
1418 Text(
"Map ID: %d",
overworld_.entrances().at(i).map_id_);
1419 Text(
"Entrance ID: %d",
overworld_.entrances().at(i).entrance_id_);
1420 Text(
"X: %d",
overworld_.entrances().at(i).x_);
1421 Text(
"Y: %d",
overworld_.entrances().at(i).y_);
1423 overworld_.entrances().at(i).deleted ?
"Yes" :
"No");
1438 return absl::OkStatus();
1443 int total_squares = 128;
1444 int squares_wide = 8;
1445 int squares_tall = (total_squares + squares_wide - 1) /
1449 for (
int row = 0; row < squares_tall; ++row) {
1452 for (
int col = 0; col < squares_wide; ++col) {
1453 if (row * squares_wide + col >= total_squares) {
1461 PushStyleColor(ImGuiCol_Button,
1462 ImVec4(1.0f, 0.5f, 0.0f,
1467 if (Button(
"##square", ImVec2(20, 20))) {
1479 if (IsItemHovered()) {
1492 int relative_x = (int)
ow_map_canvas_.drawn_tile_position().x % 512;
1493 int relative_y = (int)
ow_map_canvas_.drawn_tile_position().y % 512;
1494 Text(
"Current Tile16 Drawn Position (Relative): %d, %d", relative_x,
1498 Text(
"Light World Map Tiles: %d",
1499 (
int)
overworld_.mutable_map_tiles()->light_world.size());
1500 Text(
"Dark World Map Tiles: %d",
1501 (
int)
overworld_.mutable_map_tiles()->dark_world.size());
1502 Text(
"Special World Map Tiles: %d",
1503 (
int)
overworld_.mutable_map_tiles()->special_world.size());
1505 static bool view_lw_map_tiles =
false;
1506 static MemoryEditor mem_edit;
1508 if (Button(
"View Light World Map Tiles")) {
1509 view_lw_map_tiles = !view_lw_map_tiles;
1512 if (view_lw_map_tiles) {
1513 mem_edit.DrawContents(
static GraphicsSheetManager & GetInstance()
gui::zeml::Node layout_node_
zelda3::OverworldItem current_item_
bool overworld_canvas_fullscreen_
bool map_blockset_loaded_
absl::Status UpdateUsageStats()
zelda3::OverworldEntranceTileTypes entrance_tiletypes_
zelda3::OverworldEntrance current_entrance_
zelda3::Sprite current_sprite_
absl::Status CheckForCurrentMap()
Check for changes to the overworld map. Calls RefreshOverworldMap and RefreshTile16Blockset on the cu...
void DrawOverworldEdits()
gfx::Bitmap current_gfx_bmp_
bool middle_mouse_dragging_
Tile16Editor tile16_editor_
gui::Canvas ow_map_canvas_
void DrawOverworldExits(ImVec2 zero, ImVec2 scrolling)
absl::Status Undo() override
void DrawOverworldItems()
zelda3::GameEntity * dragged_entity_
std::array< gfx::Bitmap, zelda3::kNumOverworldMaps > maps_bmp_
void RefreshOverworldMap()
void CheckForOverworldEdits()
Check for changes to the overworld map.
zelda3::OverworldExit current_exit_
void RefreshMapProperties()
void RenderUpdatedMapBitmap(const ImVec2 &click_position, const std::vector< uint8_t > &tile_data)
gui::Canvas current_gfx_canvas_
void DrawCustomOverworldMapSettings()
absl::Status DrawTileSelector()
void Initialize() override
absl::Status Redo() override
void DrawFullscreenCanvas()
void DrawOverworldProperties()
absl::Status RefreshMapPalette()
void DrawOverworldMapSettings()
void DrawOverworldCanvas()
gui::Canvas blockset_canvas_
absl::Status RefreshTile16Blockset()
void CheckForSelectRectangle()
Draw and create the tile16 IDs that are currently selected.
void RefreshChildMap(int i)
absl::Status Load() override
std::vector< gfx::Bitmap > sprite_previews_
absl::Status DrawAreaGraphics()
GfxGroupEditor gfx_group_editor_
absl::Status Update() final
void DrawOverworldSprites()
EditingMode previous_mode
gui::Table toolset_table_
gui::Canvas graphics_bin_canvas_
gfx::BitmapTable current_graphics_set_
zelda3::Overworld overworld_
absl::Status LoadGraphics()
Load the Bitmap objects for each OverworldMap.
std::array< gfx::Bitmap, zelda3::kNumTile16Individual > tile16_individual_
absl::Status LoadSpriteGraphics()
absl::Status Save() override
void DrawOverworldEntrances(ImVec2 canvas_p, ImVec2 scrolling, bool holes=false)
zelda3::GameEntity * current_entity_
gui::Canvas properties_canvas_
gfx::SnesPalette palette_
gfx::Bitmap tile16_blockset_bmp_
absl::Status DrawTile16Selector()
static Renderer & GetInstance()
Represents a bitmap image.
void WriteToPixel(int position, uint8_t value)
void set_modified(bool modified)
#define ICON_MD_GRID_VIEW
#define ICON_MD_MORE_VERT
#define ICON_MD_OPEN_IN_FULL
#define ICON_MD_TABLE_CHART
#define ICON_MD_DOOR_BACK
#define ICON_MD_MUSIC_NOTE
#define ICON_MD_DOOR_FRONT
#define ICON_MD_ADD_LOCATION
#define ICON_MD_PEST_CONTROL_RODENT
#define ICON_MD_CONTENT_COPY
#define ICON_MD_PAN_TOOL_ALT
#define PRINT_IF_ERROR(expression)
#define RETURN_IF_ERROR(expression)
#define ASSIGN_OR_RETURN(type_variable_name, expression)
#define HOVER_HINT(string)
void CopyImageToClipboard(const std::vector< uint8_t > &data)
Editors are the view controllers for the application.
void DrawExitInserterPopup()
constexpr absl::string_view kOWMapTable
constexpr ImGuiTableFlags kOWMapFlags
constexpr unsigned int kOverworldMapSize
bool DrawSpriteEditorPopup(zelda3::Sprite &sprite)
void DrawItemInsertPopup()
bool DrawEntranceInserterPopup()
void DrawSpriteInserterPopup()
constexpr absl::string_view kWorldList
constexpr absl::string_view kGamePartComboString
void HandleEntityDragging(zelda3::GameEntity *entity, ImVec2 canvas_p0, ImVec2 scrolling, bool &is_dragging_entity, zelda3::GameEntity *&dragged_entity, zelda3::GameEntity *¤t_entity, bool free_movement)
bool DrawOverworldEntrancePopup(zelda3::OverworldEntrance &entrance)
bool IsMouseHoveringOverEntity(const zelda3::GameEntity &entity, ImVec2 canvas_p0, ImVec2 scrolling)
absl::Status DisplayPalette(gfx::SnesPalette &palette, bool loaded)
bool DrawItemEditorPopup(zelda3::OverworldItem &item)
constexpr int kTile16Size
constexpr ImGuiTableFlags kOWEditFlags
constexpr float kInputFieldSize
constexpr absl::string_view kTileSelectorTab
constexpr std::array< const char *, 8 > kMapSettingsColumnNames
bool DrawExitEditorPopup(zelda3::OverworldExit &exit)
void Render(Node &node)
Render a zeml tree.
std::string LoadFile(const std::string &filename)
void Bind(Node *node, std::function< void()> callback)
Bind a callback to a node.
Node Parse(const std::string &yazon_input, const std::map< std::string, void * > &data_bindings)
Parse a zeml string.
void BeginChildBothScrollbars(int id)
bool InputHexWord(const char *label, uint16_t *data, float input_width, bool no_step)
void AddTableColumn(Table &table, const std::string &label, GuiElement element)
void DrawTable(Table ¶ms)
void EndWindowWithDisplaySettings()
void BeginWindowWithDisplaySettings(const char *id, bool *active, const ImVec2 &size, ImGuiWindowFlags flags)
bool InputHexByte(const char *label, uint8_t *data, float input_width, bool no_step)
void BeginChildWithScrollbar(const char *str_id)
std::string HexByte(uint8_t byte, HexStringParams params)
absl::StatusOr< OverworldEntranceTileTypes > LoadEntranceTileTypes(Rom &rom)
constexpr std::string_view kEntranceNames[]
constexpr int kNumTile16Individual
constexpr int kNumOverworldMaps
const std::vector< std::string > kSecretItemNames
Main namespace for the application.