LeviLamina
Loading...
Searching...
No Matches
DeferredScriptCommand.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/deps/scripting/script_engine/Promise.h"
8#include "mc/server/commands/DeferredCommandBase.h"
9
10// auto generated forward declare list
11// clang-format off
12class CommandContext;
15namespace ScriptModuleMinecraft { struct ScriptCommandError; }
16namespace ScriptModuleMinecraft { struct ScriptCommandResult; }
17namespace Scripting { class WeakLifetimeScope; }
18// clang-format on
19
20class DeferredScriptCommand : public ::DeferredCommandBase {
21public:
22 // member variables
23 // NOLINTBEGIN
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 DeferredScriptCommand& operator=(DeferredScriptCommand const&);
33 DeferredScriptCommand(DeferredScriptCommand const&);
34 DeferredScriptCommand();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~DeferredScriptCommand() /*override*/;
40
41 virtual void execute(::MinecraftCommands& commands) /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
48 ::std::unique_ptr<::ScriptCommandOutput> scriptCommandOutput,
49 ::std::unique_ptr<::CommandContext> commandContext,
54 void> promise
55 );
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCNAPI void* $ctor(
62 ::std::unique_ptr<::ScriptCommandOutput> scriptCommandOutput,
63 ::std::unique_ptr<::CommandContext> commandContext,
68 void> promise
69 );
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCNAPI void $dtor();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCNAPI void $execute(::MinecraftCommands& commands);
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCNAPI static void** $vftable();
90 // NOLINTEND
91};
Definition CommandContext.h:10
Definition DeferredCommandBase.h:10
static MCAPI void ** $vftable()
MCAPI DeferredScriptCommand(::std::unique_ptr<::ScriptCommandOutput > scriptCommandOutput, ::std::unique_ptr<::CommandContext > commandContext, ::Scripting::WeakLifetimeScope scope, ::Scripting::Promise< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCommandResult >, ::ScriptModuleMinecraft::ScriptCommandError, void > promise)
MCAPI void * $ctor(::std::unique_ptr<::ScriptCommandOutput > scriptCommandOutput, ::std::unique_ptr<::CommandContext > commandContext, ::Scripting::WeakLifetimeScope scope, ::Scripting::Promise< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCommandResult >, ::ScriptModuleMinecraft::ScriptCommandError, void > promise)
MCAPI void $execute(::MinecraftCommands &commands)
Definition MinecraftCommands.h:34
Definition ScriptCommandOutput.h:5
Definition Promise.h:8
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ScriptCommandError.h:16
Definition ScriptCommandResult.h:12
Definition Alias.h:14