LeviLamina
Loading...
Searching...
No Matches
CodeBuilderCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7#include "mc/server/commands/CommandRawText.h"
8#include "mc/server/commands/CommandSelector.h"
9#include "mc/world/level/code_builder_execution_state/CodeStatus.h"
10
11// auto generated forward declare list
12// clang-format off
13class CommandOrigin;
14class CommandOutput;
15class CommandRegistry;
16class Player;
17// clang-format on
18
20public:
21 // CodeBuilderCommand inner types define
22 enum class Action : int {
23 Navigate = 0,
24 Reset = 1,
25 Subscribe = 2,
26 Unsubscribe = 3,
27 RuntimeAction = 4,
28 Check = 5,
29 };
30
31 enum class CodeBuilderRuntimeAction : int {
32 None = 0,
33 Start = 1,
34 Stop = 2,
35 Pause = 3,
36 };
37
38 enum class CommandKeyword : uchar {
39 None = 0,
40 Code = 1,
41 CodeStatus = 2,
42 };
43
44 enum class SubscriptionType : int {
45 None = 0,
46 Scoreboard = 1,
47 };
48
49public:
50 // member variables
51 // NOLINTBEGIN
52 ::ll::TypedStorage<4, 4, ::CodeBuilderCommand::Action> mAction;
53 ::ll::TypedStorage<4, 4, ::CodeBuilderCommand::CodeBuilderRuntimeAction> mRuntimeAction;
54 ::ll::TypedStorage<4, 4, ::CodeBuilderCommand::SubscriptionType> mSubscriptionType;
55 ::ll::TypedStorage<1, 1, ::CodeBuilderCommand::CommandKeyword> mCode;
56 ::ll::TypedStorage<1, 1, ::CodeBuilderCommand::CommandKeyword> mCodeStatus;
57 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mPlayerTargets;
58 ::ll::TypedStorage<8, 32, ::CommandRawText> mURL;
59 ::ll::TypedStorage<1, 1, bool> mShouldOpenWindow;
60 ::ll::TypedStorage<1, 1, ::CodeBuilderExecutionState::CodeStatus> mCodeExecStatus;
61 ::ll::TypedStorage<8, 32, ::std::string> mScoreboardObjective;
62 // NOLINTEND
63
64public:
65 // virtual functions
66 // NOLINTBEGIN
67 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
68
69 virtual ~CodeBuilderCommand() /*override*/ = default;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI ::std::string _getActionName() const;
76 // NOLINTEND
77
78public:
79 // static functions
80 // NOLINTBEGIN
81 MCAPI static void setup(::CommandRegistry& registry);
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
88
89
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCNAPI static void** $vftable();
96 // NOLINTEND
97};
Definition CodeBuilderCommand.h:19
static MCAPI void ** $vftable()
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:50
Definition Command.h:17
Definition Player.h:129
Definition Scoreboard.h:34