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