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
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, ::ui::AnimationType> mAnimType;
24 ::ll::TypedStorage<4, 4, float> mTime;
25 ::ll::TypedStorage<8, 8, float (*)(float, float, float)> mEase;
26 ::ll::TypedStorage<4, 4, ::UIAnim::State> mState;
27 ::ll::TypedStorage<4, 4, uint> mAnimEndEventId;
28 ::ll::TypedStorage<4, 4, uint> mPlayEventId;
29 ::ll::TypedStorage<4, 4, uint> mResetEventId;
30 ::ll::TypedStorage<4, 4, float> mDuration;
31 ::ll::TypedStorage<8, 32, ::std::string> mName;
32 ::ll::TypedStorage<8, 32, ::std::string> mNext;
33 ::ll::TypedStorage<8, 32, ::std::string> mDestroyControlAtEnd;
34 ::ll::TypedStorage<1, 1, bool> mResettable;
35 ::ll::TypedStorage<1, 1, bool> mWaitUntilRenderedToPlay;
36 ::ll::TypedStorage<1, 1, bool> mRendered;
37 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIAnim>> mNextAnim;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 UIAnim& operator=(UIAnim const&);
43 UIAnim();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~UIAnim();
49
50 virtual ::std::shared_ptr<::UIAnim> clone();
51
52 virtual char const* getInitialValueKey() const;
53
54 virtual bool tick(::UIControl& ownerControl, float const deltaTime);
55
56 virtual void updateProperties(::UIAnimationComponent& animComponent);
57
58 virtual void onResourcesLoaded(::UIAnimationComponent& animComponent);
59
60 virtual void _reset(::UIControl& ownerControl);
61
62 virtual void _play();
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI UIAnim(::UIAnim const&);
69
70 MCAPI UIAnim(::ui::AnimationType animType, ::UIResolvedDef const& def);
71
72 MCAPI bool _hasEndEventId(uint id, ::std::set<void const*>& otherAnimations) const;
73
74 MCAPI bool _hasPlayEventId(uint playEventId, ::std::set<void const*>& otherAnimations) const;
75
76 MCAPI void destroy();
77
78 MCAPI void setNextAnim(::std::shared_ptr<::UIAnim> next);
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(::UIAnim const&);
85
86 MCAPI void* $ctor(::ui::AnimationType animType, ::UIResolvedDef const& def);
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCAPI void $dtor();
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI ::std::shared_ptr<::UIAnim> $clone();
99
100 MCAPI char const* $getInitialValueKey() const;
101
102 MCAPI bool $tick(::UIControl& ownerControl, float const deltaTime);
103
104 MCAPI void $updateProperties(::UIAnimationComponent& animComponent);
105
106 MCAPI void $onResourcesLoaded(::UIAnimationComponent& animComponent);
107
108 MCAPI void $_reset(::UIControl& ownerControl);
109
110 MCAPI void $_play();
111 // NOLINTEND
112
113public:
114 // vftables
115 // NOLINTBEGIN
116 MCNAPI static void** $vftable();
117 // NOLINTEND
118};
Definition UIAnim.h:5
static MCAPI void ** $vftable()
Definition UIAnimationComponent.h:5
Definition UIControl.h:5
Definition UIResolvedDef.h:5