LeviLamina
Loading...
Searching...
No Matches
ICameraAPI.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/deps/shared_types/legacy/actor/ActorLocation.h"
8
9// auto generated forward declare list
10// clang-format off
11class EntityContext;
12class EntityRegistry;
13class Vec2;
14class Vec3;
15// clang-format on
16
18public:
19 // ICameraAPI inner types declare
20 // clang-format off
21 struct CameraMovementData;
22 struct ShakeParameters;
23 // clang-format on
24
25 // ICameraAPI inner types define
27 public:
28 // member variables
29 // NOLINTBEGIN
32 // NOLINTEND
33
34 public:
35 // prevent constructor by default
36 ShakeParameters& operator=(ShakeParameters const&);
39 };
40
41 enum class CameraMovementSpeed : int {
42 Fast = 0,
43 Slow = 1,
44 };
45
47 public:
48 // member variables
49 // NOLINTBEGIN
52 // NOLINTEND
53
54 public:
55 // prevent constructor by default
56 CameraMovementData& operator=(CameraMovementData const&);
59 };
60
61public:
62 // virtual functions
63 // NOLINTBEGIN
64 // vIndex: 0
65 virtual ~ICameraAPI() = default;
66
67 // vIndex: 1
68 virtual ::std::optional<::Vec3>
69 tryGetActorRelativeLocation(::WeakRef<::EntityContext> const, ::SharedTypes::Legacy::ActorLocation) const = 0;
70
71 // vIndex: 2
72 virtual ::std::optional<::Vec3> tryGetActorInterpolatedPosition(::WeakRef<::EntityContext>, float) const = 0;
73
74 // vIndex: 3
75 virtual ::std::optional<::Vec2> tryGetActorRotation(::WeakRef<::EntityContext const> const) const = 0;
76
77 // vIndex: 4
78 virtual ::std::optional<::Vec3> tryGetActorPositionDelta(::WeakRef<::EntityContext>) const = 0;
79
80 // vIndex: 5
81 virtual ::std::optional<::ICameraAPI::ShakeParameters>
82 tryGetShakeParameters(::WeakRef<::EntityContext>, float, float, float) const = 0;
83
84 // vIndex: 6
85 virtual ::std::optional<float> tryGetFOV() const = 0;
86
87 // vIndex: 7
88 virtual ::ICameraAPI::CameraMovementData getCameraMovementVector() const = 0;
89
90 // vIndex: 8
91 virtual float getSecondsSinceProgramStart() const = 0;
92
93 // vIndex: 9
94 virtual ::WeakRef<::EntityContext> getDefaultCameraTarget() const = 0;
95
96 // vIndex: 10
97 virtual ::WeakRef<::EntityContext> getWeakEntity(int64) const = 0;
98
99 // vIndex: 11
100 virtual ::WeakRef<::EntityRegistry> getRegistryWeakEntity_DONOTUSE() const = 0;
101
102 // vIndex: 12
103 virtual float getFrameAlpha() const = 0;
104
105 // vIndex: 13
106 virtual ::glm::vec2 getViewportSize() const = 0;
107
108 // vIndex: 14
109 virtual ::std::optional<::Vec3> clip(::glm::vec3 const&, ::glm::vec3 const&) = 0;
110
111 // vIndex: 15
112 virtual bool isInWall(::Vec3 const&) const = 0;
113
114 // vIndex: 16
115 virtual bool isAlive(::WeakRef<::EntityContext> const) const = 0;
116 // NOLINTEND
117
118public:
119 // virtual function thunks
120 // NOLINTBEGIN
121
122 // NOLINTEND
123};
Definition EntityContext.h:16
Definition EntityRegistry.h:10
Definition ICameraAPI.h:17
Definition Vec2.h:5
Definition Vec3.h:10
Definition WeakRef.h:8
Definition ICameraAPI.h:46
Definition ICameraAPI.h:26
Definition Alias.h:14