LeviLamina
Loading...
Searching...
No Matches
UIAnim.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/AnimationType.h"
7
8// auto generated forward declare list
9// clang-format off
11class UIControl;
12class UIResolvedDef;
13// clang-format on
14
15class UIAnim {
16public:
17 // UIAnim inner types define
18 enum class State : int {
19 Running = 0,
20 Waiting = 1,
21 WaitingForRender = 2,
22 };
23
24public:
25 // member variables
26 // NOLINTBEGIN
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;
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
46 UIAnim();
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual ~UIAnim() = default;
52
53 virtual ::std::shared_ptr<::UIAnim> clone();
54
55 virtual char const* getInitialValueKey() const;
56
57 virtual bool tick(::UIControl& ownerControl, float const deltaTime);
58
59 virtual void updateProperties(::UIAnimationComponent& animComponent);
60
61 virtual void onResourcesLoaded(::UIAnimationComponent& animComponent);
62
63 virtual void _reset(::UIControl& ownerControl);
64
65 virtual void _play();
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI UIAnim(::ui::AnimationType animType, ::UIResolvedDef const& def);
72
73 MCAPI bool _hasEndEventId(uint id, ::std::set<void const*>& otherAnimations) const;
74
75 MCAPI bool _hasPlayEventId(uint playEventId, ::std::set<void const*>& otherAnimations) const;
76
77 MCAPI void destroy();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor(::ui::AnimationType animType, ::UIResolvedDef const& def);
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCAPI ::std::shared_ptr<::UIAnim> $clone();
90
91 MCAPI char const* $getInitialValueKey() const;
92
93 MCAPI bool $tick(::UIControl& ownerControl, float const deltaTime);
94
95 MCAPI void $updateProperties(::UIAnimationComponent& animComponent);
96
97 MCAPI void $onResourcesLoaded(::UIAnimationComponent& animComponent);
98
99 MCAPI void $_reset(::UIControl& ownerControl);
100
101 MCAPI void $_play();
102 // NOLINTEND
103};
Definition UIAnim.h:5
Definition UIAnimationComponent.h:5
Definition UIControl.h:5
Definition UIResolvedDef.h:5