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
57 // NOLINTEND
58
59public:
60 // prevent constructor by default
64
65public:
66 // virtual functions
67 // NOLINTBEGIN
68 // vIndex: 0
69 virtual ~BaseGameTestInstance();
70
71 // vIndex: 1
72 virtual void initialize();
73
74 // vIndex: 2
75 virtual bool hasStructureBlock() const = 0;
76
77 // vIndex: 3
78 virtual void clearStructure() = 0;
79
80 // vIndex: 4
81 virtual void spawnStructure();
82
83 // vIndex: 5
84 virtual ::std::optional<::AABB> getStructureBounds() const = 0;
85
86 // vIndex: 6
87 virtual ::std::optional<::Vec3> getStructureBlockPivot() const = 0;
88
89 // vIndex: 7
90 virtual ::std::optional<::Vec3> getStructureBlockPosPivot() const = 0;
91
92 // vIndex: 8
93 virtual ::BoundingBox getStructureBoundingBox() const = 0;
94
95 // vIndex: 9
96 virtual ::DimensionType getStructureDimension() const = 0;
97
98 // vIndex: 10
99 virtual int _getLevelTick() const = 0;
100
101 // vIndex: 11
102 virtual bool _isTestReady() = 0;
103
104 // vIndex: 12
105 virtual void _rerun();
106
107 // vIndex: 13
108 virtual void _removeSimulatedPlayers();
109 // NOLINTEND
110
111public:
112 // member functions
113 // NOLINTBEGIN
115 ::gametest::BaseGameTestFunction const& testFunction,
116 ::std::unique_ptr<::gametest::IGameTestHelperProvider> helper
117 );
118
119 MCNAPI void _cleanup();
120
121 MCNAPI ::gametest::GameTestSequence& createSequence();
122
123 MCNAPI void fail(::gametest::GameTestError error, bool canRetry);
124
125 MCNAPI void finish(bool canRetry);
126
127 MCNAPI void removeListener(::std::shared_ptr<::gametest::IGameTestListener> listener);
128
129 MCNAPI void startExecution();
130
131 MCNAPI void succeed();
132
133 MCNAPI void tick();
134 // NOLINTEND
135
136public:
137 // constructor thunks
138 // NOLINTBEGIN
139 MCNAPI void* $ctor(
140 ::gametest::BaseGameTestFunction const& testFunction,
141 ::std::unique_ptr<::gametest::IGameTestHelperProvider> helper
142 );
143 // NOLINTEND
144
145public:
146 // destructor thunk
147 // NOLINTBEGIN
148 MCNAPI void $dtor();
149 // NOLINTEND
150
151public:
152 // virtual function thunks
153 // NOLINTBEGIN
154 MCNAPI void $initialize();
155
156 MCNAPI void $spawnStructure();
157
158 MCNAPI void $_rerun();
159
161 // NOLINTEND
162
163public:
164 // vftables
165 // NOLINTBEGIN
166 MCNAPI static void** $vftable();
167 // NOLINTEND
168};
169
170} // namespace gametest
Definition AABB.h:18
Definition BoundingBox.h:13
Definition Dimension.h:83
Definition Vec3.h:10
Definition BaseGameTestFunction.h:14
Definition BaseGameTestInstance.h:23
MCAPI void removeListener(::std::shared_ptr<::gametest::IGameTestListener > listener)
MCAPI void finish(bool canRetry)
MCAPI void fail(::gametest::GameTestError error, bool canRetry)
MCAPI::gametest::GameTestSequence & createSequence()
MCAPI void * $ctor(::gametest::BaseGameTestFunction const &testFunction, ::std::unique_ptr<::gametest::IGameTestHelperProvider > helper)
static MCAPI void ** $vftable()
MCAPI BaseGameTestInstance(::gametest::BaseGameTestFunction const &testFunction, ::std::unique_ptr<::gametest::IGameTestHelperProvider > helper)
Definition GameTestError.h:17
Definition Alias.h:14