LeviLamina
Loading...
Searching...
No Matches
MinecraftGameTest.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/Rotation.h"
7#include "mc/world/level/LevelListener.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BlockSource;
13class Dimension;
14class Level;
15namespace gametest { class BaseGameTestInstance; }
16namespace gametest { class GameTestRegistry; }
17namespace gametest { class GameTestTicker; }
18namespace gametest { class IGameTestListener; }
19namespace gametest { struct TestParameters; }
20// clang-format on
21
22class MinecraftGameTest : public ::LevelListener {
23public:
24 // member variables
25 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 MinecraftGameTest& operator=(MinecraftGameTest const&);
35 MinecraftGameTest(MinecraftGameTest const&);
36 MinecraftGameTest();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~MinecraftGameTest() /*override*/;
42
43 virtual void onLevelDestruction(::std::string const&) /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCNAPI explicit MinecraftGameTest(::Level& level);
50
51 MCNAPI void clearAllTests(::BlockSource& region);
52
53 MCNAPI ::gametest::GameTestRegistry& getRegistry();
54
55 MCNAPI ::gametest::GameTestTicker& getTicker();
56
57 MCNAPI void loadExistingTests(::Level& level);
58
60
62
63 MCNAPI ::std::string
64 runTest(::std::string const& testName, ::Dimension& dimension, ::gametest::TestParameters const& params);
65
66 MCNAPI ::std::string runTest(
67 ::std::string const& testName,
68 ::Dimension& dimension,
69 ::gametest::TestParameters const& params,
70 ::std::vector<::std::shared_ptr<::gametest::IGameTestListener>> listeners
71 );
72
73 MCNAPI ::std::string
74 runTestAt(::BlockSource& region, ::BlockPos const& structureBlockPos, ::std::optional<::Rotation> rotation);
75
76 MCNAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestInstance>> const&
78
79 MCNAPI void stopAllTests();
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85 MCNAPI void* $ctor(::Level& level);
86 // NOLINTEND
87
88public:
89 // destructor thunk
90 // NOLINTBEGIN
91 MCNAPI void $dtor();
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCNAPI void $onLevelDestruction(::std::string const&);
98
99
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Dimension.h:89
Definition LevelListener.h:28
Definition Level.h:255
MCAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestInstance > > const & runTests(::Dimension &dimension, ::gametest::TestParameters &&params)
MCAPI::std::string runTestAt(::BlockSource &region, ::BlockPos const &structureBlockPos, ::std::optional<::Rotation > rotation)
MCAPI MinecraftGameTest(::Level &level)
MCAPI void registerNativeGameTests()
MCAPI void $onLevelDestruction(::std::string const &)
MCAPI::gametest::GameTestTicker & getTicker()
MCAPI void loadExistingTests(::Level &level)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::Level &level)
MCAPI::std::string runTest(::std::string const &testName, ::Dimension &dimension, ::gametest::TestParameters const &params, ::std::vector<::std::shared_ptr<::gametest::IGameTestListener > > listeners)
MCAPI void clearAllTests(::BlockSource &region)
MCAPI void $dtor()
MCAPI void registerDefaultGameBatches(::Level &level)
MCAPI::std::string runTest(::std::string const &testName, ::Dimension &dimension, ::gametest::TestParameters const &params)
MCAPI::gametest::GameTestRegistry & getRegistry()
MCAPI void stopAllTests()
Definition BaseGameTestInstance.h:25
Definition GameTestRegistry.h:12
Definition GameTestTicker.h:15
Definition IGameTestListener.h:12
Definition TestParameters.h:16
Definition Alias.h:14