SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
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 - 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 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< struct ShopDeptName_Data > AllShopDepts_Data
Definition: shop_serializers.h:17
std::vector< ShopDeptName_Data > AllShopDepts_Data
Definition: shop_definitions.h:57
Definition: DataStorage.h:23
bool loadFrom(BinStore *s, AllShops_Data &target)
Definition: shop_serializers.cpp:128
std::vector< struct ShopItemInfo_Data > AllShopItems_Data
Definition: shop_serializers.h:13
void saveTo(const AllShops_Data &target, const QString &baseName, bool text_format=false)
Definition: shop_serializers.cpp:219
std::vector< struct Shop_Data > AllShops_Data
Definition: shop_serializers.h:16
std::vector< ShopItemInfo_Data > AllShopItems_Data
Definition: shop_definitions.h:31
std::vector< Shop_Data > AllShops_Data
Definition: shop_definitions.h:51