TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
EquipmentSetPackets.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 #pragma once
19 
20 #include "Packet.h"
21 #include "Player.h"
22 #include "ItemPackets.h"
23 
24 namespace WorldPackets
25 {
26  namespace EquipmentSet
27  {
28  class EquipmentSetID final : public ServerPacket
29  {
30  public:
32 
33  WorldPacket const* Write() override;
34 
35  uint64 GUID = 0;
36  uint32 SetID = 0;
37  };
38 
39  class LoadEquipmentSet final : public ServerPacket
40  {
41  public:
43 
44  WorldPacket const* Write() override;
45 
46  std::vector<EquipmentSetInfo::EquipmentSetData const*> SetData;
47  };
48 
49  class SaveEquipmentSet final : public ClientPacket
50  {
51  public:
53 
54  void Read() override;
55 
56  EquipmentSetInfo::EquipmentSetData Set;
57  };
58 
59  class DeleteEquipmentSet final : public ClientPacket
60  {
61  public:
63 
64  void Read() override;
65 
66  uint64 ID = 0;
67  };
68 
69  class UseEquipmentSet final : public ClientPacket
70  {
71  public:
73 
74  void Read() override;
75 
77  {
80  uint8 Slot = 0;
81  };
82 
84  EquipmentSetItem Items[EQUIPMENT_SLOT_END];
85  };
86 
87  class UseEquipmentSetResult final : public ServerPacket
88  {
89  public:
91 
92  WorldPacket const* Write() override;
93 
95  };
96  }
97 }
Definition: EquipmentSetPackets.h:59
Definition: EquipmentSetPackets.h:49
WorldPacket const * Write() override
Definition: EquipmentSetPackets.cpp:85
Definition: Opcodes.h:709
LoadEquipmentSet()
Definition: EquipmentSetPackets.h:42
Definition: EquipmentSetPackets.h:39
Definition: Opcodes.h:976
UseEquipmentSet(WorldPacket &&packet)
Definition: EquipmentSetPackets.h:72
SaveEquipmentSet(WorldPacket &&packet)
Definition: EquipmentSetPackets.h:52
Definition: Opcodes.h:589
Definition: Opcodes.h:236
STL namespace.
uint64 GUID
Set Identifier.
Definition: EquipmentSetPackets.h:35
WorldPackets::Item::InvUpdate Inv
Definition: EquipmentSetPackets.h:83
WorldPacket const * Write() override
Definition: EquipmentSetPackets.cpp:20
uint8 ContainerSlot
Definition: EquipmentSetPackets.h:79
std::vector< EquipmentSetInfo::EquipmentSetData const * > SetData
Definition: EquipmentSetPackets.h:46
DeleteEquipmentSet(WorldPacket &&packet)
Definition: EquipmentSetPackets.h:62
Definition: EquipmentSetPackets.h:28
Definition: Packet.h:59
ObjectGuid Item
Definition: EquipmentSetPackets.h:78
Definition: Packet.h:46
Definition: EquipmentSetPackets.h:69
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
Definition: EquipmentSetPackets.h:87
uint8 Slot
Definition: EquipmentSetPackets.h:80
Definition: Opcodes.h:1190
Definition: BattlegroundMgr.h:57
Definition: Opcodes.h:1609
WorldPacket const * Write() override
Definition: EquipmentSetPackets.cpp:28
EquipmentSetID()
Definition: EquipmentSetPackets.h:31
uint8_t uint8
Definition: Define.h:152
EquipmentSetInfo::EquipmentSetData Set
Definition: EquipmentSetPackets.h:56
uint8 Reason
Definition: EquipmentSetPackets.h:94
uint64 ID
Definition: EquipmentSetPackets.h:66
void Read() override
Definition: EquipmentSetPackets.cpp:52
Definition: ObjectGuid.h:189
void Read() override
Definition: EquipmentSetPackets.cpp:73
Definition: ItemPackets.h:228
uint32 SetID
Index.
Definition: EquipmentSetPackets.h:36
Definition: WorldPacket.h:26
EquipmentSetItem Items[EQUIPMENT_SLOT_END]
Definition: EquipmentSetPackets.h:84
void Read() override
Definition: EquipmentSetPackets.cpp:68
UseEquipmentSetResult()
Definition: EquipmentSetPackets.h:90