SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
keybind_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 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
9 
10 #include "keybind_definitions.h"
11 
12 #include <stdint.h>
13 #include <vector>
14 
15 class BinStore;
16 class QString;
17 class KeybindSettings;
18 
19 using Parse_AllKeyProfiles = std::vector<struct Keybind_Profiles>;
20 using Parse_AllCommandCategories = std::vector<struct CommandCategory_Entry>;
21 
22 constexpr const static uint32_t keyprofile_i0_requiredCrc = 0x4513EAB7;
23 bool loadFrom(BinStore *s,Parse_AllKeyProfiles &target) ;
24 void saveTo(const Parse_AllKeyProfiles &target,const QString &baseName,bool text_format=false);
25 
26 constexpr const static uint32_t keycommands_i0_requiredCrc = 0xA918C191;
28 void saveTo(const Parse_AllCommandCategories &target,const QString &baseName,bool text_format=false);
29 
30 template<class Archive>
31 void serialize(Archive &archive, Keybind &k);
32 
33 template<class Archive>
34 void serialize(Archive &archive, Keybind_Profiles &kp);
35 
36 template<class Archive>
37 void serialize(Archive &archive, KeybindSettings &kbds, uint32_t const version);
38 
39 void saveTo(const KeybindSettings &target,const QString &baseName,bool text_format=false);
40 
41 void serializeToDb(const KeybindSettings &data, QString &tgt);
42 void serializeFromDb(KeybindSettings &data, const QString &src);
void serializeFromDb(ClientOptions &data, const QString &src)
Keybind & k
Definition: keybind_serializers.cpp:197
void serialize(Archive &archive, TextureAnim_Data &m)
Definition: anim_serializers.cpp:33
Definition: keybind_definitions.h:448
Definition: DataStorage.h:23
void serializeToDb(const ClientOptions &data, QString &tgt)
Definition: keybind_definitions.h:439
std::vector< Keybind_Profiles > Parse_AllKeyProfiles
Definition: keybind_definitions.h:472
Definition: keybind_definitions.h:476
bool loadFrom(BinStore *s, TextureAnim_Data &target)
Definition: anim_serializers.cpp:19
std::vector< CommandCategory_Entry > Parse_AllCommandCategories
Definition: keybind_definitions.h:474
void saveTo(const TextureAnim_Data &target, const QString &baseName, bool text_format=false)
archive(cereal::make_nvp("Mods", k.Mods))