LeviLamina
Loading...
Searching...
No Matches
GetAttachPositionUtility.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/deps/shared_types/legacy/actor/ActorLocation.h"
8
9// auto generated forward declare list
10// clang-format off
12class Vec3;
17struct OffsetsComponent;
21// clang-format on
22
23namespace GetAttachPositionUtility {
24// functions
25// NOLINTBEGIN
26MCAPI ::Vec3 _getBaseAttachPoint(
27 ::SharedTypes::Legacy::ActorLocation location,
28 ::Vec3 const& interpolatedPosition,
29 ::AABBShapeComponent const& aabbShapeComponent,
30 ::ActorRotationComponent const& actorRotationComponent,
31 ::OffsetsComponent const& offsetsComponent,
32 ::optional_ref<::PassengerRenderingRidingOffsetComponent const> ridingOffset,
33 ::optional_ref<::VanillaOffsetComponent const> vanillaOffsetComponent,
34 float actorHeadRotation,
35 float alpha
36);
37
38MCAPI ::std::optional<::Vec3> getAttachPosition(
39 ::StrictEntityContext const& entity,
40 ::GetAttachPositionViews const& views,
41 ::SharedTypes::Legacy::ActorLocation location,
42 ::Vec3 const& interpolatedPosition
43);
44
45MCAPI ::Vec3 getNonPassengerAttachPos(
46 ::StateVectorComponent const& stateVector,
47 ::optional_ref<::ActorHeadRotationComponent const> headRotation,
48 ::AABBShapeComponent const& aabbShape,
49 ::ActorRotationComponent const& actorRotation,
50 ::OffsetsComponent const& offsets,
51 ::optional_ref<::VanillaOffsetComponent const> vanillaOffset,
52 ::SharedTypes::Legacy::ActorLocation location,
53 float alpha
54);
55
56MCAPI ::Vec3 getPassengerAttachPos(
57 ::StrictEntityContext const& entity,
58 ::GetAttachPositionViews const& views,
59 ::SharedTypes::Legacy::ActorLocation location,
60 float alpha
61);
62
63MCAPI ::std::optional<::Vec3> tryGetPassengerAttachPos(
64 ::StrictEntityContext const& entity,
65 ::GetAttachPositionViews const& views,
66 ::SharedTypes::Legacy::ActorLocation location,
67 float alpha
68);
69// NOLINTEND
70
71} // namespace GetAttachPositionUtility
Definition StrictEntityContext.h:14
Definition Vec3.h:10
Definition AABBShapeComponent.h:9
Definition ActorHeadRotationComponent.h:5
Definition ActorRotationComponent.h:8
Definition GetAttachPositionViews.h:5
Definition OffsetsComponent.h:8
Definition PassengerRenderingRidingOffsetComponent.h:8
Definition StateVectorComponent.h:8
Definition VanillaOffsetComponent.h:8