TrinityCore
Loading...
Searching...
No Matches
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 TRINITYCORE_VEHICLE_PACKETS_H
19#define TRINITYCORE_VEHICLE_PACKETS_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
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:
132 explicit EjectPassenger(WorldPacket&& packet) : ClientPacket(CMSG_EJECT_PASSENGER, std::move(packet)) { }
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 // TRINITYCORE_VEHICLE_PACKETS_H
uint8_t uint8
Definition Define.h:156
int32_t int32
Definition Define.h:150
uint32_t uint32
Definition Define.h:154
@ SMSG_SET_VEHICLE_REC_ID
Definition Opcodes.h:2301
@ SMSG_MOVE_SET_VEHICLE_REC_ID
Definition Opcodes.h:1919
@ SMSG_ON_CANCEL_EXPECTED_RIDE_VEHICLE_AURA
Definition Opcodes.h:2022
@ CMSG_EJECT_PASSENGER
Definition Opcodes.h:338
@ CMSG_REQUEST_VEHICLE_SWITCH_SEAT
Definition Opcodes.h:865
@ CMSG_MOVE_DISMISS_VEHICLE
Definition Opcodes.h:595
@ CMSG_REQUEST_VEHICLE_NEXT_SEAT
Definition Opcodes.h:863
@ CMSG_REQUEST_VEHICLE_PREV_SEAT
Definition Opcodes.h:864
@ CMSG_REQUEST_VEHICLE_EXIT
Definition Opcodes.h:862
@ CMSG_RIDE_VEHICLE_INTERACT
Definition Opcodes.h:873
@ CMSG_MOVE_CHANGE_VEHICLE_SEATS
Definition Opcodes.h:590
@ CMSG_MOVE_SET_VEHICLE_REC_ID_ACK
Definition Opcodes.h:659
WorldPacket _worldPacket
Definition Packet.h:43
WorldPacket const * Write() override
WorldPackets::Movement::MovementAck Data
WorldPacket const * Write() override
STL namespace.