Commit Graph

47 Commits

Author SHA1 Message Date
scawful
c9921c91bf Refactor editor manager and dungeon editor for improved clarity and performance
- Removed unused functions and streamlined shortcut registration in EditorManager for better readability.
- Updated lambda captures to use 'this' pointer for consistency and clarity.
- Refactored DungeonEditor to utilize ranges for sorting and filling operations, enhancing performance and readability.
- Simplified table setup in DungeonEditor by using a static array for tool names, improving maintainability.
2025-08-03 17:53:34 -04:00
scawful
a2af47fd0a housekeeping 2025-05-10 09:43:17 -04:00
scawful
42cfb3bcb2 Refactor overworld constructors to accept Rom pointers 2025-04-12 11:27:23 -04:00
scawful
a7d933eb14 Refactor Overworld: improve map handling by defining kNumMapsPerWorld and enhancing logging 2025-02-28 09:25:56 -05:00
scawful
43fc52dec7 Refactor SnesToPc and PcToSnes functions for improved readability and consistency; remove redundant core:: namespace usage 2025-01-22 13:45:58 -05:00
scawful
de53ccae21 Refactor ExperimentFlags to FeatureFlags for consistency across the codebase 2025-01-22 13:41:28 -05:00
scawful
b245b10963 Refactor logging to use util::logf and add log utility header 2025-01-22 13:36:37 -05:00
scawful
50c9223a53 Add hex utility functions and refactor usage in editors 2025-01-22 13:28:21 -05:00
scawful
809282edad remove nonstandard type aliases 2025-01-19 20:16:40 -05:00
scawful
de75cc6850 Update tests 2025-01-19 18:55:01 -05:00
scawful
d38ae7914d Load sprites after overworld maps for current gfx 2025-01-06 21:36:51 -05:00
Justin Scofield
88198323b3 Refactor ROM handling and update Overworld methods
Updated MessageEditor, RoomEntrance, and Overworld classes to use WriteByte instead of Write for byte values. Refactored ROM class by removing Write and toint16 methods, moving constants, and updating operator[]. Modified Overworld methods to return absl::Status and handle errors. Updated Inventory and OverworldMap methods to use ReadWord instead of toint16.
2025-01-05 21:19:53 -05:00
Justin Scofield
510581ad1f Refactor Overworld loading to use async tasks
Refactored Overworld::LoadSprites to use std::async for concurrent sprite loading, improving efficiency. Modified Overworld::LoadOverworldMaps to wait for all async tasks and check results for errors. Updated Overworld::LoadSpritesFromMap to use mutable_current_graphics() for mutable access to current graphics. Added mutable_current_graphics method to OverworldMap class. Optimized Sprite constructor to take a const reference to avoid unnecessary copying.
2025-01-05 20:57:13 -05:00
scawful
ca702d62e3 refactor overworld: add constants for exits, items, entrances, and map IDs 2025-01-01 19:30:36 -05:00
Justin Scofield
e04fc3d828 housekeeping 2024-12-31 20:43:23 -05:00
scawful
427fd50496 Guard custom overworld loading code with experiment flag 2024-12-31 19:20:32 -05:00
scawful
a54143cbab Refactor Hyrule Magic compression functions to return std::vector<uint8_t> instead of raw pointers for improved memory management 2024-12-31 18:32:25 -05:00
scawful
308eb4b287 Rename Hyrule Magic compression functions; update deprecation notes 2024-12-31 18:20:18 -05:00
scawful
d3eca0f950 Make ExperimentFlags a singleton, remove inheritance relationships 2024-12-31 18:13:53 -05:00
scawful
5e1e2901ff Refactor overworld constants 2024-12-31 17:50:19 -05:00
scawful
41c31e3193 Refactor overworld constants to improve naming consistency and readability 2024-12-31 17:39:57 -05:00
scawful
0e67413d55 Refactor logging to use logf function and update log file name 2024-12-31 16:54:44 -05:00
scawful
6d2de44b94 Refactor Overworld blockset types and update related function signatures 2024-12-31 16:40:01 -05:00
scawful
59e59f8a38 Refactor hex string handling: replace UppercaseHex functions with Hex equivalents 2024-12-30 09:48:19 -05:00
scawful
8cf16906e6 remove overworld namespace 2024-12-29 16:12:53 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
d8821c5809 Refactor Overworld tile assembly logic for clarity and efficiency; streamline address handling and improve expansion checks 2024-11-13 08:52:23 -05:00
scawful
089dc4017c Remove unused functions 2024-11-10 21:40:22 -05:00
scawful
a70414d803 Store converted binary graphics data in ScreenEditor and rename save functions for clarity 2024-11-10 17:25:26 -05:00
scawful
996c6c92ee Add flags for expanded tile16 and tile32 saving 2024-11-10 17:17:12 -05:00
scawful
39308bda5a Update AssembleMap32Tiles and AssembleMap16Tiles for expanded tile handling 2024-11-10 16:58:10 -05:00
scawful
8cccbdfd4c Add SaveMap16Expanded and SaveMap32Expanded functions based on ZS 2024-11-10 16:49:16 -05:00
scawful
dd340b1f1a overworld housekeeping 2024-08-29 20:27:44 -04:00
scawful
698055d165 Refactor OverworldEditor and Overworld class 2024-08-29 19:52:38 -04:00
scawful
93d7aa545c Refactor AssembleMap32Tiles to report errors 2024-08-29 19:10:02 -04:00
scawful
5532623e16 game constants housekeeping 2024-08-29 13:08:36 -04:00
scawful
f3b0723ca4 Refactor OverworldMap constructor to remove unnecessary tiles16 parameter 2024-08-26 10:24:46 -04:00
scawful
971255b636 remove unnecessary sdl2 include from overworld 2024-08-26 07:43:25 -04:00
scawful
6e66512a27 feat: Refactor OverworldMap to use custom_gfx_ids array for custom tileset 2024-08-25 17:26:02 -04:00
scawful
0c9faa7ac4 chore: pass flag to overworld map for loading custom data 2024-08-25 16:50:41 -04:00
scawful
270bef0973 Refactor OverworldEntity to use uint16_t for map_id and improve code organization 2024-08-22 10:49:12 -04:00
scawful
ea8a851539 clang tidy cleanups 2024-08-21 00:37:14 -04:00
scawful
7b33313281 big cleanup 2024-08-20 22:10:35 -04:00
scawful
e404eabe64 overworld sprite cleanup 2024-08-20 13:06:35 -04:00
scawful
49611d4944 big cleanup, replace Bytes alias with std::vector<uint8_t> to reduce ambiguity 2024-08-20 12:02:47 -04:00
scawful
7e46cf1c64 Rename ROM class to Rom 2024-04-14 14:47:17 -05:00
scawful
b06e22dc0d Add zelda3::overworld namespace 2024-04-14 14:37:53 -05:00