LeviLamina
Loading...
Searching...
No Matches
ScriptCustomCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/server/commands/Command.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13namespace ScriptModuleMinecraft { class CommandClosureStorage; }
14namespace ScriptModuleMinecraft { class ParamStorageBase; }
15namespace ScriptModuleMinecraft { class ScriptCustomCommandOrigin; }
16namespace Scripting { class WeakLifetimeScope; }
17// clang-format on
18
19namespace ScriptModuleMinecraft {
20
21class ScriptCustomCommand : public ::Command {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ScriptModuleMinecraft::CommandClosureStorage>> mClosureStorage;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ScriptModuleMinecraft::ParamStorageBase>>>
27 mParamStorage;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomCommandOrigin>
40 _createCustomCommandOrigin(::CommandOrigin const& origin, ::Scripting::WeakLifetimeScope const& scope) const;
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCAPI static bool* getParamStorageIsSet(::Command* cmd, int index);
47
48 MCAPI static void* getParamStorageValue(::Command* cmd, int index);
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
55
56
57 // NOLINTEND
58
59public:
60 // vftables
61 // NOLINTBEGIN
62 MCNAPI static void** $vftable();
63 // NOLINTEND
64};
65
66} // namespace ScriptModuleMinecraft
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandClosureStorage.h:16
Definition ParamStorageBase.h:10
Definition ScriptCustomCommandOrigin.h:18
Definition ScriptCustomCommand.h:21
Definition WeakLifetimeScope.h:14