TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SystemPackets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef SystemPackets_h__
19 #define SystemPackets_h__
20 
21 #include "Packet.h"
22 
23 namespace WorldPackets
24 {
25  namespace System
26  {
27  class FeatureSystemStatus final : public ServerPacket
28  {
29  public:
31  {
36  };
37 
39  {
40  bool TicketsEnabled = false;
41  bool BugsEnabled = false;
42  bool ComplaintsEnabled = false;
43  bool SuggestionsEnabled = false;
44 
46  };
47 
49  {
50  int32 Delay = 0;
53  };
54 
56 
57  WorldPacket const* Write() override;
58 
59  bool VoiceEnabled = false;
60  bool BrowserEnabled = false;
61  bool BpayStoreAvailable = false;
63  bool BpayStoreEnabled = false;
77  bool CharUndeleteEnabled = false;
79  bool TwitterEnabled = false;
80  bool CommerceSystemEnabled = false;
81  bool Unk67 = false;
82  bool WillKickFromWorld = false;
83 
84  bool RestrictedAccount = false;
85  bool TutorialsEnabled = false;
86  bool NPETutorialsEnabled = false;
87  bool UnkBit61 = false;
88  };
89 
91  {
92  public:
94 
95  WorldPacket const* Write() override;
96 
97  bool BpayStoreAvailable = false; // NYI
99  bool CharUndeleteEnabled = false;
100  bool BpayStoreEnabled = false; // NYI
101  bool CommerceSystemEnabled = false; // NYI
102  bool Unk14 = false; // NYI
103  bool WillKickFromWorld = false; // NYI
107  };
108 
109  class MOTD final : public ServerPacket
110  {
111  public:
113 
114  WorldPacket const* Write() override;
115 
116  std::vector<std::string> const* Text = nullptr;
117  };
118 
120  {
121  public:
123 
124  WorldPacket const* Write() override;
125 
126  std::string ServerTimeTZ;
127  std::string GameTimeTZ;
128  };
129  }
130 }
131 
132 #endif // SystemPackets_h__
WorldPacket const * Write() override
Definition: SystemPackets.cpp:105
int32 TokenPollTimeSeconds
Definition: SystemPackets.h:74
bool IsExpansionPreorderInStore
Definition: SystemPackets.h:104
bool ScrollOfResurrectionEnabled
Definition: SystemPackets.h:66
std::string ServerTimeTZ
Definition: SystemPackets.h:126
Optional< EuropaTicketConfig > EuropaTicketSystemStatus
Definition: SystemPackets.h:67
WorldPacket const * Write() override
Definition: SystemPackets.cpp:121
bool RecruitAFriendSendingEnabled
Definition: SystemPackets.h:62
bool WillKickFromWorld
Definition: SystemPackets.h:82
bool TutorialsEnabled
Definition: SystemPackets.h:85
uint8 ComplaintStatus
Definition: SystemPackets.h:70
int32 TwitterPostThrottleCooldown
Time in seconds the client has to wait before posting again after hitting post limit.
Definition: SystemPackets.h:73
bool CharUndeleteEnabled
Implemented.
Definition: SystemPackets.h:77
bool Unk14
Definition: SystemPackets.h:102
uint32 ScrollOfResurrectionMaxRequestsPerDay
Definition: SystemPackets.h:65
bool BrowserEnabled
Definition: SystemPackets.h:60
bool ItemRestorationButtonEnabled
Definition: SystemPackets.h:76
SetTimeZoneInformation()
Definition: SystemPackets.h:122
bool BpayStoreDisabledByParentalControls
Definition: SystemPackets.h:98
bool RestrictedAccount
Definition: SystemPackets.h:84
FeatureSystemStatus()
Definition: SystemPackets.h:55
bool BpayStoreAvailable
Definition: SystemPackets.h:61
Definition: Opcodes.h:981
bool UnkBit61
Definition: SystemPackets.h:87
uint32 ScrollOfResurrectionRequestsRemaining
Definition: SystemPackets.h:68
Definition: Packet.h:46
bool CharUndeleteEnabled
Definition: SystemPackets.h:99
bool WillKickFromWorld
Definition: SystemPackets.h:103
int32 TokenPollTimeSeconds
Definition: SystemPackets.h:105
SavedThrottleObjectState ThrottleState
Definition: SystemPackets.h:45
Definition: Opcodes.h:1517
Definition: SystemPackets.h:119
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
Text
Definition: boss_ascendant_lord_obsidius.cpp:22
bool NPETutorialsEnabled
Definition: SystemPackets.h:86
int32 CfgRealmRecID
Definition: SystemPackets.h:71
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
bool Unk67
Definition: SystemPackets.h:81
bool CommerceSystemEnabled
Definition: SystemPackets.h:80
uint32 CfgRealmID
Definition: SystemPackets.h:69
Definition: BattlegroundMgr.h:57
WorldPacket const * Write() override
Definition: SystemPackets.cpp:87
Definition: SystemPackets.h:27
bool BpayStoreAvailable
Definition: SystemPackets.h:97
bool VoiceEnabled
Definition: SystemPackets.h:59
std::string GameTimeTZ
Definition: SystemPackets.h:127
bool TwitterEnabled
Definition: SystemPackets.h:79
MOTD()
Definition: SystemPackets.h:112
bool BpayStoreDisabledByParentalControls
Definition: SystemPackets.h:78
bool BpayStoreEnabled
Definition: SystemPackets.h:100
uint8_t uint8
Definition: Define.h:152
int32 TwitterPostThrottleLimit
Number of twitter posts the client can send before they start being throttled.
Definition: SystemPackets.h:72
int32 TokenRedeemIndex
Definition: SystemPackets.h:75
WorldPacket const * Write() override
Definition: SystemPackets.cpp:20
Optional< SessionAlertConfig > SessionAlert
Definition: SystemPackets.h:64
Definition: SystemPackets.h:109
bool BpayStoreEnabled
Definition: SystemPackets.h:63
Definition: WorldPacket.h:26
bool CommerceSystemEnabled
Definition: SystemPackets.h:101
Definition: Opcodes.h:1223
FeatureSystemStatusGlueScreen()
Definition: SystemPackets.h:93
int32 TokenRedeemIndex
Definition: SystemPackets.h:106