TrinityCore
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 AreaTriggerPackets_h__
19#define AreaTriggerPackets_h__
20
21#include "Packet.h"
22#include "AreaTriggerTemplate.h"
23#include "ObjectGuid.h"
24#include "Optional.h"
25
26namespace WorldPackets
27{
28 namespace AreaTrigger
29 {
31 {
34 std::vector<TaggedPosition<Position::XYZ>> Points;
35 };
36
38 {
41 };
42
43 class AreaTrigger final : public ClientPacket
44 {
45 public:
47
48 void Read() override;
49
51 bool Entered = false;
52 bool FromClient = false;
53 };
54
55 class AreaTriggerDenied final : public ServerPacket
56 {
57 public:
59
61 bool Entered = false;
62
63 WorldPacket const* Write() override;
64 };
65
66 class AreaTriggerNoCorpse final : public ServerPacket
67 {
68 public:
70
71 WorldPacket const* Write() override { return &_worldPacket; }
72 };
73
74 class AreaTriggerRePath final : public ServerPacket
75 {
76 public:
78
79 WorldPacket const* Write() override;
80
85 };
86 }
87}
88
89ByteBuffer& operator<<(ByteBuffer& data, AreaTriggerOrbitInfo const& areaTriggerCircularMovement);
90
91#endif // AreaTriggerPackets_h__
ByteBuffer & operator<<(ByteBuffer &data, AreaTriggerOrbitInfo const &areaTriggerCircularMovement)
int32_t int32
Definition: Define.h:138
uint32_t uint32
Definition: Define.h:142
std::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Optional.h:25
Optional< AreaTriggerMovementScriptInfo > AreaTriggerMovementScript
Optional< AreaTriggerSplineInfo > AreaTriggerSpline
Optional< AreaTriggerOrbitInfo > AreaTriggerOrbit
WorldPacket _worldPacket
Definition: Packet.h:43
@ CMSG_AREA_TRIGGER
Definition: Opcodes.h:68
@ SMSG_AREA_TRIGGER_RE_PATH
Definition: Opcodes.h:943
@ SMSG_AREA_TRIGGER_NO_CORPSE
Definition: Opcodes.h:941
@ SMSG_AREA_TRIGGER_DENIED
Definition: Opcodes.h:939
STL namespace.
std::vector< TaggedPosition< Position::XYZ > > Points