SEGS  0.6.1-develop [3e741b81]
Super Entity Game Server
def_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 #include <vector>
11 
12 class QString;
13 class BinStore;
14 struct LevelExpAndDebt;
15 struct Parse_Combining;
16 struct Parse_Effectiveness;
18 typedef std::vector<struct Parse_Origin> Parse_AllOrigins;
19 
20 constexpr const static uint32_t levelsdebts_i0_requiredCrc = 0x8F0D1A87;
21 bool loadFrom(BinStore *s,LevelExpAndDebt &target);
22 void saveTo(const LevelExpAndDebt & target, const QString &baseName, bool text_format=false);
23 
24 constexpr const static uint32_t combining_i0_requiredCrc = 0x7F06A6D1;
25 bool loadFrom(BinStore *s,Parse_Combining &target);
26 void saveTo(const Parse_Combining & target, const QString &baseName, bool text_format=false);
27 
28 
29 constexpr const static uint32_t boosteffectiveness_i0_requiredCrc = 0x5706CEC8;
30 bool loadFrom(BinStore *s,Parse_Effectiveness &target);
31 void saveTo(const Parse_Effectiveness & target, const QString &baseName, bool text_format=false);
32 
33 
34 constexpr const static uint32_t origins_i0_requiredCrc = 0x763EA46E;
35 bool loadFrom(BinStore *s,Parse_AllOrigins &target);
36 void saveTo(const Parse_AllOrigins & target, const QString &baseName, bool text_format=false);
37 
38 
39 constexpr const static uint32_t pischedule_i0_requiredCrc = 0x27267F27;
40 bool loadFrom(BinStore *s,Parse_PI_Schedule &target);
41 void saveTo(const Parse_PI_Schedule & target, const QString &baseName, bool text_format=false);
std::vector< struct Parse_Origin > Parse_AllOrigins
Definition: def_serializers.h:17
Definition: DataStorage.h:23
Definition: other_definitions.h:20
bool loadFrom(BinStore *s, LevelExpAndDebt &target)
Definition: def_serializers.cpp:128
Definition: other_definitions.h:26
Definition: other_definitions.h:12
void saveTo(const LevelExpAndDebt &target, const QString &baseName, bool text_format=false)
Definition: def_serializers.cpp:139
Definition: other_definitions.h:16