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/platform/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
27public:
28 // member variables
29 // NOLINTBEGIN
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 AutomationClient& operator=(AutomationClient const&);
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 // vIndex: 0
55 virtual ~AutomationClient() /*override*/;
56
57 // vIndex: 1
58 virtual void onUri(::ActivationUri const& uri) /*override*/;
59
60 // vIndex: 5
61 virtual void send(::CodeBuilder::AgentMessage const& message) /*override*/;
62
63 // vIndex: 4
64 virtual void send(::CodeBuilder::CommandMessage const& message) /*override*/;
65
66 // vIndex: 3
67 virtual void send(::CodeBuilder::ErrorMessage const& message) /*override*/;
68
69 // vIndex: 2
70 virtual void send(::CodeBuilder::EventMessage const& message) /*override*/;
71
72 // vIndex: 1
73 virtual void send(::CodeBuilder::ChatMessage const& message) /*override*/;
74
75 // vIndex: 2
76 virtual void tick() /*override*/;
77
78 // vIndex: 24
79 virtual void onLevelDestruction(::std::string const&) /*override*/;
80
81 // vIndex: 28
82 virtual void playerListChanged() /*override*/;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
88 MCNAPI explicit AutomationClient(::IMinecraftApp& minecraft);
89
90 MCNAPI void _forEachSession(::std::function<bool(::Automation::AutomationSession&)> const& callback);
91
93
94 MCNAPI bool _tryAddCommand(::CodeBuilder::CommandRequest&& commandRequest);
95
96 MCNAPI ::std::shared_ptr<::Automation::AutomationSession> getDefaultSession();
97
98 MCNAPI ::std::shared_ptr<::CodeBuilder::GameContext> getGameContext() const;
99 // NOLINTEND
100
101public:
102 // constructor thunks
103 // NOLINTBEGIN
104 MCNAPI void* $ctor(::IMinecraftApp& minecraft);
105 // NOLINTEND
106
107public:
108 // destructor thunk
109 // NOLINTBEGIN
110 MCNAPI void $dtor();
111 // NOLINTEND
112
113public:
114 // virtual function thunks
115 // NOLINTBEGIN
116 MCNAPI void $onUri(::ActivationUri const& uri);
117
118 MCNAPI void $send(::CodeBuilder::AgentMessage const& message);
119
120 MCNAPI void $send(::CodeBuilder::CommandMessage const& message);
121
122 MCNAPI void $send(::CodeBuilder::ErrorMessage const& message);
123
124 MCNAPI void $send(::CodeBuilder::EventMessage const& message);
125
126 MCNAPI void $send(::CodeBuilder::ChatMessage const& message);
127
128 MCNAPI void $tick();
129
130 MCNAPI void $onLevelDestruction(::std::string const&);
131
132 MCNAPI void $playerListChanged();
133 // NOLINTEND
134
135public:
136 // vftables
137 // NOLINTBEGIN
138 MCNAPI static void** $vftableForUriListener();
139
140 MCNAPI static void** $vftableForIClient();
141
142 MCNAPI static void** $vftableForLevelListener();
143 // NOLINTEND
144};
145
146} // namespace Automation
Definition ActivationUri.h:5
Definition AutomationClient.h:26
MCAPI void $send(::CodeBuilder::AgentMessage const &message)
MCAPI void * $ctor(::IMinecraftApp &minecraft)
MCAPI AutomationClient(::IMinecraftApp &minecraft)
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:27
Definition IClient.h:19
Definition CommandMessage.h:15
Definition IMinecraftApp.h:17
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