LeviLamina
Loading...
Searching...
No Matches
BaseGameTestInstance.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/AutomaticID.h"
7
8// auto generated forward declare list
9// clang-format off
10class AABB;
11class BoundingBox;
12class Dimension;
13class Vec3;
14namespace gametest { class BaseGameTestFunction; }
15namespace gametest { class GameTestSequence; }
16namespace gametest { class IGameTestHelperProvider; }
17namespace gametest { class IGameTestListener; }
18namespace gametest { struct GameTestError; }
19// clang-format on
20
21namespace gametest {
22
24public:
25 // member variables
26 // NOLINTBEGIN
55 // NOLINTEND
56
57public:
58 // prevent constructor by default
62
63public:
64 // virtual functions
65 // NOLINTBEGIN
66 // vIndex: 0
67 virtual ~BaseGameTestInstance();
68
69 // vIndex: 1
70 virtual void initialize();
71
72 // vIndex: 2
73 virtual bool hasStructureBlock() const = 0;
74
75 // vIndex: 3
76 virtual void clearStructure() = 0;
77
78 // vIndex: 4
79 virtual void spawnStructure();
80
81 // vIndex: 5
82 virtual ::std::optional<::AABB> getStructureBounds() const = 0;
83
84 // vIndex: 6
85 virtual ::std::optional<::Vec3> getStructureBlockPivot() const = 0;
86
87 // vIndex: 7
88 virtual ::std::optional<::Vec3> getStructureBlockPosPivot() const = 0;
89
90 // vIndex: 8
91 virtual ::BoundingBox getStructureBoundingBox() const = 0;
92
93 // vIndex: 9
94 virtual ::DimensionType getStructureDimension() const = 0;
95
96 // vIndex: 10
97 virtual int _getLevelTick() const = 0;
98
99 // vIndex: 11
100 virtual bool _isTestReady() = 0;
101
102 // vIndex: 12
103 virtual void _rerun();
104
105 // vIndex: 13
106 virtual void _removeSimulatedPlayers();
107 // NOLINTEND
108
109public:
110 // member functions
111 // NOLINTBEGIN
113 ::gametest::BaseGameTestFunction const& testFunction,
114 ::std::unique_ptr<::gametest::IGameTestHelperProvider> helper
115 );
116
117 MCAPI ::gametest::GameTestSequence& createSequence();
118
119 MCAPI void fail(::gametest::GameTestError error, bool canRetry);
120
121 MCAPI void finish(bool canRetry);
122
123 MCAPI void removeListener(::std::shared_ptr<::gametest::IGameTestListener> listener);
124
125 MCAPI void startExecution();
126
127 MCAPI void succeed();
128
129 MCAPI void tick();
130 // NOLINTEND
131
132public:
133 // constructor thunks
134 // NOLINTBEGIN
135 MCAPI void* $ctor(
136 ::gametest::BaseGameTestFunction const& testFunction,
137 ::std::unique_ptr<::gametest::IGameTestHelperProvider> helper
138 );
139 // NOLINTEND
140
141public:
142 // destructor thunk
143 // NOLINTBEGIN
144 MCAPI void $dtor();
145 // NOLINTEND
146
147public:
148 // virtual function thunks
149 // NOLINTBEGIN
150 MCFOLD void $initialize();
151
152 MCAPI void $spawnStructure();
153
154 MCAPI void $_rerun();
155
156 MCAPI void $_removeSimulatedPlayers();
157 // NOLINTEND
158
159public:
160 // vftables
161 // NOLINTBEGIN
162 MCAPI static void** $vftable();
163 // NOLINTEND
164};
165
166} // namespace gametest
Definition AABB.h:16
Definition BoundingBox.h:18
Definition Dimension.h:83
Definition Vec3.h:10
Definition BaseGameTestFunction.h:14
Definition BaseGameTestInstance.h:23
Definition GameTestError.h:12
Definition Alias.h:14