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#ifdef LL_PLAT_C
81 MCNAPI explicit AutomationClient(::IMinecraftApp& minecraft);
82#endif
83
84 MCNAPI void _forEachSession(::std::function<bool(::Automation::AutomationSession&)> const& callback);
85
87
88 MCNAPI bool _tryAddCommand(::CodeBuilder::CommandRequest&& commandRequest);
89
90#ifdef LL_PLAT_C
91 MCNAPI ::std::shared_ptr<::Automation::AutomationSession> createSession();
92#endif
93
94 MCNAPI ::std::shared_ptr<::Automation::AutomationSession> getDefaultSession();
95
96 MCNAPI ::std::shared_ptr<::CodeBuilder::GameContext> getGameContext() const;
97
98#ifdef LL_PLAT_C
99 MCNAPI bool isReady();
100#endif
101 // NOLINTEND
102
103public:
104 // constructor thunks
105 // NOLINTBEGIN
106#ifdef LL_PLAT_C
107 MCNAPI void* $ctor(::IMinecraftApp& minecraft);
108#endif
109 // NOLINTEND
110
111public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCNAPI void $dtor();
115 // NOLINTEND
116
117public:
118 // virtual function thunks
119 // NOLINTBEGIN
120 MCNAPI void $onUri(::ActivationUri const& uri);
121
122 MCNAPI void $send(::CodeBuilder::AgentMessage const& message);
123
124 MCNAPI void $send(::CodeBuilder::CommandMessage const& message);
125
126 MCNAPI void $send(::CodeBuilder::ErrorMessage const& message);
127
128 MCNAPI void $send(::CodeBuilder::EventMessage const& message);
129
130 MCNAPI void $send(::CodeBuilder::ChatMessage const& message);
131
132 MCNAPI void $tick();
133
134 MCNAPI void $executeStartupUris();
135
136 MCNAPI void $onLevelDestruction(::std::string const&);
137
138 MCNAPI void $playerListChanged();
139
140
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCNAPI static void** $vftableForUriListener();
147
148 MCNAPI static void** $vftableForIClient();
149
150 MCNAPI static void** $vftableForLevelListener();
151 // NOLINTEND
152};
153
154} // 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