LeviLamina
Loading...
Searching...
No Matches
CameraCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/EasingType.h"
7#include "mc/server/commands/Command.h"
8#include "mc/server/commands/CommandPositionFloat.h"
9#include "mc/server/commands/CommandSelector.h"
10#include "mc/server/commands/RelativeFloat.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class BaseGameVersion;
16class CommandOrigin;
17class CommandOutput;
18class CommandRegistry;
19class Player;
21namespace SharedTypes::v1_26_50 { struct CameraPreset; }
22// clang-format on
23
24class CameraCommand : public ::Command {
25public:
26 // CameraCommand inner types define
27 enum class CameraCommandOption : uchar {
28 None = 0,
29 Set = 1,
30 Ease = 2,
31 Pos = 3,
32 Rot = 4,
33 FovSet = 5,
34 FovClear = 6,
35 Facing = 7,
36 AttachToEntity = 8,
37 DetachFromEntity = 9,
38 PlaySpline = 10,
39 TargetEntity = 11,
40 TargetOffset = 12,
41 RemoveTarget = 13,
42 ViewOffset = 14,
43 EntityOffset = 15,
44 Default = 16,
45 Clear = 17,
46 Fade = 18,
47 Time = 19,
48 Color = 20,
49 };
50
51public:
52 // member variables
53 // NOLINTBEGIN
54 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mPlayerTargets;
55 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mCommandMode;
56 ::ll::TypedStorage<8, 32, ::std::string> mCameraPresetName;
57 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mEasingOption;
58 ::ll::TypedStorage<4, 4, ::EasingType> mEasingType;
59 ::ll::TypedStorage<4, 4, float> mEasingTime;
60 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mPosOption;
61 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mPos;
62 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mRotOption;
63 ::ll::TypedStorage<4, 8, ::RelativeFloat> mRotX;
64 ::ll::TypedStorage<4, 8, ::RelativeFloat> mRotY;
65 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mFacingOption;
66 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mFacingEntity;
67 ::ll::TypedStorage<4, 16, ::CommandPositionFloat> mFacingPos;
68 ::ll::TypedStorage<1, 1, bool> mFacingIsPosition;
69 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mDefaultOption;
70 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mViewOffsetOption;
71 ::ll::TypedStorage<4, 4, float> mViewOffsetX;
72 ::ll::TypedStorage<4, 4, float> mViewOffsetY;
73 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mEntityOffsetOption;
74 ::ll::TypedStorage<4, 4, float> mEntityOffsetX;
75 ::ll::TypedStorage<4, 4, float> mEntityOffsetY;
76 ::ll::TypedStorage<4, 4, float> mEntityOffsetZ;
77 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mAttachOption;
78 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mAttachToEntity;
79 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mTargetEntityOption;
80 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mTargetOffsetOption;
81 ::ll::TypedStorage<8, 200, ::CommandSelector<::Actor>> mTargetEntity;
82 ::ll::TypedStorage<4, 4, float> mTargetCenterOffsetX;
83 ::ll::TypedStorage<4, 4, float> mTargetCenterOffsetY;
84 ::ll::TypedStorage<4, 4, float> mTargetCenterOffsetZ;
85 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mTimeOption;
86 ::ll::TypedStorage<4, 4, float> mFadeInSeconds;
87 ::ll::TypedStorage<4, 4, float> mHoldSeconds;
88 ::ll::TypedStorage<4, 4, float> mFadeOutSeconds;
89 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mColorOption;
90 ::ll::TypedStorage<4, 4, int> mFadeColorR;
91 ::ll::TypedStorage<4, 4, int> mFadeColorG;
92 ::ll::TypedStorage<4, 4, int> mFadeColorB;
93 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mFovOption;
94 ::ll::TypedStorage<4, 4, ::EasingType> mFovEasingType;
95 ::ll::TypedStorage<4, 4, float> mFieldOfView;
96 ::ll::TypedStorage<4, 4, float> mFovEasingTime;
97 ::ll::TypedStorage<1, 1, ::CameraCommand::CameraCommandOption> mSplineOption;
98 ::ll::TypedStorage<8, 32, ::std::string> mSplineName;
99 // NOLINTEND
100
101public:
102 // virtual functions
103 // NOLINTBEGIN
104 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
105 // NOLINTEND
106
107public:
108 // member functions
109 // NOLINTBEGIN
110 MCAPI void forEachSelectedPlayersCameraStates(
111 ::CommandOrigin const& origin,
112 ::std::function<void(::ServerCameraStatesComponent&)> callback
113 ) const;
114 // NOLINTEND
115
116public:
117 // static functions
118 // NOLINTBEGIN
119 MCAPI static bool resolveInheritance(
120 ::std::string& currentPresetName,
121 ::std::string const& parentToStopAt,
122 ::std::vector<::SharedTypes::v1_26_50::CameraPreset> const& presetList
123 );
124
125 MCAPI static void setup(::CommandRegistry& registry);
126 // NOLINTEND
127
128public:
129 // static variables
130 // NOLINTBEGIN
131 MCAPI static ::BaseGameVersion const& REMOVE_IGNORE_STARTING_VALUE_COMPONENT_VERSION();
132 // NOLINTEND
133
134public:
135 // virtual function thunks
136 // NOLINTBEGIN
137 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
138
139
140 // NOLINTEND
141};
Definition Actor.h:113
Definition BaseGameVersion.h:8
Definition CameraCommand.h:24
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Command.h:17
Definition Player.h:129
Definition Pos.h:5
Definition ServerCameraStatesComponent.h:10
Definition CameraPreset.h:11