TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TotemPackets.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 TotemPackets_h__
19 #define TotemPackets_h__
20 
21 #include "Packet.h"
22 #include "ObjectGuid.h"
23 
24 namespace WorldPackets
25 {
26  namespace Totem
27  {
28  class TotemDestroyed final : public ClientPacket
29  {
30  public:
32 
33  void Read() override;
34 
36  uint8 Slot = 0;
37  };
38 
39  class TotemCreated final : public ServerPacket
40  {
41  public:
43 
44  WorldPacket const* Write() override;
45 
49  int8 Slot = 0;
50  };
51 
52  class TotemMoved final : public ServerPacket
53  {
54  public:
56 
57  WorldPacket const* Write() override;
58 
60  uint8 Slot = 0;
62  };
63  }
64 }
65 
66 #endif // TotemPackets_h__
int8_t int8
Definition: Define.h:148
Definition: Opcodes.h:1577
Definition: Opcodes.h:1578
WorldPacket const * Write() override
Definition: TotemPackets.cpp:26
uint8 NewSlot
Definition: TotemPackets.h:61
int32 SpellID
Definition: TotemPackets.h:47
STL namespace.
WorldPacket const * Write() override
Definition: TotemPackets.cpp:36
TotemMoved()
Definition: TotemPackets.h:55
ObjectGuid TotemGUID
Definition: TotemPackets.h:35
Definition: Totem.h:38
Definition: Opcodes.h:681
Definition: Packet.h:59
TotemCreated()
Definition: TotemPackets.h:42
Definition: TotemPackets.h:28
Definition: Packet.h:46
ObjectGuid Totem
Definition: TotemPackets.h:59
int32_t int32
Definition: Define.h:146
int32 Duration
Definition: TotemPackets.h:48
void Read() override
Definition: TotemPackets.cpp:20
uint8 Slot
Definition: TotemPackets.h:60
Definition: TotemPackets.h:39
Definition: BattlegroundMgr.h:57
int8 Slot
Definition: TotemPackets.h:49
uint8_t uint8
Definition: Define.h:152
TotemDestroyed(WorldPacket &&packet)
Definition: TotemPackets.h:31
uint8 Slot
Definition: TotemPackets.h:36
Definition: ObjectGuid.h:189
ObjectGuid Totem
Definition: TotemPackets.h:46
Definition: TotemPackets.h:52
Definition: WorldPacket.h:26