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;
14class Dimension;
15class Level;
17// clang-format on
18
19class TickingAreaCommand : public ::Command {
20public:
21 // TickingAreaCommand inner types define
22 enum class AddAreaType : int {
23 Bounds = 0,
24 Circle = 1,
25 };
26
27 enum class Mode : int {
28 Add = 0,
29 Remove = 1,
30 RemoveAll = 2,
31 List = 3,
32 Preload = 4,
33 };
34
35 enum class TargetDimensions : int {
36 CurrentDimension = 0,
37 AllDimensions = 1,
38 };
39
40public:
41 // member variables
42 // NOLINTBEGIN
43 ::ll::TypedStorage<4, 4, ::TickingAreaCommand::Mode> mMode;
44 ::ll::TypedStorage<4, 4, ::TickingAreaCommand::AddAreaType> mAddAreaType;
45 ::ll::TypedStorage<4, 4, ::TickingAreaCommand::TargetDimensions> mTargetDimensions;
46 ::ll::TypedStorage<4, 16, ::CommandPosition> mPosition;
47 ::ll::TypedStorage<4, 16, ::CommandPosition> mMax;
48 ::ll::TypedStorage<8, 32, ::std::string> mName;
49 ::ll::TypedStorage<4, 4, int> mRadius;
50 ::ll::TypedStorage<1, 1, bool> mUsePosition;
51 ::ll::TypedStorage<1, 1, bool> mPreloadValue;
52 ::ll::TypedStorage<1, 1, bool> mPreloadValueSet;
53 // NOLINTEND
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI void
65 _add(::CommandOrigin const& origin, ::CommandOutput& output, ::Level& level, ::Dimension& dimension) const;
66
67 MCAPI void _list(::CommandOrigin const& output, ::CommandOutput& level, ::Level& dimension, ::Dimension&) const;
68
69 MCAPI void
70 _preload(::CommandOrigin const& origin, ::CommandOutput& output, ::Level& level, ::Dimension& dimension) const;
71
72 MCAPI void
73 _remove(::CommandOrigin const& origin, ::CommandOutput& output, ::Level& level, ::Dimension& dimension) const;
74
75 MCAPI void
76 _removeAll(::CommandOrigin const& output, ::CommandOutput& level, ::Level& dimension, ::Dimension&) const;
77 // NOLINTEND
78
79public:
80 // static functions
81 // NOLINTBEGIN
82 MCAPI static ::std::string formatTickingAreaList(::std::vector<::TickingAreaDescription> const& tickingAreas);
83
84 MCAPI static void setup(::CommandRegistry& registry);
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
101
102// clang-format off
103template <>
104MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::TickingAreaCommand::AddAreaType>();
105template <>
106MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::TickingAreaCommand::Mode>();
107template <>
108MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::TickingAreaCommand::TargetDimensions>();
109// clang-format on
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Dimension.h:89
Definition Level.h:255
Definition TickingAreaCommand.h:19
static MCAPI void ** $vftable()
Definition Bounds.h:8
Definition TickingAreaDescription.h:9