SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
shop_definitions.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 <QtCore/QString>
10 #include <vector>
11 
13 {
14  QByteArray m_PowerCategory;
15  QByteArray m_PowerSet;
16  QByteArray m_Power;
17  int m_Level;
18  int m_Remove;
19 };
20 
22 {
23  QByteArray m_Name;
25  int m_Sell;
26  int m_Buy;
28  std::vector<uint32_t> m_Departments;
29  struct Power_Data *power_tpl; // looked up by using entries in m_Power
30 };
31 using AllShopItems_Data = std::vector<ShopItemInfo_Data>;
32 
34 {
36  float m_Markup;
37 };
38 
40 {
41  QByteArray m_Name;
42 };
43 
44 struct Shop_Data
45 {
46  QByteArray m_Name;
47  std::vector<ShopBuySell_Data> m_Sells;
48  std::vector<ShopBuySell_Data> m_Buys;
49  std::vector<ShopItem_Data> m_Items;
50 };
51 using AllShops_Data = std::vector<Shop_Data>;
52 
54 {
55  QByteArray m_Names;
56 };
57 using AllShopDepts_Data = std::vector<ShopDeptName_Data>;
Definition: shop_definitions.h:44
Definition: shop_definitions.h:12
Definition: shop_definitions.h:53
std::vector< ShopDeptName_Data > AllShopDepts_Data
Definition: shop_definitions.h:57
QByteArray m_PowerSet
Definition: shop_definitions.h:15
int m_Sell
Definition: shop_definitions.h:25
QByteArray m_Name
Definition: shop_definitions.h:23
QByteArray m_Power
Definition: shop_definitions.h:16
std::vector< ShopItem_Data > m_Items
Definition: shop_definitions.h:49
int m_Remove
Definition: shop_definitions.h:18
int m_CountPerStore
Definition: shop_definitions.h:27
struct Power_Data * power_tpl
Definition: shop_definitions.h:29
float m_Markup
Definition: shop_definitions.h:36
int m_Department
Definition: shop_definitions.h:35
Definition: shop_definitions.h:39
Definition: power_definitions.h:187
QByteArray m_Name
Definition: shop_definitions.h:46
QByteArray m_Name
Definition: shop_definitions.h:41
std::vector< ShopBuySell_Data > m_Buys
Definition: shop_definitions.h:48
int m_Level
Definition: shop_definitions.h:17
std::vector< uint32_t > m_Departments
Definition: shop_definitions.h:28
Definition: shop_definitions.h:33
int m_Buy
Definition: shop_definitions.h:26
QByteArray m_PowerCategory
Definition: shop_definitions.h:14
ItemPower_Data m_Power
Definition: shop_definitions.h:24
std::vector< ShopBuySell_Data > m_Sells
Definition: shop_definitions.h:47
std::vector< ShopItemInfo_Data > AllShopItems_Data
Definition: shop_definitions.h:31
QByteArray m_Names
Definition: shop_definitions.h:55
Definition: shop_definitions.h:21
std::vector< Shop_Data > AllShops_Data
Definition: shop_definitions.h:51