Remove SaveMapInfo::Setup
MODIFY
generator/csv/fields.csv
generator/csv/fields.csv
@@ -985,8 +985,8 @@ SaveMapInfo,position_y,f,Int32,0x02,0,0,0,int
SaveMapInfo,encounter_rate,f,Int32,0x03,-1,0,0,int
SaveMapInfo,chipset_id,f,Int32,0x05,-1,0,0,int
SaveMapInfo,events,f,Array<SaveMapEvent>,0x0B,,1,0,? array
-SaveMapInfo,lower_tiles,f,Vector<UInt8>,0x15,,1,0,? [00 01 02 ... 8E 8F]
-SaveMapInfo,upper_tiles,f,Vector<UInt8>,0x16,,1,0,
+SaveMapInfo,lower_tiles,f,Vector<UInt8>,0x15,"[x for x in range(0, 144)]",1,0,? [00 01 02 ... 8E 8F]
+SaveMapInfo,upper_tiles,f,Vector<UInt8>,0x16,"[x for x in range(0, 144)]",1,0,
SaveMapInfo,parallax_name,f,String,0x20,,0,0,string
SaveMapInfo,parallax_horz,f,Boolean,0x21,False,0,0,bool
SaveMapInfo,parallax_vert,f,Boolean,0x22,False,0,0,bool

MODIFY
generator/csv/functions.csv
generator/csv/functions.csv
Structure,Method,Headers
Actor,void Setup(),
Save,void Setup(),
-SaveMapInfo,void Setup(),
-SaveMapInfo,void Setup(const rpg::Map& map),"""lcf/rpg/map.h"""
Parameters,void Setup(int final_level),

MODIFY
src/generated/lcf/rpg/savemapinfo.h
src/generated/lcf/rpg/savemapinfo.h
Binary files a/src/generated/lcf/rpg/savemapinfo.h and b/src/generated/lcf/rpg/savemapinfo.h differ

MODIFY
src/rpg_setup.cpp
src/rpg_setup.cpp
namespace lcf {
-void rpg::SaveMapInfo::Setup() {
- position_x = 0;
- position_y = 0;
- lower_tiles.resize(144);
- upper_tiles.resize(144);
- for (int i = 0; i < 144; i++) {
- lower_tiles[i] = i;
- upper_tiles[i] = i;
- }
-}
-
-void rpg::SaveMapInfo::Setup(const rpg::Map& map) {
- chipset_id = map.chipset_id;
- parallax_name = ToString(map.parallax_name);
- parallax_horz = map.parallax_loop_x;
- parallax_vert = map.parallax_loop_y;
- parallax_horz_auto = map.parallax_auto_loop_x;
- parallax_vert_auto = map.parallax_auto_loop_y;
- parallax_horz_speed = map.parallax_sx;
- parallax_vert_speed = map.parallax_sy;
-}
-
void rpg::Save::Setup() {
screen = rpg::SaveScreen();
pictures.clear();
actors.clear();
actors.resize(lcf::Data::actors.size());
- map_info.Setup();
party_location.move_speed = 4;
boat_location.vehicle = rpg::SaveVehicleLocation::VehicleType_skiff;

Remove SaveMapInfo::Setup