TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ScenePackets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
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 ScenePackets_h__
19 #define ScenePackets_h__
20 
21 #include "Packet.h"
22 #include "Object.h"
23 
24 namespace WorldPackets
25 {
26  namespace Scenes
27  {
28  class TC_GAME_API PlayScene final : public ServerPacket
29  {
30  public:
32 
33  WorldPacket const* Write() override;
34 
35  int32 SceneID = 0;
36  int32 PlaybackFlags = 0;
37  int32 SceneInstanceID = 0;
38  int32 SceneScriptPackageID = 0;
41  };
42 
43  class SceneTriggerEvent final : public ClientPacket
44  {
45  public:
47 
48  void Read() override;
49 
51  std::string _Event;
52  };
53 
54  class ScenePlaybackComplete final : public ClientPacket
55  {
56  public:
58 
59  void Read() override;
60 
62  };
63 
64  class ScenePlaybackCanceled final : public ClientPacket
65  {
66  public:
68 
69  void Read() override;
70 
72  };
73  }
74 }
75 
76 #endif // ScenePackets_h__
void Read() override
Definition: ScenePackets.cpp:44
uint32 SceneInstanceID
Definition: ScenePackets.h:50
Definition: ScenePackets.h:54
STL namespace.
SceneTriggerEvent(WorldPacket &&packet)
Definition: ScenePackets.h:46
Definition: ScenePackets.h:43
PlayScene()
Definition: ScenePackets.h:31
void Read() override
Definition: ScenePackets.cpp:39
Definition: Packet.h:59
std::string _Event
Definition: ScenePackets.h:51
uint32 SceneInstanceID
Definition: ScenePackets.h:71
Definition: Packet.h:46
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
Definition: ScenePackets.h:64
ScenePlaybackComplete(WorldPacket &&packet)
Definition: ScenePackets.h:57
uint32 SceneInstanceID
Definition: ScenePackets.h:61
Definition: BattlegroundMgr.h:57
Definition: Opcodes.h:592
void Read() override
Definition: ScenePackets.cpp:32
Position Location
Definition: ScenePackets.h:40
#define TC_GAME_API
Definition: Define.h:134
Definition: ScenePackets.h:28
Definition: Position.h:27
Definition: Opcodes.h:593
Definition: ObjectGuid.h:189
Definition: Opcodes.h:1375
Definition: Opcodes.h:591
Definition: WorldPacket.h:26
ScenePlaybackCanceled(WorldPacket &&packet)
Definition: ScenePackets.h:67
ObjectGuid TransportGUID
Definition: ScenePackets.h:39