LeviLamina
Loading...
Searching...
No Matches
RideCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7
8// auto generated forward declare list
9// clang-format off
10class CommandOrigin;
11class CommandOutput;
12class CommandRegistry;
13// clang-format on
14
15class RideCommand : public ::Command {
16public:
17 // RideCommand inner types define
18 enum class VehicleAction : uchar {
19 StartRiding = 0,
20 StopRiding = 1,
21 EvictPassengers = 2,
22 SummonPassenger = 3,
23 SummonVehicle = 4,
24 };
25
26 enum class TeleportRules : uchar {
27 TeleportPassenger = 0,
28 TeleportVehicle = 1,
29 };
30
31 enum class VehicleFillType : uchar {
32 UntilFull = 0,
33 IfGroupFits = 1,
34 };
35
36 enum class RideRules : uchar {
37 NoVehicleChange = 0,
38 ReassignVehicles = 1,
39 SkipPassengers = 2,
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
55 // NOLINTEND
56
57public:
58 // prevent constructor by default
59 RideCommand& operator=(RideCommand const&);
61
62public:
63 // virtual functions
64 // NOLINTBEGIN
65 // vIndex: 2
66 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
67
68 // vIndex: 0
69 virtual ~RideCommand() /*override*/ = default;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI RideCommand();
76
77 MCAPI void evictPassengers(::CommandOrigin const& origin, ::CommandOutput& output) const;
78
79 MCAPI void startRiding(::CommandOrigin const& origin, ::CommandOutput& output) const;
80
81 MCAPI void stopRiding(::CommandOrigin const& origin, ::CommandOutput& output) const;
82
83 MCAPI void summonPassenger(::CommandOrigin const& origin, ::CommandOutput& output) const;
84
85 MCAPI void summonVehicle(::CommandOrigin const& origin, ::CommandOutput& output) const;
86 // NOLINTEND
87
88public:
89 // static functions
90 // NOLINTBEGIN
91 MCAPI static void setup(::CommandRegistry& registry);
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCAPI void* $ctor();
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103
104 // NOLINTEND
105
106public:
107 // virtual function thunks
108 // NOLINTBEGIN
109 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCAPI static void** $vftable();
116 // NOLINTEND
117};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition Command.h:17
Definition RideCommand.h:15
Definition Alias.h:14