Skip to content

Commit

Permalink
Add Map Chunk 0x5A
Browse files Browse the repository at this point in the history
  • Loading branch information
fmatthew5876 committed Oct 13, 2018
1 parent 37766f5 commit fa73e7f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions generator/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ Map,generator_tile_ids,f,Vector<Int16>,0x3E,,0,Array - Short
Map,lower_layer,f,Vector<Int16>,0x47,,0,Array - Short
Map,upper_layer,f,Vector<Int16>,0x48,,0,Array - Short
Map,events,f,Array<Event>,0x51,,0,Array - RPG::Event
Map,save_count_2k3e,f,Int32,0x5A,0,1,Integer - Used by steam version of rm2k3 instead of 0x5B.
Map,save_count,f,Int32,0x5B,0,0,Integer
SaveTitle,timestamp,f,Double,0x01,0.0,0,double - timestamp in Delphi's TDateTime format
SaveTitle,hero_name,f,String,0x0B,,0,char[]: hero name
Expand Down
2 changes: 2 additions & 0 deletions src/generated/lmu_chunks.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ namespace LMU_Reader {
upper_layer = 0x48,
/** Array - RPG::Event */
events = 0x51,
/** Integer - Used by steam version of rm2k3 instead of 0x5B. */
save_count_2k3e = 0x5A,
/** Integer */
save_count = 0x5B
};
Expand Down
1 change: 1 addition & 0 deletions src/generated/lmu_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ LCF_STRUCT_FIELDS_BEGIN()
LCF_STRUCT_TYPED_FIELD(std::vector<int16_t>, lower_layer, 0),
LCF_STRUCT_TYPED_FIELD(std::vector<int16_t>, upper_layer, 0),
LCF_STRUCT_TYPED_FIELD(std::vector<RPG::Event>, events, 0),
LCF_STRUCT_TYPED_FIELD(int32_t, save_count_2k3e, 1),
LCF_STRUCT_TYPED_FIELD(int32_t, save_count, 0),
LCF_STRUCT_FIELDS_END()

Expand Down
1 change: 1 addition & 0 deletions src/generated/rpg_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ namespace RPG {
std::vector<int16_t> lower_layer;
std::vector<int16_t> upper_layer;
std::vector<Event> events;
int32_t save_count_2k3e = 0;
int32_t save_count = 0;
};
}
Expand Down

0 comments on commit fa73e7f

Please sign in to comment.