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
12class GameTestSequence {
13public:
14 // member variables
15 // NOLINTBEGIN
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 GameTestSequence& operator=(GameTestSequence const&);
24 GameTestSequence(GameTestSequence const&);
25 GameTestSequence();
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCNAPI ::std::optional<::gametest::GameTestError>
31 _executeWithoutFail(::std::optional<::gametest::GameTestError> const& error);
32
33 MCNAPI ::std::optional<::gametest::GameTestError> _tick(int currentTick);
34
35 MCNAPI ::gametest::GameTestSequence& thenExecute(::std::function<::std::optional<::gametest::GameTestError>()> fn);
36
37 MCNAPI ::gametest::GameTestSequence&
38 thenExecuteAfter(int tickDelay, ::std::function<::std::optional<::gametest::GameTestError>()> fn);
39
40 MCNAPI ::gametest::GameTestSequence&
41 thenExecuteFor(int tickCount, ::std::function<::std::optional<::gametest::GameTestError>()> fn);
42
44
45 MCNAPI ::gametest::GameTestSequence& thenIdle(int tickDelay);
46
47 MCNAPI void thenSucceed();
48
49 MCNAPI ::gametest::GameTestSequence& thenWait(::std::function<::std::optional<::gametest::GameTestError>()> fn);
50
51 MCNAPI ::gametest::GameTestSequence&
52 thenWaitAfter(int tickDelay, ::std::function<::std::optional<::gametest::GameTestError>()> fn);
53
54 MCNAPI bool tickAndFailIfNotComplete(int currentTick);
55 // NOLINTEND
56};
57
58} // namespace gametest
MCAPI::gametest::GameTestSequence & thenExecuteAfter(int tickDelay, ::std::function<::std::optional<::gametest::GameTestError >()> fn)
MCAPI::gametest::GameTestSequence & thenExecute(::std::function<::std::optional<::gametest::GameTestError >()> fn)
MCAPI bool tickAndFailIfNotComplete(int currentTick)
MCAPI::gametest::GameTestSequence & thenIdle(int tickDelay)
MCAPI ::std::optional<::gametest::GameTestError > _executeWithoutFail(::std::optional<::gametest::GameTestError > const &error)
MCAPI::gametest::GameTestSequence & thenWait(::std::function<::std::optional<::gametest::GameTestError >()> fn)
MCAPI ::std::optional<::gametest::GameTestError > _tick(int currentTick)
MCAPI::gametest::GameTestSequence & thenWaitAfter(int tickDelay, ::std::function<::std::optional<::gametest::GameTestError >()> fn)
MCAPI::gametest::GameTestSequence & thenExecuteFor(int tickCount, ::std::function<::std::optional<::gametest::GameTestError >()> fn)
MCAPI void thenFail(::gametest::GameTestError error)
Definition GameTestError.h:17
Definition Alias.h:14