LeviLamina
Loading...
Searching...
No Matches
AutomationClient.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/codebuilder/IClient.h"
7#include "mc/deps/application/UriListener.h"
8#include "mc/world/level/LevelListener.h"
9
10// auto generated forward declare list
11// clang-format off
12class ActivationUri;
13class IMinecraftApp;
14namespace Automation { class AutomationSession; }
15namespace CodeBuilder { class GameContext; }
16namespace CodeBuilder { struct AgentMessage; }
17namespace CodeBuilder { struct ChatMessage; }
18namespace CodeBuilder { struct CommandMessage; }
19namespace CodeBuilder { struct CommandRequest; }
20namespace CodeBuilder { struct ErrorMessage; }
21namespace CodeBuilder { struct EventMessage; }
22// clang-format on
23
24namespace Automation {
25
26class AutomationClient : public ::CodeBuilder::IClient, public ::UriListener, public ::LevelListener {
27public:
28 // member variables
29 // NOLINTBEGIN
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 AutomationClient& operator=(AutomationClient const&);
48 AutomationClient(AutomationClient const&);
49 AutomationClient();
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual ~AutomationClient() /*override*/;
55
56 virtual void onUri(::ActivationUri const& uri) /*override*/;
57
58 virtual void send(::CodeBuilder::AgentMessage const& message) /*override*/;
59
60 virtual void send(::CodeBuilder::CommandMessage const& message) /*override*/;
61
62 virtual void send(::CodeBuilder::ErrorMessage const& message) /*override*/;
63
64 virtual void send(::CodeBuilder::EventMessage const& message) /*override*/;
65
66 virtual void send(::CodeBuilder::ChatMessage const& message) /*override*/;
67
68 virtual void tick() /*override*/;
69
70 virtual void executeStartupUris() /*override*/;
71
72 virtual void onLevelDestruction(::std::string const&) /*override*/;
73
74 virtual void playerListChanged() /*override*/;
75 // NOLINTEND
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCNAPI void _forEachSession(::std::function<bool(::Automation::AutomationSession&)> const& callback);
81
83
84 MCNAPI bool _tryAddCommand(::CodeBuilder::CommandRequest&& commandRequest);
85
86 MCNAPI_C ::std::shared_ptr<::Automation::AutomationSession> createSession();
87
88 MCNAPI ::std::shared_ptr<::Automation::AutomationSession> getDefaultSession();
89
90 MCNAPI ::std::shared_ptr<::CodeBuilder::GameContext> getGameContext() const;
91
92 MCNAPI_C bool isReady();
93 // NOLINTEND
94
95public:
96 // constructor thunks
97 // NOLINTBEGIN
98 MCNAPI_C void* $ctor(::IMinecraftApp& minecraft);
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCNAPI void $dtor();
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCNAPI void $onUri(::ActivationUri const& uri);
111
112 MCNAPI void $send(::CodeBuilder::AgentMessage const& message);
113
114 MCNAPI void $send(::CodeBuilder::CommandMessage const& message);
115
116 MCNAPI void $send(::CodeBuilder::ErrorMessage const& message);
117
118 MCNAPI void $send(::CodeBuilder::EventMessage const& message);
119
120 MCNAPI void $send(::CodeBuilder::ChatMessage const& message);
121
122 MCNAPI void $tick();
123
124 MCNAPI void $executeStartupUris();
125
126 MCNAPI void $onLevelDestruction(::std::string const&);
127
128 MCNAPI void $playerListChanged();
129
130
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCNAPI static void** $vftableForUriListener();
137
138 MCNAPI static void** $vftableForIClient();
139
140 MCNAPI static void** $vftableForLevelListener();
141 // NOLINTEND
142};
143
144} // namespace Automation
Definition ActivationUri.h:5
MCAPI void $send(::CodeBuilder::AgentMessage const &message)
MCAPI void $onLevelDestruction(::std::string const &)
static MCAPI void ** $vftableForIClient()
MCAPI void $send(::CodeBuilder::ChatMessage const &message)
MCAPI void $send(::CodeBuilder::ErrorMessage const &message)
MCAPI ::std::shared_ptr<::CodeBuilder::GameContext > getGameContext() const
MCAPI void $onUri(::ActivationUri const &uri)
MCAPI void $send(::CodeBuilder::CommandMessage const &message)
MCAPI void $send(::CodeBuilder::EventMessage const &message)
static MCAPI void ** $vftableForUriListener()
MCAPI ::std::shared_ptr<::Automation::AutomationSession > getDefaultSession()
MCAPI void _removeSession(::Automation::AutomationSession const &session)
MCAPI bool _tryAddCommand(::CodeBuilder::CommandRequest &&commandRequest)
static MCAPI void ** $vftableForLevelListener()
MCAPI void _forEachSession(::std::function< bool(::Automation::AutomationSession &)> const &callback)
Definition AutomationSession.h:29
Definition GameContext.h:13
Definition IClient.h:19
Definition IMinecraftApp.h:19
Definition LevelListener.h:28
Definition UriListener.h:10
Definition AgentMessage.h:7
Definition ChatMessage.h:7
Definition CommandMessage.h:7
Definition CommandRequest.h:7
Definition ErrorMessage.h:12
Definition EventMessage.h:7
Definition Alias.h:14