defs: Added actor savegame typedef
authorLukas Krickl <lukas@krickl.dev>
Sat, 2 Aug 2025 04:46:09 +0000 (06:46 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sat, 2 Aug 2025 04:46:09 +0000 (06:46 +0200)
src/defs.s
src/wram.s

index 21c8fc20da8da0e66ed9f0170f07bbf99e542648..c22aa1eadb9884d3f0d8f47398e8280bd8707d4a 100644 (file)
 .de act_dialog_opts, 2
 .de act_size, 0
   
+       ; actor save game data
+.se 0
+.de act_sg_pos_y, 1
+.de act_sg_pos_x, 1
+.de act_sg_flags, 1
+.de act_sg_p0, 1
+.de act_sg_size, 0
 
 #define MAP_BG_TILE_OFFSET 0
 #define MAP_BG_FLAGS_OFFSET 1
index b0a88b077a9ddcda4f4241649f8fabb9c2090e57..93fd1d8401de9b453370f67ac8b37610e8f2e60f 100644 (file)
@@ -161,5 +161,11 @@ map_st: .adv st_size
 map_exit_table: .adv 2
        ; ptr to the last map header used
 map_header: .adv 2
+       
+       ; actor savegame data;
+       ; store actor data here on map load 
+       ; and re-load on map restore
+       ; if pos y and pos x are both 0 do not restore
+act_sg: .adv act_sg_size * UNITS_MAX * FLOOR_MAP_COUNT
 
 state_end: