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 RideRules : uchar {
19 NoVehicleChange = 0,
20 ReassignVehicles = 1,
21 SkipPassengers = 2,
22 };
23
24 enum class TeleportRules : uchar {
25 TeleportPassenger = 0,
26 TeleportVehicle = 1,
27 };
28
29 enum class VehicleAction : uchar {
30 StartRiding = 0,
31 StopRiding = 1,
32 EvictPassengers = 2,
33 SummonPassenger = 3,
34 SummonVehicle = 4,
35 };
36
37 enum class VehicleFillType : uchar {
38 UntilFull = 0,
39 IfGroupFits = 1,
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
55 // NOLINTEND
56
57public:
58 // prevent constructor by default
59 RideCommand& operator=(RideCommand const&);
60 RideCommand(RideCommand const&);
61
62public:
63 // virtual functions
64 // NOLINTBEGIN
65 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
66
67 virtual ~RideCommand() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI RideCommand();
74
75 MCAPI void evictPassengers(::CommandOrigin const& origin, ::CommandOutput& output) const;
76
77 MCAPI void startRiding(::CommandOrigin const& origin, ::CommandOutput& output) const;
78
79 MCAPI void stopRiding(::CommandOrigin const& origin, ::CommandOutput& output) const;
80
81 MCAPI void summonPassenger(::CommandOrigin const& origin, ::CommandOutput& output) const;
82
83 MCAPI void summonVehicle(::CommandOrigin const& origin, ::CommandOutput& output) const;
84 // NOLINTEND
85
86public:
87 // static functions
88 // NOLINTBEGIN
89 MCAPI static void setup(::CommandRegistry& registry);
90 // NOLINTEND
91
92public:
93 // constructor thunks
94 // NOLINTBEGIN
95 MCAPI void* $ctor();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
102
103
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCNAPI static void** $vftable();
110 // NOLINTEND
111};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition Command.h:17
static MCAPI void ** $vftable()
Definition Alias.h:14