TrinityCore
Loading...
Searching...
No Matches
AreaTriggerPackets.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_AREA_TRIGGER_PACKETS_H
19#define TRINITYCORE_AREA_TRIGGER_PACKETS_H
20
21#include "Packet.h"
23#include "ObjectGuid.h"
24
25namespace WorldPackets
26{
27 namespace AreaTrigger
28 {
29 class AreaTrigger final : public ClientPacket
30 {
31 public:
32 explicit AreaTrigger(WorldPacket&& packet) : ClientPacket(CMSG_AREA_TRIGGER, std::move(packet)) { }
33
34 void Read() override;
35
37 bool Entered = false;
38 bool FromClient = false;
39 };
40
41 class AreaTriggerDenied final : public ServerPacket
42 {
43 public:
45
47 bool Entered = false;
48
49 WorldPacket const* Write() override;
50 };
51
52 class AreaTriggerNoCorpse final : public ServerPacket
53 {
54 public:
56
57 WorldPacket const* Write() override { return &_worldPacket; }
58 };
59
70
72 {
73 public:
75
76 void Read() override;
77
81 };
82 }
83}
84
85#endif // TRINITYCORE_AREA_TRIGGER_PACKETS_H
int32_t int32
Definition Define.h:150
uint32_t uint32
Definition Define.h:154
@ SMSG_AREA_TRIGGER_NO_CORPSE
Definition Opcodes.h:1138
@ SMSG_AREA_TRIGGER_DENIED
Definition Opcodes.h:1137
@ SMSG_AREA_TRIGGER_PLAY_SPELL_VISUAL
Definition Opcodes.h:1139
@ CMSG_AREA_TRIGGER
Definition Opcodes.h:62
@ CMSG_UPDATE_AREA_TRIGGER_VISUAL
Definition Opcodes.h:1017
WorldPacket _worldPacket
Definition Packet.h:43
STL namespace.