3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/AnimationType.h"
18 enum class State :
int {
27 ::ll::TypedStorage<1, 1, ::ui::AnimationType> mAnimType;
28 ::ll::TypedStorage<4, 4, float> mTime;
29 ::ll::TypedStorage<8, 8, float (*)(float, float, float)> mEase;
30 ::ll::TypedStorage<4, 4, ::UIAnim::State> mState;
31 ::ll::TypedStorage<4, 4, uint> mAnimEndEventId;
32 ::ll::TypedStorage<4, 4, uint> mPlayEventId;
33 ::ll::TypedStorage<4, 4, uint> mResetEventId;
34 ::ll::TypedStorage<4, 4, float> mDuration;
35 ::ll::TypedStorage<8, 32, ::std::string> mName;
36 ::ll::TypedStorage<8, 32, ::std::string> mNext;
37 ::ll::TypedStorage<8, 32, ::std::string> mDestroyControlAtEnd;
38 ::ll::TypedStorage<1, 1, bool> mResettable;
39 ::ll::TypedStorage<1, 1, bool> mWaitUntilRenderedToPlay;
40 ::ll::TypedStorage<1, 1, bool> mRendered;
41 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIAnim>> mNextAnim;
51 virtual ~UIAnim() =
default;
53 virtual ::std::shared_ptr<::UIAnim> clone();
55 virtual char const* getInitialValueKey()
const;
57 virtual bool tick(::UIControl& ownerControl,
float const deltaTime);
59 virtual void updateProperties(::UIAnimationComponent& animComponent);
61 virtual void onResourcesLoaded(::UIAnimationComponent& animComponent);
63 virtual void _reset(::UIControl& ownerControl);
71 MCAPI UIAnim(::ui::AnimationType animType, ::UIResolvedDef
const& def);
73 MCAPI
bool _hasEndEventId(uint
id, ::std::set<void const*>& otherAnimations)
const;
75 MCAPI
bool _hasPlayEventId(uint playEventId, ::std::set<void const*>& otherAnimations)
const;
83 MCAPI
void* $ctor(::ui::AnimationType animType, ::UIResolvedDef
const& def);
89 MCAPI ::std::shared_ptr<::UIAnim> $clone();
91 MCAPI
char const* $getInitialValueKey()
const;
93 MCAPI
bool $tick(::UIControl& ownerControl,
float const deltaTime);
95 MCAPI
void $updateProperties(::UIAnimationComponent& animComponent);
97 MCAPI
void $onResourcesLoaded(::UIAnimationComponent& animComponent);
99 MCAPI
void $_reset(::UIControl& ownerControl);
Definition UIAnimationComponent.h:5
Definition UIResolvedDef.h:5