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#ifdef LL_PLAT_S
35 virtual ~CommandOutputSender() = default;
36#else // LL_PLAT_C
37 virtual ~CommandOutputSender();
38#endif
39
40 virtual void send(::CommandOrigin const& origin, ::CommandOutput const& output);
41
42 virtual void registerOutputCallback(::std::function<void(::AutomationCmdOutput&)> const& callback);
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48#ifdef LL_PLAT_C
49 MCAPI ::Json::Value _toJson(::CommandOutput const& commandOutput) const;
50#endif
51
52 MCAPI void
53 sendToAdmins(::CommandOrigin const& origin, ::CommandOutput const& output, ::CommandPermissionLevel opPermLevel);
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCAPI static ::std::vector<::std::string> translate(::std::vector<::std::string> const& in);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65#ifdef LL_PLAT_C
66 MCAPI void $dtor();
67#endif
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI void $send(::CommandOrigin const& origin, ::CommandOutput const& output);
74
75 MCFOLD void $registerOutputCallback(::std::function<void(::AutomationCmdOutput&)> const& callback);
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
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