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 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCAPI void* $ctor(::UIAnim const&);
87
88 MCAPI void* $ctor(::ui::AnimationType animType, ::UIResolvedDef const& def);
89 // NOLINTEND
90
91public:
92 // destructor thunk
93 // NOLINTBEGIN
94 MCAPI void $dtor();
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCAPI ::std::shared_ptr<::UIAnim> $clone();
101
102 MCAPI char const* $getInitialValueKey() const;
103
104 MCAPI bool $tick(::UIControl& ownerControl, float const deltaTime);
105
106 MCAPI void $updateProperties(::UIAnimationComponent& animComponent);
107
108 MCAPI void $onResourcesLoaded(::UIAnimationComponent& animComponent);
109
110 MCAPI void $_reset(::UIControl& ownerControl);
111
112 MCAPI void $_play();
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCNAPI static void** $vftable();
119 // NOLINTEND
120};
Definition UIAnim.h:5
static MCAPI void ** $vftable()
Definition UIAnimationComponent.h:5
Definition UIControl.h:5
Definition UIResolvedDef.h:5