LeviLamina
Loading...
Searching...
No Matches
BaseGameTestFunction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class BlockPos;
8namespace gametest { class BaseGameTestHelper; }
9namespace gametest { class IGameTestFunctionContext; }
10namespace gametest { class IGameTestFunctionRunResult; }
11// clang-format on
12
13namespace gametest {
14
15class BaseGameTestFunction {
16public:
17 // member variables
18 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 BaseGameTestFunction& operator=(BaseGameTestFunction const&);
37 BaseGameTestFunction(BaseGameTestFunction const&);
38 BaseGameTestFunction();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~BaseGameTestFunction();
44
45 virtual ::std::unique_ptr<::gametest::IGameTestFunctionContext>
46 createContext(::gametest::BaseGameTestHelper& helper) const = 0;
47
48 virtual ::std::unique_ptr<::gametest::IGameTestFunctionRunResult>
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
56 ::std::string batchName,
57 ::std::string testName,
58 ::std::string structureName,
59 int maxTicks,
60 int setupTicks,
61 int padding,
62 bool rotate,
63 bool required,
64 int requiredSuccesses,
65 int attempts,
66 ::std::vector<::std::string> tags
67 );
68
69 MCNAPI void _addTag(::std::string tag);
70
71 MCNAPI ::std::string const& getBatchName() const;
72
73 MCNAPI bool getRotate() const;
74
75 MCNAPI ::std::optional<::DimensionType> getStructureDimension() const;
76
77 MCNAPI ::std::optional<::BlockPos> getStructureLocation() const;
78
79 MCNAPI ::std::string const& getStructureName() const;
80
81 MCNAPI ::std::string const& getTestName() const;
82
83 MCNAPI bool hasTag(::std::string const& tag) const;
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCNAPI void* $ctor(
90 ::std::string batchName,
91 ::std::string testName,
92 ::std::string structureName,
93 int maxTicks,
94 int setupTicks,
95 int padding,
96 bool rotate,
97 bool required,
98 int requiredSuccesses,
99 int attempts,
100 ::std::vector<::std::string> tags
101 );
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107 MCNAPI void $dtor();
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCNAPI static void** $vftable();
120 // NOLINTEND
121};
122
123} // namespace gametest
Definition BlockPos.h:21
MCAPI::std::string const & getStructureName() const
MCAPI bool hasTag(::std::string const &tag) const
MCAPI::std::string const & getBatchName() const
static MCAPI void ** $vftable()
MCAPI::std::string const & getTestName() const
MCAPI ::std::optional<::BlockPos > getStructureLocation() const
MCAPI void * $ctor(::std::string batchName, ::std::string testName, ::std::string structureName, int maxTicks, int setupTicks, int padding, bool rotate, bool required, int requiredSuccesses, int attempts, ::std::vector<::std::string > tags)
MCAPI bool getRotate() const
MCAPI ::std::optional<::DimensionType > getStructureDimension() const
MCAPI void _addTag(::std::string tag)
MCAPI BaseGameTestFunction(::std::string batchName, ::std::string testName, ::std::string structureName, int maxTicks, int setupTicks, int padding, bool rotate, bool required, int requiredSuccesses, int attempts, ::std::vector<::std::string > tags)
Definition BaseGameTestHelper.h:34
Definition IGameTestFunctionContext.h:7
Definition IGameTestFunctionRunResult.h:12
Definition Alias.h:14