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
8// auto generated forward declare list
9// clang-format off
10class BlockSource;
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
15// clang-format on
16
18public:
19 // GameTestCommand inner types define
20 enum class Mode : int {
21 Unknown = 0,
22 ClearAll = 1,
23 Create = 2,
24 Run = 3,
25 RunThis = 4,
26 RunSet = 5,
27 RunSetUntilFail = 6,
28 RunNearbyTests = 7,
29 ShowPosition = 8,
30 Stop = 9,
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<8, 32, ::std::string> mTestName;
37 ::ll::TypedStorage<8, 32, ::std::string> mTestTag;
38 ::ll::TypedStorage<4, 4, int> mTestRotationSteps;
39 ::ll::TypedStorage<4, 4, int> mRepeatCount;
40 ::ll::TypedStorage<1, 1, bool> mStopOnFailure;
41 ::ll::TypedStorage<4, 4, ::GameTestCommand::Mode> mMode;
42 ::ll::TypedStorage<4, 4, int> mTestCreationWidth;
43 ::ll::TypedStorage<4, 4, int> mTestCreationHeight;
44 ::ll::TypedStorage<4, 4, int> mTestCreationDepth;
45 // NOLINTEND
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI void _handleRunSet(
57 ::MinecraftGameTest& gameTest,
58 ::BlockSource& region,
59 ::CommandOrigin const& origin,
60 ::CommandOutput& output,
61 bool stopOtherTestsOnFailure
62 ) const;
63 // NOLINTEND
64
65public:
66 // static functions
67 // NOLINTBEGIN
68 MCAPI static void addGameTestNameEnums(::MinecraftGameTest& gameTest, ::CommandRegistry& commandRegistry);
69
70 MCAPI static void setup(::CommandRegistry& registry);
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
77
78
79 // NOLINTEND
80};
Definition BlockSource.h:71
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition GameTestCommand.h:17
Definition MinecraftGameTest.h:20
Definition ServerCommand.h:22