LeviLamina
Loading...
Searching...
No Matches
GameTestSequence.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace gametest { struct GameTestError; }
8// clang-format on
9
10namespace gametest {
11
13public:
14 // member variables
15 // NOLINTBEGIN
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 GameTestSequence& operator=(GameTestSequence const&);
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI ::std::optional<::gametest::GameTestError>
31 _executeWithoutFail(::std::optional<::gametest::GameTestError> const& error);
32
33 MCAPI ::std::optional<::gametest::GameTestError> _tick(int currentTick);
34
35 MCAPI ::gametest::GameTestSequence& thenExecute(::std::function<::std::optional<::gametest::GameTestError>()> fn);
36
37 MCAPI ::gametest::GameTestSequence&
38 thenExecuteAfter(int tickDelay, ::std::function<::std::optional<::gametest::GameTestError>()> fn);
39
40 MCAPI ::gametest::GameTestSequence&
41 thenExecuteFor(int tickCount, ::std::function<::std::optional<::gametest::GameTestError>()> fn);
42
43 MCAPI void thenFail(::gametest::GameTestError error);
44
45 MCAPI void thenSucceed();
46
47 MCAPI ::gametest::GameTestSequence&
48 thenWaitAfter(int tickDelay, ::std::function<::std::optional<::gametest::GameTestError>()> fn);
49 // NOLINTEND
50};
51
52} // namespace gametest
Definition GameTestSequence.h:12
Definition GameTestError.h:12
Definition Alias.h:14