TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ClientConfigPackets.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 ClientConfigPackets_h__
19 #define ClientConfigPackets_h__
20 
21 #include "Packet.h"
22 #include "AddonMgr.h"
23 #include "WorldSession.h"
24 
25 namespace WorldPackets
26 {
27  namespace ClientConfig
28  {
29  class AddonInfo final : public ServerPacket
30  {
31  static uint8 const PublicKey[256];
32 
33  public:
35 
36  WorldPacket const* Write() override;
37 
38  std::list< ::AddonInfo> const* Addons = nullptr;
39  std::list<BannedAddon> const* BannedAddons = nullptr;
40  };
41 
42  class AccountDataTimes final : public ServerPacket
43  {
44  public:
46 
47  WorldPacket const* Write() override;
48 
52  };
53 
54  class ClientCacheVersion final : public ServerPacket
55  {
56  public:
58 
59  WorldPacket const* Write() override;
60 
62  };
63 
64  class RequestAccountData final : public ClientPacket
65  {
66  public:
68 
69  void Read() override;
70 
73  };
74 
75  class UpdateAccountData final : public ServerPacket
76  {
77  public:
79 
80  WorldPacket const* Write() override;
81 
83  uint32 Time = 0;
84  uint32 Size = 0;
87  };
88 
90  {
91  public:
93 
94  void Read() override;
95 
97  uint32 Time = 0;
98  uint32 Size = 0;
101  };
102 
104  {
105  public:
107 
108  void Read() override;
109 
110  bool Enable = false;
111  };
112  }
113 }
114 
115 #endif // ClientConfigPackets_h__
uint32 Time
UnixTime.
Definition: ClientConfigPackets.h:83
ByteBuffer CompressedData
Definition: ClientConfigPackets.h:100
std::list< BannedAddon > const * BannedAddons
Definition: ClientConfigPackets.h:39
Definition: ByteBuffer.h:70
Definition: ClientConfigPackets.h:42
WorldPacket const * Write() override
Definition: ClientConfigPackets.cpp:104
Definition: ClientConfigPackets.h:54
ObjectGuid PlayerGuid
Definition: ClientConfigPackets.h:49
UpdateAccountData()
Definition: ClientConfigPackets.h:78
void Read() override
Definition: ClientConfigPackets.cpp:131
Definition: Opcodes.h:1594
uint32 Size
decompressed size
Definition: ClientConfigPackets.h:98
uint8 DataType
Definition: ClientConfigPackets.h:85
uint32 AccountTimes[NUM_ACCOUNT_DATA_TYPES]
Definition: ClientConfigPackets.h:51
void Read() override
Definition: ClientConfigPackets.cpp:98
STL namespace.
void Read() override
Definition: ClientConfigPackets.cpp:116
WorldPacket const * Write() override
Definition: ClientConfigPackets.cpp:91
uint32 ServerTime
Definition: ClientConfigPackets.h:50
Definition: ClientConfigPackets.h:29
uint32 Size
decompressed size
Definition: ClientConfigPackets.h:84
std::list< ::AddonInfo > const * Addons
Definition: ClientConfigPackets.h:38
WorldPacket const * Write() override
Definition: ClientConfigPackets.cpp:82
Definition: ClientConfigPackets.h:64
AddonInfo()
Definition: ClientConfigPackets.h:34
ObjectGuid Player
Definition: ClientConfigPackets.h:82
Definition: Packet.h:59
Definition: Packet.h:46
uint32_t uint32
Definition: Define.h:150
Definition: Opcodes.h:607
Definition: Opcodes.h:559
UserClientUpdateAccountData(WorldPacket &&packet)
Definition: ClientConfigPackets.h:92
Definition: BattlegroundMgr.h:57
Definition: ClientConfigPackets.h:103
Definition: Opcodes.h:729
uint32 CacheVersion
Definition: ClientConfigPackets.h:61
Definition: Opcodes.h:843
Definition: Opcodes.h:698
SetAdvancedCombatLogging(WorldPacket &&packet)
Definition: ClientConfigPackets.h:106
uint8 DataType
Definition: ClientConfigPackets.h:99
WorldPacket const * Write() override
Definition: ClientConfigPackets.cpp:40
ByteBuffer CompressedData
Definition: ClientConfigPackets.h:86
uint8_t uint8
Definition: Define.h:152
Definition: ClientConfigPackets.h:75
ObjectGuid PlayerGuid
Definition: ClientConfigPackets.h:96
bool Enable
Definition: ClientConfigPackets.h:110
RequestAccountData(WorldPacket &&packet)
Definition: ClientConfigPackets.h:67
static uint8 const PublicKey[256]
Definition: ClientConfigPackets.h:31
ClientCacheVersion()
Definition: ClientConfigPackets.h:57
Definition: ObjectGuid.h:189
AccountDataTimes()
Definition: ClientConfigPackets.h:45
ObjectGuid PlayerGuid
Definition: ClientConfigPackets.h:71
#define NUM_ACCOUNT_DATA_TYPES
Definition: WorldSession.h:735
Definition: WorldPacket.h:26
Definition: Opcodes.h:735
uint8 DataType
Definition: ClientConfigPackets.h:72
uint32 Time
UnixTime.
Definition: ClientConfigPackets.h:97