LeviLamina
Loading...
Searching...
No Matches
GameTestCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/ServerCommand.h"
7#include "mc/util/Rotation.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BlockSource;
13class CommandOrigin;
14class CommandOutput;
15class CommandRegistry;
17// clang-format on
18
20public:
21 // GameTestCommand inner types define
22 enum class Mode : int {
23 Unknown = 0,
24 ClearAll = 1,
25 Create = 2,
26 Run = 3,
27 RunThis = 4,
28 RunSet = 5,
29 RunSetUntilFail = 6,
30 RunNearbyTests = 7,
31 ShowPosition = 8,
32 Stop = 9,
33 };
34
35public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<8, 32, ::std::string> mTestName;
39 ::ll::TypedStorage<8, 32, ::std::string> mTestTag;
40 ::ll::TypedStorage<4, 4, int> mTestRotationSteps;
41 ::ll::TypedStorage<4, 4, int> mRepeatCount;
42 ::ll::TypedStorage<1, 1, bool> mStopOnFailure;
43 ::ll::TypedStorage<4, 4, ::GameTestCommand::Mode> mMode;
44 ::ll::TypedStorage<4, 4, int> mTestCreationWidth;
45 ::ll::TypedStorage<4, 4, int> mTestCreationHeight;
46 ::ll::TypedStorage<4, 4, int> mTestCreationDepth;
47 // NOLINTEND
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI void _handleCreateTest(::BlockSource& region, ::CommandOrigin const& origin, ::CommandOutput& output) const;
59
60 MCAPI void _handleRun(
61 ::MinecraftGameTest& gameTest,
62 ::BlockSource& region,
63 ::CommandOrigin const& origin,
64 ::CommandOutput& output
65 ) const;
66
67 MCAPI void _handleRunNearbyTests(
68 ::MinecraftGameTest& gameTest,
69 ::BlockSource& region,
70 ::CommandOrigin const& origin,
71 ::CommandOutput& output
72 ) const;
73
74 MCAPI void _handleRunSet(
75 ::MinecraftGameTest& gameTest,
76 ::BlockSource& region,
77 ::CommandOrigin const& origin,
78 ::CommandOutput& output,
79 bool stopOtherTestsOnFailure
80 ) const;
81
82 MCAPI void _handleRunThis(
83 ::MinecraftGameTest& gameTest,
84 ::BlockSource& region,
85 ::CommandOrigin const& origin,
86 ::CommandOutput& output
87 ) const;
88
89 MCAPI void _handleShowPosition(::BlockSource& region, ::CommandOrigin const& origin, ::CommandOutput& output) const;
90
91 MCAPI void _runTestAt(
92 ::MinecraftGameTest& gameTest,
93 ::BlockSource& region,
94 ::CommandOutput* output,
95 ::BlockPos const& structureBlockPos,
96 ::std::optional<::Rotation> rotation
97 ) const;
98 // NOLINTEND
99
100public:
101 // static functions
102 // NOLINTBEGIN
103 MCAPI static void addGameTestNameEnums(::MinecraftGameTest& gameTest, ::CommandRegistry& commandRegistry);
104
105 MCAPI static void setup(::CommandRegistry& registry);
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
112
113
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCNAPI static void** $vftable();
120 // NOLINTEND
121};
122
123// clang-format off
124template <>
125MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::GameTestCommand::Mode>();
126// clang-format on
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition GameTestCommand.h:19
static MCAPI void ** $vftable()
Definition MinecraftGameTest.h:22
Definition ServerCommand.h:22