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 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
:
31
TotemDestroyed
(
WorldPacket
&&
packet
) :
ClientPacket
(
CMSG_TOTEM_DESTROYED
,
std
::move(
packet
)) { }
32
33
void
Read
()
override
;
34
35
uint8
Slot
= 0;
36
};
37
38
class
TotemCreated
final
:
public
ServerPacket
39
{
40
public
:
41
TotemCreated
() :
ServerPacket
(
SMSG_TOTEM_CREATED
, 1 + 8 + 4 + 4) { }
42
43
WorldPacket
const
*
Write
()
override
;
44
45
uint8
Slot
= 0;
46
ObjectGuid
Totem
;
47
uint32
Duration
= 0;
48
uint32
SpellID
= 0;
49
50
};
51
}
52
}
53
54
#endif
// TotemPackets_h__
uint8
uint8_t uint8
Definition
Define.h:135
uint32
uint32_t uint32
Definition
Define.h:133
ObjectGuid.h
Packet.h
ObjectGuid
Definition
ObjectGuid.h:138
Totem
Definition
Totem.h:39
WorldPacket
Definition
WorldPacket.h:27
WorldPackets::Array
Definition
PacketUtilities.h:120
WorldPackets::ClientPacket
Definition
Packet.h:60
WorldPackets::ServerPacket
Definition
Packet.h:46
WorldPackets::Totem::TotemCreated
Definition
TotemPackets.h:39
WorldPackets::Totem::TotemCreated::Slot
uint8 Slot
Definition
TotemPackets.h:45
WorldPackets::Totem::TotemCreated::TotemCreated
TotemCreated()
Definition
TotemPackets.h:41
WorldPackets::Totem::TotemCreated::SpellID
uint32 SpellID
Definition
TotemPackets.h:48
WorldPackets::Totem::TotemCreated::Write
WorldPacket const * Write() override
Definition
TotemPackets.cpp:25
WorldPackets::Totem::TotemCreated::Totem
ObjectGuid Totem
Definition
TotemPackets.h:46
WorldPackets::Totem::TotemCreated::Duration
uint32 Duration
Definition
TotemPackets.h:47
WorldPackets::Totem::TotemDestroyed
Definition
TotemPackets.h:29
WorldPackets::Totem::TotemDestroyed::Read
void Read() override
Definition
TotemPackets.cpp:20
WorldPackets::Totem::TotemDestroyed::TotemDestroyed
TotemDestroyed(WorldPacket &&packet)
Definition
TotemPackets.h:31
WorldPackets::Totem::TotemDestroyed::Slot
uint8 Slot
Definition
TotemPackets.h:35
SMSG_TOTEM_CREATED
@ SMSG_TOTEM_CREATED
Definition
Opcodes.h:1072
CMSG_TOTEM_DESTROYED
@ CMSG_TOTEM_DESTROYED
Definition
Opcodes.h:1073
WorldPackets
Definition
Battlefield.h:61
std
STL namespace.
server
game
Server
Packets
TotemPackets.h
Generated on Sun May 10 2026 02:30:17 for TrinityCore by
1.9.8