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