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
19class CodeBuilderCommand : public ::Command {
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 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCAPI static void setup(::CommandRegistry& registry);
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
80
81
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition CodeBuilderCommand.h:19
static MCAPI void ** $vftable()
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Player.h:137
Definition Scoreboard.h:35