TrinityCore
VehiclePackets.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 VehiclePackets_h__
19#define VehiclePackets_h__
20
21#include "Packet.h"
22#include "MovementPackets.h"
23
24namespace WorldPackets
25{
26 namespace Vehicle
27 {
28 class MoveSetVehicleRecID final : public ServerPacket
29 {
30 public:
32
33 WorldPacket const* Write() override;
34
38 };
39
41 {
42 public:
44
45 void Read() override;
46
49 };
50
51 class SetVehicleRecID final : public ServerPacket
52 {
53 public:
55
56 WorldPacket const* Write() override;
57
60 };
61
63 {
64 public:
66
67 WorldPacket const* Write() override { return &_worldPacket; }
68 };
69
70 class MoveDismissVehicle final : public ClientPacket
71 {
72 public:
74
75 void Read() override;
76
78 };
79
81 {
82 public:
84
85 void Read() override { }
86 };
87
89 {
90 public:
92
93 void Read() override { }
94 };
95
97 {
98 public:
100
101 void Read() override;
102
106 };
107
109 {
110 public:
112
113 void Read() override;
114
117 };
118
120 {
121 public:
123
124 void Read() override;
125
127 };
128
129 class EjectPassenger final : public ClientPacket
130 {
131 public:
133
134 void Read() override;
135
137 };
138
139 class RequestVehicleExit final : public ClientPacket
140 {
141 public:
143
144 void Read() override { }
145 };
146 }
147}
148
149#endif // VehiclePackets_h__
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
uint32_t uint32
Definition: Define.h:142
WorldPacket _worldPacket
Definition: Packet.h:43
WorldPacket const * Write() override
WorldPackets::Movement::MovementAck Data
WorldPacket const * Write() override
@ CMSG_EJECT_PASSENGER
Definition: Opcodes.h:332
@ CMSG_REQUEST_VEHICLE_SWITCH_SEAT
Definition: Opcodes.h:735
@ CMSG_MOVE_DISMISS_VEHICLE
Definition: Opcodes.h:507
@ CMSG_REQUEST_VEHICLE_NEXT_SEAT
Definition: Opcodes.h:733
@ CMSG_REQUEST_VEHICLE_PREV_SEAT
Definition: Opcodes.h:734
@ CMSG_REQUEST_VEHICLE_EXIT
Definition: Opcodes.h:732
@ CMSG_RIDE_VEHICLE_INTERACT
Definition: Opcodes.h:743
@ CMSG_MOVE_CHANGE_VEHICLE_SEATS
Definition: Opcodes.h:504
@ CMSG_MOVE_SET_VEHICLE_REC_ID_ACK
Definition: Opcodes.h:565
@ SMSG_SET_VEHICLE_REC_ID
Definition: Opcodes.h:1929
@ SMSG_MOVE_SET_VEHICLE_REC_ID
Definition: Opcodes.h:1593
@ SMSG_ON_CANCEL_EXPECTED_RIDE_VEHICLE_AURA
Definition: Opcodes.h:1666
STL namespace.