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 BaseGameTestFunction; }
16namespace gametest { class BaseGameTestInstance; }
17namespace gametest { class IGameTestListener; }
18namespace gametest { struct TestParameters; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 MinecraftGameTest& operator=(MinecraftGameTest const&);
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 0
41 virtual ~MinecraftGameTest() /*override*/;
42
43 // vIndex: 23
44 virtual void onLevelDestruction(::std::string const&) /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI explicit MinecraftGameTest(::Level& level);
51
52 MCAPI void _runTestPreparation(::gametest::BaseGameTestFunction const& testFunction);
53
54 MCAPI void clearAllTests(::BlockSource& region);
55
56 MCAPI void registerDefaultGameBatches(::Level& level);
57
58 MCAPI ::std::string
59 runTest(::std::string const& testName, ::Dimension& dimension, ::gametest::TestParameters const& params);
60
61 MCAPI ::std::string runTest(
62 ::std::string const& testName,
63 ::Dimension& dimension,
64 ::gametest::TestParameters const& params,
65 ::std::vector<::std::shared_ptr<::gametest::IGameTestListener>> listeners
66 );
67
68 MCAPI ::std::string
69 runTestAt(::BlockSource& region, ::BlockPos const& structureBlockPos, ::std::optional<::Rotation> rotation);
70
71 MCAPI ::std::vector<::std::shared_ptr<::gametest::BaseGameTestInstance>> const&
72 runTests(::Dimension& dimension, ::gametest::TestParameters&& params);
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor(::Level& level);
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCAPI void $dtor();
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI void $onLevelDestruction(::std::string const&);
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCAPI static void** $vftable();
97 // NOLINTEND
98};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Dimension.h:83
Definition LevelListener.h:27
Definition Level.h:234
Definition MinecraftGameTest.h:21
Definition BaseGameTestFunction.h:14
Definition TestParameters.h:16
Definition Alias.h:14