SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
chardata_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 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
9 
11 #include <QtCore/QString>
12 #include <vector>
13 
14 enum SidekickType : uint8_t
15 {
18  IsMentor = 2,
19 };
20 
21 struct Sidekick
22 {
23 static const constexpr uint32_t class_version = 1;
24  bool m_has_sidekick = false;
25  uint32_t m_db_id = 0;
27 };
28 
30 {
31 static const constexpr uint32_t class_version = 3;
32  uint32_t m_level = 0;
33  uint32_t m_combat_level = 0; // might be different if player is sidekick or exemplar, or hasn't trained up.
34  uint32_t m_experience_points = 0;
35  uint32_t m_experience_debt = 0;
36  uint32_t m_experience_patrol = 0; // planned future use
37  uint32_t m_influence = 0;
39  bool m_has_the_prefix = false;
40  QString m_titles[3]; // Generic, Origin, Special
41  QString m_battle_cry;
43  bool m_afk = false;
44  QString m_afk_msg;
45  bool m_lfg = false;
46  QString m_alignment = "hero";
48  QString m_last_online;
49  QString m_class_name;
50  QString m_origin_name;
51  QString m_mapName;
52  uint32_t m_mapIdx;
53  bool m_supergroup_costume; // player has a sg costume
54  bool m_using_sg_costume; // player uses sg costume currently
55  Sidekick m_sidekick; // Sidekick Struct
56  FriendsList m_friendlist; // Friendslist Struct
57 };
Definition: chardata_definitions.h:21
bool m_has_titles
Definition: chardata_definitions.h:38
bool m_afk
Definition: chardata_definitions.h:43
uint32_t m_experience_debt
Definition: chardata_definitions.h:35
bool m_using_sg_costume
Definition: chardata_definitions.h:54
SidekickType
Definition: chardata_definitions.h:14
SidekickType m_type
Definition: chardata_definitions.h:26
bool m_has_sidekick
Definition: chardata_definitions.h:24
uint32_t m_combat_level
Definition: chardata_definitions.h:33
Definition: chardata_definitions.h:18
static const constexpr uint32_t class_version
Definition: chardata_definitions.h:23
QString m_titles[3]
Definition: chardata_definitions.h:40
uint32_t m_experience_points
Definition: chardata_definitions.h:34
bool m_supergroup_costume
Definition: chardata_definitions.h:53
bool m_lfg
Definition: chardata_definitions.h:45
QString m_class_name
Definition: chardata_definitions.h:49
Sidekick m_sidekick
Definition: chardata_definitions.h:55
static const constexpr uint32_t class_version
Definition: chardata_definitions.h:31
bool m_has_the_prefix
Definition: chardata_definitions.h:39
Definition: chardata_definitions.h:16
Definition: chardata_definitions.h:17
uint32_t m_db_id
Definition: chardata_definitions.h:25
QString m_battle_cry
Definition: chardata_definitions.h:41
QString m_alignment
Definition: chardata_definitions.h:46
uint32_t m_experience_patrol
Definition: chardata_definitions.h:36
Definition: Friend.h:25
uint32_t m_mapIdx
Definition: chardata_definitions.h:52
QString m_last_online
Definition: chardata_definitions.h:48
QString m_character_description
Definition: chardata_definitions.h:42
QString m_mapName
Definition: chardata_definitions.h:51
QString m_origin_name
Definition: chardata_definitions.h:50
uint32_t m_level
Definition: chardata_definitions.h:32
uint64_t m_last_costume_id
Definition: chardata_definitions.h:47
Definition: chardata_definitions.h:29
FriendsList m_friendlist
Definition: chardata_definitions.h:56
uint32_t m_influence
Definition: chardata_definitions.h:37
QString m_afk_msg
Definition: chardata_definitions.h:44