From b54b67197ae241c7413c0e180736f4c836d41945 Mon Sep 17 00:00:00 2001 From: Charles A Edwards Date: Tue, 9 Aug 2016 09:36:35 +0100 Subject: [PATCH] Description of the meaning of the format strings added Description of the meaning of the format strings added to SQLStorages.cpp --- src/game/Server/SQLStorages.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/game/Server/SQLStorages.cpp b/src/game/Server/SQLStorages.cpp index 2539bb1e..aa056f14 100644 --- a/src/game/Server/SQLStorages.cpp +++ b/src/game/Server/SQLStorages.cpp @@ -24,6 +24,25 @@ #include "SQLStorages.h" +// The meaning of the format strings: +// +// taken from DBCFileLoader.h +// +// enum FieldFormat +// { +// DBC_FF_NA = 'x', // ignore/ default, 4 byte size, in Source String means field is ignored, in Dest String means field is filled with default value +// DBC_FF_NA_BYTE = 'X', // ignore/ default, 1 byte size, see above +// DBC_FF_NA_FLOAT = 'F', // ignore/ default, float size, see above +// DBC_FF_NA_POINTER = 'p', // fill default value into dest, pointer size, Use this only with static data (otherwise mem-leak) +// DBC_FF_STRING = 's', // char* +// DBC_FF_FLOAT = 'f', // float +// DBC_FF_INT = 'i', // uint32 +// DBC_FF_BYTE = 'b', // uint8 +// DBC_FF_SORT = 'd', // sorted by this field, field is not included +// DBC_FF_IND = 'n', // the same,but parsed to data +// DBC_FF_LOGIC = 'l' // Logical (boolean) +// }; +// const char CreatureInfosrcfmt[] = "issiiiiiiiifiiiiliiiiiffiiffffffiiiiffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis"; const char CreatureInfodstfmt[] = "issiiiiiiiifiiiiliiiiiffiiffffffiiiiffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis"; const char CreatureDataAddonInfofmt[] = "iiibbiis";