Mangos DBC文件格式定义Sort:Develop, Read:9, Edit, Delete, Backconst char AreaTableEntryfmt[]="iiinixxxxxissssssssxixxxxxxxxxxxxxx";const char BankBagSlotPricesEntryfmt[]="ni";
const char BattlemasterListEntryfmt[]="niixxxxxxiiiixxssssssssx";
const char ChatChannelsEntryfmt[]="iixssssssssxxxxxxxxxx"; // data not sorted (more compact store)
const char ChrClassesEntryfmt[]="nxxixxxxxxxxxxxxxx";
const char ChrRacesEntryfmt[]="nxixiixxixxxxissssssssxxxxx";
const char CreatureFamilyfmt[]="nxxxxxiissssssssxx";
X field not used by Mangos
N index for sorting
I integer
D not used index (D = N+X)
S string
F float
typedef ACE_UINT16 uint16;
typedef ACE_UINT8 uint8;
+enum DBCFormer
+{
+ FT_NA='x', //not used or unknown, 4 byte size
+ FT_NA_BYTE='X', //not used or unknown, byte
+ FT_STRING='s', //char*
+ FT_FLOAT='f', //float
+ FT_INT='i', //uint32
+ FT_BYTE='b', //uint8
+ FT_SORT='d', //sorted by this field, field is not included
+ FT_IND='n', //the same, but parsed to data
+ FT_LOGIC='l', //Logical (boolean)
+ FT_SQL_PRESENT='p', //Used in sql format to mark column present in sql dbc
+ FT_SQL_ABSENT='a' //Used in sql format to mark column absent in sql dbc
+};
|