38class AnimationComponent {
50 ::ll::TypedStorage<8, 8, void const*> mChildObjectKey;
51 ::ll::TypedStorage<8, 56, ::MolangVariableMap> mMolangVariableMap;
52 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mChildAnimationComponent;
59 MCNAPI ::std::shared_ptr<::AnimationComponent>&
60 getAnimationComponent(
::Actor& owner, ::SubClientId subClientId, ::AttachableSlotIndex attachableIndex);
68 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ActorAnimationControllerStatePlayer>>
69 mCurrentAnimationControllerStatePlayer;
70 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ActorAnimationPlayer>>> mComponentAnimationPlayers;
71 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ActorAnimationControllerInfo>>>
72 mOwnedAnimationControllers;
73 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::ModelPartLocator>> mModelPartLocators;
75 ::ll::TypedStorage<8, 504, ::RenderParams> mRenderParams;
77 ::ll::TypedStorage<8, 520, ::RenderParams> mRenderParams;
79 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ActorAnimationPlayer>> mPlaySingleAnimation;
80 ::ll::TypedStorage<8, 8, void*> mModelRenderControllerCacheWasBuiltFrom;
81 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::CommonResourceDefinitionMap>> mCommonResourceDefinitionMap;
82 ::ll::TypedStorage<8, 8, ::std::unordered_map<::HashedString, ::HashedString>
const*> mParticleEffectMap;
84 ::ll::TypedStorage<8, 24, ::std::vector<::AnimationComponent::ChildAnimationComponentInfo>>
85 mChildAnimationComponents;
86 ::ll::TypedStorage<8, 64, ::std::unordered_map<::SkeletalHierarchyIndex, ::std::vector<::BoneOrientation>>>
88 ::ll::TypedStorage<1, 1, bool> mAnimationComponentInitialized;
89 ::ll::TypedStorage<4, 4, ::AnimationComponentGroupType> mAnimationComponentGroupType;
90 ::ll::TypedStorage<8, 8, ::AnimationComponentID> mOwnerUUID;
91 ::ll::TypedStorage<8, 8, int64> mLastUpdateFrame;
92 ::ll::TypedStorage<8, 8, uint64> mLastReloadInitTimeStampClient;
93 ::ll::TypedStorage<1, 1, bool> mApplyAnimations;
94 ::ll::TypedStorage<1, 1, bool> mNeedToUpdateQueryableBoneOrientations;
101 AnimationComponent();
108 virtual ~AnimationComponent() =
default;
110 virtual ~AnimationComponent();
113 virtual ::ClientAnimationComponent* tryGetClient();
115 virtual void visitApplyContext(
123 initializeClientAnimationComponent(::std::function<
void(
::ActorAnimationPlayer&)> animationComponentInitFunction);
126 virtual void ensureClientAnimationComponentIsInitialized();
128 virtual void setDirty();
130 virtual void updateQueryableGeometryBoneOrientations();
133 virtual ::Matrix
const* getQueryableBoneOrientation(uint64)
const;
135 virtual ::Matrix
const* getQueryableBoneOrientation(uint64 boneNameHash)
const;
138 virtual ::gsl::span<::SkeletalHierarchyIndex const> getSkeletalHierarchiesToProcess()
const;
154 MCNAPI
void _addAnimationToStatePlayer(
156 ::std::shared_ptr<::ActorAnimationControllerStatePlayer> player
165 ::std::set<::HashedString, ::Util::HashStringHashGreater>& animationControllerNameStack
169 MCNAPI ::std::shared_ptr<::ActorAnimationControllerStatePlayer> editGlobalAnimationData(
172 ::std::string
const& stopExpression,
173 ::MolangVersion stopExpressionVersion,
174 ::std::string
const& nextStateName,
175 ::std::string
const& runtimeController
178 MCAPI ::std::shared_ptr<::ActorAnimationPlayer> findAnimation(
::HashedString const& rawAnimationName);
180 MCAPI ::std::shared_ptr<::ActorAnimationControllerPlayer>
181 getAnimationControllerPlayer(
::HashedString const& destControllerName,
bool createIfMissing);
183 MCNAPI ::ModelPartLocator* getLocator(
::HashedString const& locatorNameHash);
185 MCAPI
float getRegisteredAnimationLength(::std::string
const& friendlyName)
const;
192 ::std::shared_ptr<::CommonResourceDefinitionMap> animationResourceDefinition,
197 MCAPI
bool isAnimationRegistered(
::HashedString const& friendlyName)
const;
199 MCNAPI ::std::shared_ptr<::ActorAnimationControllerStatePlayer> playAnimation(
202 ::std::string
const& runtimeController
209 MCNAPI
void setupDeltaTimeAndLifeTimeParams(
bool incrementLifetime);
219 MCNAPI static ::ApplyAnimationCache createBase(
::Actor const* actor);
Definition ApplyAnimationContext.h:16