SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
entitydata_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 #include <stdint.h>
10 
11 class QString;
12 struct EntityData;
13 
14 template<class Archive>
15 void serialize(Archive & archive, EntityData & m, uint32_t const version);
16 
17 void saveTo(const EntityData &target,const QString &baseName,bool text_format=false);
18 
19 void serializeToDb(const EntityData &data, QString &tgt);
20 void serializeFromDb(EntityData &data, const QString &src);
Definition: entitydata_definitions.h:14
void saveTo(const EntityData &target, const QString &baseName, bool text_format=false)
Definition: entitydata_serializers.cpp:42
archive(cereal::make_nvp("OriginIdx", ed.m_origin_idx))
void serialize(Archive &archive, EntityData &m, uint32_t const version)
void serializeToDb(const EntityData &data, QString &tgt)
Definition: entitydata_serializers.cpp:52
EntityData uint32_t const version
Definition: entitydata_serializers.cpp:25
void serializeFromDb(EntityData &data, const QString &src)
Definition: entitydata_serializers.cpp:62