LeviLamina
Loading...
Searching...
No Matches
IVanillaCameraAPI.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/deps/game_refs/WeakRef.h"
8#include "mc/deps/shared_types/v1_21_100/camera/PlayerViewMode.h"
9
10// auto generated forward declare list
11// clang-format off
12class EntityContext;
13// clang-format on
14
16public:
17 // IVanillaCameraAPI inner types declare
18 // clang-format off
19 struct PortalData;
24 // clang-format on
25
26 // IVanillaCameraAPI inner types define
27 struct PortalData {
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 4, float> mTime;
32 ::ll::TypedStorage<4, 4, float> mRotation;
33 ::ll::TypedStorage<4, 4, float> mIntensity;
34 // NOLINTEND
35 };
36
37 struct DamageBobParameters {
38 public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<4, 4, float> mFractionalFramesSinceDeath;
42 ::ll::TypedStorage<4, 4, float> mDamagedFromDirectionYawRadians;
43 ::ll::TypedStorage<4, 4, float> mDamageCountdownRemaining;
44 ::ll::TypedStorage<4, 4, float> mDamageBobStrength;
45 // NOLINTEND
46 };
47
49 public:
50 // member variables
51 // NOLINTBEGIN
52 ::ll::TypedStorage<4, 8, ::Vec2> mMovementDirectionEulerAnglesRadians;
53 ::ll::TypedStorage<4, 4, float> mMovementDistance;
54 ::ll::TypedStorage<4, 4, float> mBobFactor;
55 // NOLINTEND
56 };
57
59 public:
60 // member variables
61 // NOLINTBEGIN
62 ::ll::TypedStorage<4, 4, float> mCenterDirectionRadians;
63 ::ll::TypedStorage<4, 4, float> mHalfAngleRadians;
64 ::ll::TypedStorage<4, 4, float> mVehicleRotationRadians;
65 // NOLINTEND
66 };
67
69 public:
70 // member variables
71 // NOLINTBEGIN
72 ::ll::TypedStorage<4, 8, ::std::optional<float>> mThirdPersonCameraDistanceOverride;
73 ::ll::TypedStorage<4, 8, ::std::optional<float>> mCameraRelaxDistanceSmoothingOverride;
74 // NOLINTEND
75 };
76
77 using PlayerViewMode = ::SharedTypes::v1_21_100::PlayerViewMode;
78
79public:
80 // virtual functions
81 // NOLINTBEGIN
82 virtual ~IVanillaCameraAPI() = default;
83
84 virtual ::std::optional<::IVanillaCameraAPI::DamageBobParameters>
85 tryGetDamageBobParameters(::WeakRef<::EntityContext> const actorRef, float frameInterpolation) const = 0;
86
87 virtual ::std::optional<::IVanillaCameraAPI::MovementBobParameters>
88 tryGetMovementBobParameters(::WeakRef<::EntityContext> const actorRef, float frameInterpolation) const = 0;
89
90 virtual ::std::optional<::IVanillaCameraAPI::VehicleRotationInformation>
91 tryGetVehicleRotationInformation(::WeakRef<::EntityContext> const actorId) const = 0;
92
93 virtual ::IVanillaCameraAPI::VehicleSeatCameraOptions
94 getVehicleSeatCameraOptions(::WeakRef<::EntityContext> const actorId) const = 0;
95
96 virtual ::std::optional<::IVanillaCameraAPI::PortalData> tryGetPortalData() const = 0;
97
98 virtual ::SharedTypes::v1_21_100::PlayerViewMode getPlayerViewPerspectiveOption() const = 0;
99
100 virtual ::std::optional<bool> isPlayerSleeping() const = 0;
101 // NOLINTEND
102};
Definition EntityContext.h:15
Definition IVanillaCameraAPI.h:5
Definition IVanillaCameraAPI.h:19
Definition IVanillaCameraAPI.h:21
Definition IVanillaCameraAPI.h:17
Definition IVanillaCameraAPI.h:23
Definition IVanillaCameraAPI.h:25