TrinityCore
Loading...
Searching...
No Matches
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 TRINITYCORE_TOTEM_PACKETS_H
19
#define TRINITYCORE_TOTEM_PACKETS_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
explicit
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
explicit
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
explicit
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
// TRINITYCORE_TOTEM_PACKETS_H
uint8
uint8_t uint8
Definition
Define.h:156
int32
int32_t int32
Definition
Define.h:150
ObjectGuid.h
SMSG_TOTEM_CREATED
@ SMSG_TOTEM_CREATED
Definition
Opcodes.h:2382
SMSG_TOTEM_MOVED
@ SMSG_TOTEM_MOVED
Definition
Opcodes.h:2384
CMSG_TOTEM_DESTROYED
@ CMSG_TOTEM_DESTROYED
Definition
Opcodes.h:994
PacketUtilities.h
Packet.h
ObjectGuid
Definition
ObjectGuid.h:308
Totem
Definition
Totem.h:31
WorldPacket
Definition
WorldPacket.h:26
WorldPackets::ClientPacket
Definition
Packet.h:61
WorldPackets::Duration
Definition
PacketUtilities.h:324
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:29
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:23
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:42
WorldPackets::Totem::TotemMoved::Slot
uint8 Slot
Definition
TotemPackets.h:63
WorldPackets
Definition
GameObjectAI.h:36
std
STL namespace.
server
game
Server
Packets
TotemPackets.h
Generated on Sun May 10 2026 02:09:03 for TrinityCore by
1.9.8