TrinityCore
TotemPackets.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 TotemPackets_h__
19#define TotemPackets_h__
20
21#include "ObjectGuid.h"
22#include "Packet.h"
23#include "PacketUtilities.h"
24
25namespace WorldPackets
26{
27 namespace Totem
28 {
29 class TotemDestroyed final : public ClientPacket
30 {
31 public:
33
34 void Read() override;
35
38 };
39
40 class TotemCreated final : public ServerPacket
41 {
42 public:
44
45 WorldPacket const* Write() override;
46
51 float TimeMod = 1.0f;
52 bool CannotDismiss = false;
53 };
54
55 class TotemMoved final : public ServerPacket
56 {
57 public:
59
60 WorldPacket const* Write() override;
61
65 };
66 }
67}
68
69#endif // TotemPackets_h__
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
Definition: Totem.h:31
WorldPackets::Duration< Milliseconds, int32 > Duration
Definition: TotemPackets.h:49
WorldPacket const * Write() override
TotemDestroyed(WorldPacket &&packet)
Definition: TotemPackets.h:32
WorldPacket const * Write() override
@ CMSG_TOTEM_DESTROYED
Definition: Opcodes.h:853
@ SMSG_TOTEM_CREATED
Definition: Opcodes.h:2001
@ SMSG_TOTEM_MOVED
Definition: Opcodes.h:2003
STL namespace.