Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TickingAreaCommand.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/CommandPosition.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
15// clang-format on
16
18public:
19 // TickingAreaCommand inner types define
20 enum class AddAreaType : int {
21 Bounds = 0,
22 Circle = 1,
23 };
24
25 enum class Mode : int {
26 Add = 0,
27 Remove = 1,
28 RemoveAll = 2,
29 List = 3,
30 Preload = 4,
31 };
32
33 enum class TargetDimensions : int {
34 CurrentDimension = 0,
35 AllDimensions = 1,
36 };
37
38public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<4, 4, ::TickingAreaCommand::Mode> mMode;
42 ::ll::TypedStorage<4, 4, ::TickingAreaCommand::AddAreaType> mAddAreaType;
43 ::ll::TypedStorage<4, 4, ::TickingAreaCommand::TargetDimensions> mTargetDimensions;
44 ::ll::TypedStorage<4, 16, ::CommandPosition> mPosition;
45 ::ll::TypedStorage<4, 16, ::CommandPosition> mMax;
46 ::ll::TypedStorage<8, 32, ::std::string> mName;
47 ::ll::TypedStorage<4, 4, int> mRadius;
48 ::ll::TypedStorage<1, 1, bool> mUsePosition;
49 ::ll::TypedStorage<1, 1, bool> mPreloadValue;
50 ::ll::TypedStorage<1, 1, bool> mPreloadValueSet;
51 // NOLINTEND
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
57 // NOLINTEND
58
59public:
60 // static functions
61 // NOLINTBEGIN
62 MCNAPI static ::std::string formatTickingAreaList(::std::vector<::TickingAreaDescription> const& tickingAreas);
63
64 MCAPI static void setup(::CommandRegistry& registry);
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCNAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
71
72
73 // NOLINTEND
74};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Command.h:17
Definition TickingAreaCommand.h:17
static MCAPI ::std::string formatTickingAreaList(::std::vector<::TickingAreaDescription > const &tickingAreas)
MCAPI void $execute(::CommandOrigin const &origin, ::CommandOutput &output) const
Definition Bounds.h:8
Definition TickingAreaDescription.h:9