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
25
namespace
WorldPackets
26
{
27
namespace
Totem
28
{
29
class
TotemDestroyed
final :
public
ClientPacket
30
{
31
public
:
32
TotemDestroyed
(
WorldPacket
&& packet) :
ClientPacket
(
CMSG_TOTEM_DESTROYED
,
std
::move(packet)) { }
33
34
void
Read
()
override
;
35
36
ObjectGuid
TotemGUID
;
37
uint8
Slot
= 0;
38
};
39
40
class
TotemCreated
final :
public
ServerPacket
41
{
42
public
:
43
TotemCreated
() :
ServerPacket
(
SMSG_TOTEM_CREATED
, 25) { }
44
45
WorldPacket
const
*
Write
()
override
;
46
47
ObjectGuid
Totem
;
48
int32
SpellID
= 0;
49
WorldPackets::Duration<Milliseconds, int32>
Duration
;
50
uint8
Slot
= 0;
51
float
TimeMod
= 1.0f;
52
bool
CannotDismiss
=
false
;
53
};
54
55
class
TotemMoved
final :
public
ServerPacket
56
{
57
public
:
58
TotemMoved
() :
ServerPacket
(
SMSG_TOTEM_MOVED
, 18) { }
59
60
WorldPacket
const
*
Write
()
override
;
61
62
ObjectGuid
Totem
;
63
uint8
Slot
= 0;
64
uint8
NewSlot
= 0;
65
};
66
}
67
}
68
69
#endif
// TotemPackets_h__
uint8
uint8_t uint8
Definition:
Define.h:144
int32
int32_t int32
Definition:
Define.h:138
ObjectGuid.h
PacketUtilities.h
Packet.h
ObjectGuid
Definition:
ObjectGuid.h:268
Totem
Definition:
Totem.h:31
WorldPacket
Definition:
WorldPacket.h:26
WorldPackets::ClientPacket
Definition:
Packet.h:61
WorldPackets::Duration< Milliseconds, int32 >
WorldPackets::ServerPacket
Definition:
Packet.h:47
WorldPackets::Totem::TotemCreated
Definition:
TotemPackets.h:41
WorldPackets::Totem::TotemCreated::Slot
uint8 Slot
Definition:
TotemPackets.h:50
WorldPackets::Totem::TotemCreated::TotemCreated
TotemCreated()
Definition:
TotemPackets.h:43
WorldPackets::Totem::TotemCreated::CannotDismiss
bool CannotDismiss
Definition:
TotemPackets.h:52
WorldPackets::Totem::TotemCreated::Duration
WorldPackets::Duration< Milliseconds, int32 > Duration
Definition:
TotemPackets.h:49
WorldPackets::Totem::TotemCreated::Write
WorldPacket const * Write() override
Definition:
TotemPackets.cpp:26
WorldPackets::Totem::TotemCreated::Totem
ObjectGuid Totem
Definition:
TotemPackets.h:47
WorldPackets::Totem::TotemCreated::TimeMod
float TimeMod
Definition:
TotemPackets.h:51
WorldPackets::Totem::TotemCreated::SpellID
int32 SpellID
Definition:
TotemPackets.h:48
WorldPackets::Totem::TotemDestroyed
Definition:
TotemPackets.h:30
WorldPackets::Totem::TotemDestroyed::Read
void Read() override
Definition:
TotemPackets.cpp:20
WorldPackets::Totem::TotemDestroyed::TotemDestroyed
TotemDestroyed(WorldPacket &&packet)
Definition:
TotemPackets.h:32
WorldPackets::Totem::TotemDestroyed::Slot
uint8 Slot
Definition:
TotemPackets.h:37
WorldPackets::Totem::TotemDestroyed::TotemGUID
ObjectGuid TotemGUID
Definition:
TotemPackets.h:36
WorldPackets::Totem::TotemMoved
Definition:
TotemPackets.h:56
WorldPackets::Totem::TotemMoved::Totem
ObjectGuid Totem
Definition:
TotemPackets.h:62
WorldPackets::Totem::TotemMoved::TotemMoved
TotemMoved()
Definition:
TotemPackets.h:58
WorldPackets::Totem::TotemMoved::NewSlot
uint8 NewSlot
Definition:
TotemPackets.h:64
WorldPackets::Totem::TotemMoved::Write
WorldPacket const * Write() override
Definition:
TotemPackets.cpp:39
WorldPackets::Totem::TotemMoved::Slot
uint8 Slot
Definition:
TotemPackets.h:63
SMSG_TOTEM_CREATED
@ SMSG_TOTEM_CREATED
Definition:
Opcodes.h:2089
SMSG_TOTEM_MOVED
@ SMSG_TOTEM_MOVED
Definition:
Opcodes.h:2091
CMSG_TOTEM_DESTROYED
@ CMSG_TOTEM_DESTROYED
Definition:
Opcodes.h:884
WorldPackets
Definition:
GameObjectAI.h:36
std
STL namespace.
server
game
Server
Packets
TotemPackets.h
Generated on Tue Mar 18 2025 20:54:22 for TrinityCore by
1.9.4