mirror of
https://github.com/celisej567/BCWSsrc.git
synced 2026-09-15 20:12:39 +03:00
Initial Mapbase commit (squashed from mapbase-beta)
This commit is contained in:
@@ -70,6 +70,15 @@ public:
|
||||
std::string *pString = (std::string *)fieldInfo.pField;
|
||||
return pString->empty();
|
||||
}
|
||||
|
||||
#ifdef MAPBASE
|
||||
virtual bool Parse( const SaveRestoreFieldInfo_t &fieldInfo, char const* szValue )
|
||||
{
|
||||
std::string *pString = (std::string *)fieldInfo.pField;
|
||||
pString->assign(szValue);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
//-------------------------------------
|
||||
@@ -85,4 +94,9 @@ inline ISaveRestoreOps *GetStdStringDataOps()
|
||||
#define DEFINE_STDSTRING(name) \
|
||||
{ FIELD_CUSTOM, #name, { offsetof(classNameTypedef,name), 0 }, 1, FTYPEDESC_SAVE, NULL, GetStdStringDataOps(), NULL }
|
||||
|
||||
#ifdef MAPBASE
|
||||
#define DEFINE_KEYSTDSTRING(name,mapname) \
|
||||
{ FIELD_CUSTOM, #name, { offsetof(classNameTypedef, name), 0 }, 1, FTYPEDESC_SAVE | FTYPEDESC_KEY, mapname, GetStdStringDataOps(), NULL }
|
||||
#endif
|
||||
|
||||
#endif // STDSTRING_H
|
||||
|
||||
Reference in New Issue
Block a user