LeviLamina
Loading...
Searching...
No Matches
CommandOutputSender.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/Subject.h"
7#include "mc/server/commands/CommandPermissionLevel.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13namespace CodeBuilder { class CommandOutputObserver; }
14namespace Core { class SingleThreadedLock; }
15namespace Json { class Value; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 64, ::std::function<void(::AutomationCmdOutput&)>> mEmplaceTestCommandOutputCallback;
24 ::ll::TypedStorage<
25 8,
26 8,
27 ::std::unique_ptr<::Core::Subject<::CodeBuilder::CommandOutputObserver, ::Core::SingleThreadedLock>>>
28 mCodeBuilderSubject;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ~CommandOutputSender();
35
36 virtual void send(::CommandOrigin const& origin, ::CommandOutput const& output);
37
38 virtual void registerOutputCallback(::std::function<void(::AutomationCmdOutput&)> const& callback);
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44#ifdef LL_PLAT_C
45 MCAPI CommandOutputSender();
46
47 MCAPI void _sendToCodeBuilder(::CommandOrigin const& origin, ::CommandOutput const& commandOutput);
48
49 MCAPI ::Json::Value _toJson(::CommandOutput const& commandOutput) const;
50
51 MCAPI void addObserver(::CodeBuilder::CommandOutputObserver& observer);
52#endif
53
54 MCAPI void
55 sendToAdmins(::CommandOrigin const& origin, ::CommandOutput const& output, ::CommandPermissionLevel opPermLevel);
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCFOLD static ::std::vector<::std::string> translate(::std::vector<::std::string> const& in);
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67#ifdef LL_PLAT_C
68 MCAPI void* $ctor();
69#endif
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCAPI void $dtor();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI void $send(::CommandOrigin const& origin, ::CommandOutput const& output);
82
83 MCFOLD void $registerOutputCallback(::std::function<void(::AutomationCmdOutput&)> const& callback);
84
85
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCNAPI static void** $vftable();
92 // NOLINTEND
93};
Definition AutomationCmdOutput.h:5
Definition CommandOutputObserver.h:18
Definition CommandOrigin.h:32
Definition CommandOutputSender.h:19
static MCAPI void ** $vftable()
Definition CommandOutput.h:20
Definition SingleThreadedLock.h:7
Definition Value.h:16