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& operator=(UIAnim const&);
47 UIAnim();
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual ~UIAnim();
53
54 virtual ::std::shared_ptr<::UIAnim> clone();
55
56 virtual char const* getInitialValueKey() const;
57
58 virtual bool tick(::UIControl& ownerControl, float const deltaTime);
59
60 virtual void updateProperties(::UIAnimationComponent& animComponent);
61
62 virtual void onResourcesLoaded(::UIAnimationComponent& animComponent);
63
64 virtual void _reset(::UIControl& ownerControl);
65
66 virtual void _play();
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI UIAnim(::UIAnim const&);
73
74 MCAPI UIAnim(::ui::AnimationType animType, ::UIResolvedDef const& def);
75
76 MCAPI bool _hasEndEventId(uint id, ::std::set<void const*>& otherAnimations) const;
77
78 MCAPI bool _hasPlayEventId(uint playEventId, ::std::set<void const*>& otherAnimations) const;
79
80 MCAPI void destroy();
81
82 MCAPI void setNextAnim(::std::shared_ptr<::UIAnim> next);
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCAPI void* $ctor(::UIAnim const&);
89
90 MCAPI void* $ctor(::ui::AnimationType animType, ::UIResolvedDef const& def);
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCAPI void $dtor();
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCAPI ::std::shared_ptr<::UIAnim> $clone();
103
104 MCAPI char const* $getInitialValueKey() const;
105
106 MCAPI bool $tick(::UIControl& ownerControl, float const deltaTime);
107
108 MCAPI void $updateProperties(::UIAnimationComponent& animComponent);
109
110 MCAPI void $onResourcesLoaded(::UIAnimationComponent& animComponent);
111
112 MCAPI void $_reset(::UIControl& ownerControl);
113
114 MCAPI void $_play();
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCNAPI static void** $vftable();
121 // NOLINTEND
122};
Definition UIAnim.h:5
static MCAPI void ** $vftable()
Definition UIAnimationComponent.h:5
Definition UIControl.h:5
Definition UIResolvedDef.h:5