From 1bf9a70cbdd5cad22b4bb89eb5f7ab2a7759ce92 Mon Sep 17 00:00:00 2001 From: Charles A Edwards Date: Tue, 9 Aug 2016 09:58:26 +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 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/game/Server/SQLStorages.cpp b/src/game/Server/SQLStorages.cpp index d08475bb2..710f16e72 100644 --- a/src/game/Server/SQLStorages.cpp +++ b/src/game/Server/SQLStorages.cpp @@ -24,6 +24,26 @@ #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[] = "iiiiiiiiiisssiiiiiiiiiiifffiffiifiiiiiiiiiiiffiiiiiiiiiiiiiiisiiffliiiiiiiliiiiiis"; const char CreatureInfodstfmt[] = "iiiiiiiiiisssiiiiiiiiiiifffiffiifiiiiiiiiiiiffiiiiiiiiiiiiiiisiiffliiiiiiiliiiiiii"; const char CreatureDataAddonInfofmt[] = "iiibbiis";