LeviLamina
Loading...
Searching...
No Matches
MinecraftReportGameListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/gametest/framework/IGameTestListener.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockSource;
12namespace gametest { class BaseGameTestInstance; }
13namespace gametest { struct GameTestError; }
14// clang-format on
15
16class MinecraftReportGameListener : public ::gametest::IGameTestListener,
17 public ::std::enable_shared_from_this<::MinecraftReportGameListener> {
18public:
19 // member variables
20 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 MinecraftReportGameListener& operator=(MinecraftReportGameListener const&);
28 MinecraftReportGameListener(MinecraftReportGameListener const&);
29 MinecraftReportGameListener();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ~MinecraftReportGameListener() /*override*/ = default;
35
36 virtual void onTestStructureLoaded(::gametest::BaseGameTestInstance& testInstance) /*override*/;
37
38 virtual void onTestPassed(::gametest::BaseGameTestInstance& testInstance) /*override*/;
39
40 virtual void onTestFailed(::gametest::BaseGameTestInstance& testInstance) /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCNAPI ::std::string _generateErrorDescription(::gametest::GameTestError const& error) const;
47
48 MCNAPI void _reportFailure(::gametest::GameTestError const& error, ::BlockSource& region);
49
50 MCNAPI void _say(::std::string const& chatColor, ::std::string const& text);
51
52 MCNAPI void _spawnBeacon(::Block const& glassType);
53
54 MCNAPI void _spawnLectern(::std::string const& text);
55
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
63
65
67
68
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCNAPI static void** $vftable();
75 // NOLINTEND
76};
Definition BlockSource.h:68
Definition Block.h:43
MCAPI void $onTestPassed(::gametest::BaseGameTestInstance &testInstance)
MCAPI void _reportFailure(::gametest::GameTestError const &error, ::BlockSource &region)
MCAPI void _spawnLectern(::std::string const &text)
static MCAPI void ** $vftable()
MCAPI void $onTestStructureLoaded(::gametest::BaseGameTestInstance &testInstance)
MCAPI void $onTestFailed(::gametest::BaseGameTestInstance &testInstance)
MCAPI void _spawnBeacon(::Block const &glassType)
MCAPI void _visualizeFailedTest(::gametest::GameTestError const &error, ::BlockSource &)
MCAPI::std::string _generateErrorDescription(::gametest::GameTestError const &error) const
MCAPI void _say(::std::string const &chatColor, ::std::string const &text)
Definition BaseGameTestInstance.h:23
Definition IGameTestListener.h:12
Definition GameTestError.h:17
Definition Alias.h:14