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 // NOLINTEND
34 };
35
36 struct DamageBobParameters {
37 public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<4, 4, float> mFractionalFramesSinceDeath;
41 ::ll::TypedStorage<4, 4, float> mDamagedFromDirectionYawRadians;
42 ::ll::TypedStorage<4, 4, float> mDamageCountdownRemaining;
43 ::ll::TypedStorage<4, 4, float> mDamageBobStrength;
44 // NOLINTEND
45 };
46
48 public:
49 // member variables
50 // NOLINTBEGIN
51 ::ll::TypedStorage<4, 8, ::Vec2> mMovementDirectionEulerAnglesRadians;
52 ::ll::TypedStorage<4, 4, float> mMovementDistance;
53 ::ll::TypedStorage<4, 4, float> mBobFactor;
54 // NOLINTEND
55 };
56
58 public:
59 // member variables
60 // NOLINTBEGIN
61 ::ll::TypedStorage<4, 4, float> mCenterDirectionRadians;
62 ::ll::TypedStorage<4, 4, float> mHalfAngleRadians;
63 ::ll::TypedStorage<4, 4, float> mVehicleRotationRadians;
64 // NOLINTEND
65 };
66
68 public:
69 // member variables
70 // NOLINTBEGIN
71 ::ll::TypedStorage<4, 8, ::std::optional<float>> mThirdPersonCameraDistanceOverride;
72 ::ll::TypedStorage<4, 8, ::std::optional<float>> mCameraRelaxDistanceSmoothingOverride;
73 // NOLINTEND
74 };
75
76 using PlayerViewMode = ::SharedTypes::v1_21_100::PlayerViewMode;
77
78public:
79 // virtual functions
80 // NOLINTBEGIN
81 virtual ~IVanillaCameraAPI() = default;
82
83 virtual ::std::optional<::IVanillaCameraAPI::DamageBobParameters>
84 tryGetDamageBobParameters(::WeakRef<::EntityContext> const actorRef, float frameInterpolation) const = 0;
85
86 virtual ::std::optional<::IVanillaCameraAPI::MovementBobParameters>
87 tryGetMovementBobParameters(::WeakRef<::EntityContext> const actorRef, float frameInterpolation) const = 0;
88
89 virtual ::std::optional<::IVanillaCameraAPI::VehicleRotationInformation>
90 tryGetVehicleRotationInformation(::WeakRef<::EntityContext> const actorId) const = 0;
91
92 virtual ::IVanillaCameraAPI::VehicleSeatCameraOptions
93 getVehicleSeatCameraOptions(::WeakRef<::EntityContext> const actorId) const = 0;
94
95 virtual ::std::optional<::IVanillaCameraAPI::PortalData> tryGetPortalData() const = 0;
96
97 virtual ::SharedTypes::v1_21_100::PlayerViewMode getPlayerViewPerspectiveOption() const = 0;
98
99 virtual ::std::optional<bool> isPlayerSleeping() const = 0;
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105
106 // NOLINTEND
107};
Definition EntityContext.h:17
Definition IVanillaCameraAPI.h:5
Definition IVanillaCameraAPI.h:19
Definition IVanillaCameraAPI.h:21
Definition IVanillaCameraAPI.h:17
Definition IVanillaCameraAPI.h:23
Definition IVanillaCameraAPI.h:25