diff --git a/generator/csv/fields.csv b/generator/csv/fields.csv index 2698da445..92cc913e9 100644 --- a/generator/csv/fields.csv +++ b/generator/csv/fields.csv @@ -642,7 +642,7 @@ MoveRoute,move_commands,f,Vector,0x0C,,1,0,Array - rpg::MoveCommand MoveRoute,repeat,f,Boolean,0x15,True,0,0,Flag MoveRoute,skippable,f,Boolean,0x16,False,0,0,Flag EventPage,condition,f,EventPageCondition,0x02,,1,0,rpg::EventPageCondition -EventPage,character_name,f,String,0x15,'',0,0,String +EventPage,character_name,f,DBString,0x15,'',0,0,String EventPage,character_index,f,Int32,0x16,0,0,0,Integer EventPage,character_direction,f,Enum,0x17,2,1,0,Integer EventPage,character_pattern,f,Enum,0x18,1,0,0,Integer @@ -657,7 +657,7 @@ EventPage,move_speed,f,Enum,0x25,3,0,0,Integer EventPage,move_route,f,MoveRoute,0x29,,1,0,rpg::MoveRoute EventPage,event_commands,t,EventCommand,0x33,,1,0,Integer EventPage,event_commands,f,Vector,0x34,,1,0,Array - rpg::EventCommand -Event,name,f,String,0x01,'',0,0,String +Event,name,f,DBString,0x01,'',0,0,String Event,x,f,Int32,0x02,0,0,0,Integer Event,y,f,Int32,0x03,0,0,0,Integer Event,pages,f,Array,0x05,,1,0,Array - rpg::EventPage @@ -666,7 +666,7 @@ Map,width,f,Int32,0x02,20,0,0,Integer Map,height,f,Int32,0x03,15,0,0,Integer Map,scroll_type,f,Enum,0x0B,0,1,0,Integer Map,parallax_flag,f,Boolean,0x1F,False,0,0,Flag -Map,parallax_name,f,String,0x20,'',0,0,String +Map,parallax_name,f,DBString,0x20,'',0,0,String Map,parallax_loop_x,f,Boolean,0x21,False,0,0,Flag Map,parallax_loop_y,f,Boolean,0x22,False,0,0,Flag Map,parallax_auto_loop_x,f,Boolean,0x23,False,0,0,Flag diff --git a/src/generated/lcf/rpg/event.h b/src/generated/lcf/rpg/event.h index 5db6413ae..4d19ff137 100644 --- a/src/generated/lcf/rpg/event.h +++ b/src/generated/lcf/rpg/event.h @@ -14,8 +14,8 @@ // Headers #include -#include #include +#include "lcf/dbstring.h" #include "lcf/rpg/eventpage.h" #include #include @@ -28,7 +28,7 @@ namespace rpg { class Event { public: int ID = 0; - std::string name; + DBString name; int32_t x = 0; int32_t y = 0; std::vector pages; diff --git a/src/generated/lcf/rpg/eventpage.h b/src/generated/lcf/rpg/eventpage.h index c93074189..b0e0c5e6c 100644 --- a/src/generated/lcf/rpg/eventpage.h +++ b/src/generated/lcf/rpg/eventpage.h @@ -14,8 +14,8 @@ // Headers #include -#include #include +#include "lcf/dbstring.h" #include "lcf/enum_tags.h" #include "lcf/rpg/eventcommand.h" #include "lcf/rpg/eventpagecondition.h" @@ -125,7 +125,7 @@ namespace rpg { int ID = 0; EventPageCondition condition; - std::string character_name; + DBString character_name; int32_t character_index = 0; int32_t character_direction = 2; int32_t character_pattern = 1; diff --git a/src/generated/lcf/rpg/map.h b/src/generated/lcf/rpg/map.h index 4d258c01c..a0cfb104a 100644 --- a/src/generated/lcf/rpg/map.h +++ b/src/generated/lcf/rpg/map.h @@ -14,8 +14,8 @@ // Headers #include -#include #include +#include "lcf/dbstring.h" #include "lcf/enum_tags.h" #include "lcf/rpg/event.h" #include @@ -67,7 +67,7 @@ namespace rpg { int32_t height = 15; int32_t scroll_type = 0; bool parallax_flag = false; - std::string parallax_name; + DBString parallax_name; bool parallax_loop_x = false; bool parallax_loop_y = false; bool parallax_auto_loop_x = false; diff --git a/src/generated/lmu_event.cpp b/src/generated/lmu_event.cpp index 3cef1d040..3d63fa2cf 100644 --- a/src/generated/lmu_event.cpp +++ b/src/generated/lmu_event.cpp @@ -20,7 +20,7 @@ namespace lcf { template <> char const* const Struct::name = "Event"; -static TypedField static_name( +static TypedField static_name( &rpg::Event::name, LMU_Reader::ChunkEvent::name, "name", diff --git a/src/generated/lmu_eventpage.cpp b/src/generated/lmu_eventpage.cpp index 519b37ac2..f54ee2820 100644 --- a/src/generated/lmu_eventpage.cpp +++ b/src/generated/lmu_eventpage.cpp @@ -27,7 +27,7 @@ static TypedField static_condition( 1, 0 ); -static TypedField static_character_name( +static TypedField static_character_name( &rpg::EventPage::character_name, LMU_Reader::ChunkEventPage::character_name, "character_name", diff --git a/src/generated/lmu_map.cpp b/src/generated/lmu_map.cpp index 7cae4c7a2..19562434d 100644 --- a/src/generated/lmu_map.cpp +++ b/src/generated/lmu_map.cpp @@ -55,7 +55,7 @@ static TypedField static_parallax_flag( 0, 0 ); -static TypedField static_parallax_name( +static TypedField static_parallax_name( &rpg::Map::parallax_name, LMU_Reader::ChunkMap::parallax_name, "parallax_name", diff --git a/src/rpg_setup.cpp b/src/rpg_setup.cpp index 5877cc7bc..7cce53f5a 100644 --- a/src/rpg_setup.cpp +++ b/src/rpg_setup.cpp @@ -80,7 +80,7 @@ void rpg::SaveMapInfo::Setup() { void rpg::SaveMapInfo::Setup(const rpg::Map& map) { chipset_id = map.chipset_id; - parallax_name = map.parallax_name; + 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;