SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
shop_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 #include <stdint.h>
10 #include <vector>
11 
12 class BinStore;
13 class QString;
14 
15 typedef std::vector<struct ShopItemInfo_Data> AllShopItems_Data;
16 typedef std::vector<struct Shop_Data> AllShops_Data;
17 typedef std::vector<struct ShopDeptName_Data> AllShopDepts_Data;
18 
19 static constexpr uint32_t shoplist_i0_requiredCrc=0x5418912E;
20 bool loadFrom(BinStore *s,AllShops_Data &target);
21 void saveTo(const AllShops_Data &target,const QString &baseName,bool text_format=false);
22 
23 static constexpr uint32_t shopitems_i0_requiredCrc=0xAE135EB6;
24 bool loadFrom(BinStore *s,AllShopItems_Data *target);
25 void saveTo(const AllShopItems_Data &target,const QString &baseName,bool text_format=false);
26 
27 static constexpr uint32_t shopdepts_i0_requiredCrc=0xCB0532EC;
28 bool loadFrom(BinStore *s, AllShopDepts_Data *target);
29 void saveTo(const AllShopDepts_Data &target,const QString &baseName,bool text_format=false);
std::vector< ShopDeptName_Data > AllShopDepts_Data
Definition: shop_definitions.h:57
Definition: DataStorage.h:23
std::vector< Shop_Data > AllShops_Data
Definition: shop_definitions.h:51
bool loadFrom(BinStore *s, TextureAnim_Data &target)
Definition: anim_serializers.cpp:19
std::vector< ShopItemInfo_Data > AllShopItems_Data
Definition: shop_definitions.h:31
void saveTo(const TextureAnim_Data &target, const QString &baseName, bool text_format=false)