TrinityCore
SystemPackets.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
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#include "ObjectGuid.h"
23#include "Optional.h"
24#include "PacketUtilities.h"
25
26namespace WorldPackets
27{
28 namespace System
29 {
31 {
36 };
37
39 {
40 bool TicketsEnabled = false;
41 bool BugsEnabled = false;
42 bool ComplaintsEnabled = false;
43 bool SuggestionsEnabled = false;
44
46 };
47
49 {
52 };
53
54 class FeatureSystemStatus final : public ServerPacket
55 {
56 public:
58 {
62 };
63
65 {
66 bool ToastsDisabled = false;
67 float ToastDuration = 0.0f;
68 float DelayDuration = 0.0f;
69 float QueueMultiplier = 0.0f;
70 float PlayerMultiplier = 0.0f;
71 float PlayerFriendValue = 0.0f;
72 float PlayerGuildValue = 0.0f;
74 float ThrottleDecayTime = 0.0f;
89 };
90
92 {
93 bool IsSquelched = false;
96 };
97
99 {
100 bool Enabled = false;
101 bool RecruitingEnabled = false;
107 };
108
110
111 WorldPacket const* Write() override;
112
113 bool VoiceEnabled = false;
114 bool BrowserEnabled = false;
115 bool BpayStoreAvailable = false;
116 bool BpayStoreEnabled = false;
133 bool CharUndeleteEnabled = false;
136 bool Unk67 = false;
137 bool WillKickFromWorld = false;
138 bool RestrictedAccount = false;
139 bool TutorialsEnabled = false;
141 bool KioskModeEnabled = false;
145 bool ClubsEnabled = false;
152 bool IsMuted = false;
153 bool ClubFinderEnabled = false;
159 bool AddonsDisabled = false;
160 bool WarGamesEnabled = false; // classic only
163 bool IsGroupFinderEnabled = true; // classic only
164 bool IsLFDEnabled = true; // classic only
165 bool IsLFREnabled = true; // classic only
166 bool IsPremadeGroupEnabled = true; // classic only
167
171 std::vector<GameRuleValuePair> GameRuleValues;
172 };
173
175 {
177 std::string_view Text;
178 };
179
181 {
182 public:
184
185 WorldPacket const* Write() override;
186
187 bool BpayStoreAvailable = false; // NYI
190 bool BpayStoreEnabled = false; // NYI
191 bool CommerceSystemEnabled = false; // NYI
192 bool Unk14 = false; // NYI
193 bool WillKickFromWorld = false; // NYI
194 bool IsExpansionPreorderInStore = false; // NYI
195 bool KioskModeEnabled = false; // NYI
196 bool CompetitiveModeEnabled = false; // NYI
197 bool TrialBoostEnabled = false; // NYI
198 bool TokenBalanceEnabled = false; // NYI
201 bool LiveRegionAccountCopyEnabled = false; // NYI
203 bool Unknown901CheckoutRelated = false; // NYI
204 bool AddonsDisabled = false;
205 bool Unused1000 = false;
219 int32 ActiveSeason = 0; // Currently active Classic season
220 std::vector<GameRuleValuePair> GameRuleValues;
225 std::vector<DebugTimeEventInfo> DebugTimeEvents;
228 };
229
231 {
232 public:
234
235 WorldPacket const* Write() override;
236
237 std::string_view ServerTimeTZ;
238 std::string_view GameTimeTZ;
239 std::string_view ServerRegionalTZ;
240 };
241 }
242}
243
244#endif // SystemPackets_h__
uint8_t uint8
Definition: Define.h:144
int64_t int64
Definition: Define.h:137
int16_t int16
Definition: Define.h:139
int32_t int32
Definition: Define.h:138
uint32_t uint32
Definition: Define.h:142
std::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Optional.h:25
ComplaintStatus
Optional< EuropaTicketConfig > EuropaTicketSystemStatus
std::vector< DebugTimeEventInfo > DebugTimeEvents
std::vector< GameRuleValuePair > GameRuleValues
std::vector< GameRuleValuePair > GameRuleValues
Optional< EuropaTicketConfig > EuropaTicketSystemStatus
Optional< SessionAlertConfig > SessionAlert
uint32 HiddenUIClubsPresenceUpdateTimer
Timer for updating club presence when communities ui frame is hidden.
int32 ActiveSeason
Currently active Classic season.
WorldPacket const * Write() override
Duration< Seconds, uint32 > PlayerNameQueryInterval
WorldPacket const * Write() override
@ SMSG_FEATURE_SYSTEM_STATUS_GLUE_SCREEN
Definition: Opcodes.h:1242
@ SMSG_SET_TIME_ZONE_INFORMATION
Definition: Opcodes.h:1928
@ SMSG_FEATURE_SYSTEM_STATUS
Definition: Opcodes.h:1241
SavedThrottleObjectState ThrottleState
Definition: SystemPackets.h:45