SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
attrib_serializers.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
6  */
7 
8 #pragma once
9 
10 #include <stdint.h>
11 #include <vector>
12 class BinStore;
13 class QString;
14 
15 struct Parse_CharAttrib;
16 struct Parse_CharAttribMax;
17 struct AttribNames_Data;
18 
19 constexpr const static uint32_t attribnames_i0_requiredCrc = 0xED2ECE38;
20 bool loadFrom(BinStore *s,AttribNames_Data &target) ;
21 void saveTo(const AttribNames_Data &target,const QString &baseName,bool text_format=false);
22 
23 bool loadFrom(BinStore *s, Parse_CharAttrib &target);
24 bool loadFrom(BinStore *s, Parse_CharAttribMax &target);
25 
26 void serializeToDb(const Parse_CharAttrib &data, QString &tgt);
27 void serializeFromDb(Parse_CharAttrib &data, const QString &src);
bool loadFrom(BinStore *s, AttribNames_Data &target)
Definition: attrib_serializers.cpp:34
Definition: DataStorage.h:23
void saveTo(const AttribNames_Data &target, const QString &baseName, bool text_format=false)
Definition: attrib_serializers.cpp:64
void serializeFromDb(Parse_CharAttrib &data, const QString &src)
Definition: attrib_serializers.cpp:197
Definition: CharacterAttributes.h:22
Definition: CharacterAttributes.h:32
void serializeToDb(const Parse_CharAttrib &data, QString &tgt)
Definition: attrib_serializers.cpp:187
Definition: CharacterAttributes.h:91