Skip to content

Commit

Permalink
MapInfo - use DBString
Browse files Browse the repository at this point in the history
  • Loading branch information
mateofio committed Aug 16, 2020
1 parent 08bb429 commit 09cfa2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generator/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ Database,classes,f,Array<Class>,0x1E,,1,1,rpg::Class - RPG2003
Database,classD1,f,EmptyBlock,0x1F,,1,1,Duplicated? - Not used - RPG2003
Database,battleranimations,f,Array<BattlerAnimation>,0x20,,1,1,rpg::BattlerAnimation - RPG2003
Encounter,troop_id,f,Ref<Troop>,0x01,0,0,0,Integer
MapInfo,name,f,String,0x01,'',0,0,String. Note: Map ID 0 used to be game title but it should be ignored (TreeCtrl dummy editor dumped data); always use RPG_RT.ini GameTitle instead
MapInfo,name,f,DBString,0x01,'',0,0,String. Note: Map ID 0 used to be game title but it should be ignored (TreeCtrl dummy editor dumped data); always use RPG_RT.ini GameTitle instead
MapInfo,parent_map,f,Ref<Map>,0x02,0,0,0,Integer. Used to inherit parent map properties
MapInfo,indentation,f,Int32,0x03,0,0,0,Integer. Dummy editor dumped data. Branch indentation level in TreeCtrl
MapInfo,type,f,Enum<TreeMap_MapType>,0x04,-1,0,0,Integer
Expand Down
3 changes: 2 additions & 1 deletion src/generated/lcf/rpg/mapinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <stdint.h>
#include <string>
#include <vector>
#include "lcf/dbstring.h"
#include "lcf/enum_tags.h"
#include "lcf/rpg/encounter.h"
#include "lcf/rpg/music.h"
Expand Down Expand Up @@ -62,7 +63,7 @@ namespace rpg {
);

int ID = 0;
std::string name;
DBString name;
int32_t parent_map = 0;
int32_t indentation = 0;
int32_t type = -1;
Expand Down
2 changes: 1 addition & 1 deletion src/generated/lmt_mapinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace lcf {

template <>
char const* const Struct<rpg::MapInfo>::name = "MapInfo";
static TypedField<rpg::MapInfo, std::string> static_name(
static TypedField<rpg::MapInfo, DBString> static_name(
&rpg::MapInfo::name,
LMT_Reader::ChunkMapInfo::name,
"name",
Expand Down

0 comments on commit 09cfa2d

Please sign in to comment.