Add SavePanorama struct
MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -100,6 +100,7 @@ add_library(lcf
src/generated/lsd_saveinventory.cpp
src/generated/lsd_savemapevent.cpp
src/generated/lsd_savemapinfo.cpp
+ src/generated/lsd_savepanorama.cpp
src/generated/lsd_savepartylocation.cpp
src/generated/lsd_savepicture.cpp
src/generated/lsd_savescreen.cpp

MODIFY
Makefile.am
Makefile.am
@@ -96,6 +96,7 @@ liblcf_la_SOURCES = \
src/generated/lsd_saveinventory.cpp \
src/generated/lsd_savemapevent.cpp \
src/generated/lsd_savemapinfo.cpp \
+ src/generated/lsd_savepanorama.cpp \
src/generated/lsd_savepartylocation.cpp \
src/generated/lsd_savepicture.cpp \
src/generated/lsd_savescreen.cpp \
@@ -173,6 +174,7 @@ pkginclude_HEADERS = \
src/generated/rpg_saveinventory.h \
src/generated/rpg_savemapevent.h \
src/generated/rpg_savemapinfo.h \
+ src/generated/rpg_savepanorama.h \
src/generated/rpg_savepartylocation.h \
src/generated/rpg_savepicture.h \
src/generated/lsd_savepicture_flags.h \

MODIFY
builds/vs2015/liblcf.vcxproj
builds/vs2015/liblcf.vcxproj
<ClCompile Include="..\..\src\generated\lsd_saveinventory.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savemapevent.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savemapinfo.cpp" />
+ <ClCompile Include="..\..\src\generated\lsd_savepanorama.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savepartylocation.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savepicture.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savescreen.cpp" />
<ClInclude Include="..\..\src\generated\rpg_saveinventory.h" />
<ClInclude Include="..\..\src\generated\rpg_savemapevent.h" />
<ClInclude Include="..\..\src\generated\rpg_savemapinfo.h" />
+ <ClInclude Include="..\..\src\generated\rpg_savepanorama.h" />
<ClInclude Include="..\..\src\generated\rpg_savepartylocation.h" />
<ClInclude Include="..\..\src\generated\rpg_savepicture.h" />
<ClInclude Include="..\..\src\generated\rpg_savescreen.h" />

MODIFY
generator/csv/fields.csv
generator/csv/fields.csv
@@ -1071,6 +1071,8 @@ SaveMapInfo,parallax_horz_speed,f,Int32,0x24,0,0,0,int
SaveMapInfo,parallax_vert_auto,f,Boolean,0x25,False,0,0,bool
SaveMapInfo,parallax_vert_speed,f,Int32,0x26,0,0,0,int
SaveCommonEvent,event_data,f,SaveEventData,0x01,,0,0,chunks
+SavePanorama,pan_x,f,Int32,0x01,0,0,0,Panorama X position
+SavePanorama,pan_y,f,Int32,0x02,0,0,0,Panorama Y position
Save,title,f,SaveTitle,0x64,,0,0,RPG::SaveTitle
Save,system,f,SaveSystem,0x65,,0,0,RPG::SaveSystem
Save,screen,f,SaveScreen,0x66,,0,0,RPG::SaveScreen
@@ -1083,7 +1085,7 @@ Save,actors,f,Array<SaveActor>,0x6C,,1,0,array of RPG::SaveActor
Save,inventory,f,SaveInventory,0x6D,,0,0,RPG::SaveInventory
Save,targets,f,Array<SaveTarget>,0x6E,,1,0,array of RPG::SaveTarget
Save,map_info,f,SaveMapInfo,0x6F,,0,0,RPG::SaveMapInfo
-Save,panorama_data,f,Int32,0x70,-1,0,0,Irrelevant; used in game to store panorama data but the object does not have members exported when saved. Mostly an empty object.
+Save,panorama,f,SavePanorama,0x70,,1,0,Used to store panorama position data. Used by RPG_RT 2k3 1.12 in other versions an empty object.
Save,events,f,SaveEventData,0x71,,0,0,RPG::SaveEventData
Save,common_events,f,Array<SaveCommonEvent>,0x72,,1,0,array of RPG::SaveCommonEvent
Equipment,weapon_id,,Ref<Item:Int16>,,0,0,0,

MODIFY
generator/csv/structs.csv
generator/csv/structs.csv
@@ -56,6 +56,7 @@ lsd,SaveEventData,0,0
lsd,SaveMapEvent,1,0
lsd,SaveMapInfo,0,0
lsd,SaveCommonEvent,1,0
+lsd,SavePanorama,0,0
lsd,Save,0,0
lmt,Rect,,0
lmt,Encounter,1,0

MODIFY
src/generated/lsd_chunks.h
src/generated/lsd_chunks.h
Binary files a/src/generated/lsd_chunks.h and b/src/generated/lsd_chunks.h differ

MODIFY
src/generated/lsd_save.cpp
src/generated/lsd_save.cpp
Binary files a/src/generated/lsd_save.cpp and b/src/generated/lsd_save.cpp differ

ADD
src/generated/lsd_savepanorama.cpp
src/generated/lsd_savepanorama.cpp
Binary files /dev/null and b/src/generated/lsd_savepanorama.cpp differ

MODIFY
src/generated/rpg_save.h
src/generated/rpg_save.h
Binary files a/src/generated/rpg_save.h and b/src/generated/rpg_save.h differ

ADD
src/generated/rpg_savepanorama.h
src/generated/rpg_savepanorama.h
Binary files /dev/null and b/src/generated/rpg_savepanorama.h differ

MODIFY
src/reader_struct.cpp
src/reader_struct.cpp
@@ -312,6 +312,7 @@ template class Struct<RPG::SaveEventData>;
template class Struct<RPG::SaveInventory>;
template class Struct<RPG::SaveMapEvent>;
template class Struct<RPG::SaveMapInfo>;
+template class Struct<RPG::SavePanorama>;
template class Struct<RPG::SavePartyLocation>;
template class Struct<RPG::SavePicture>;
template class Struct<RPG::SaveScreen>;

Add SavePanorama struct