3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/AnimEvent.h"
7#include "mc/client/gui/controls/AnimationTickResult.h"
8#include "mc/client/gui/controls/ComponentReceiveActionType.h"
9#include "mc/client/gui/controls/UIComponent.h"
10#include "mc/client/gui/screens/AnimationStatus.h"
35 using AnimList = ::std::vector<::std::shared_ptr<::UIAnim>>;
37 using AnimListIter = ::std::_Vector_iterator<::std::_Vector_val<::std::_Simple_types<::std::shared_ptr<::UIAnim>>>>;
42 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::UIAnim>>> mAnimList;
43 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::UIAnim>>> mOriginalAnimList;
44 ::ll::TypedStorage<8, 24, ::std::vector<::ScreenEvent>> mNewScreenEvents;
45 ::ll::TypedStorage<1, 1, bool> mTickAttached;
46 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mCreatedTime;
47 ::ll::TypedStorage<1, 1, bool> mRecievedFirstTick;
48 ::ll::TypedStorage<1, 1, bool> mDisableFastForward;
49 ::ll::TypedStorage<4, 4, uint> mResetId;
55 virtual ~UIAnimationComponent() =
default;
57 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
59 virtual void reset() ;
61 virtual ::ComponentReceiveActionType receive(
62 ::VisualTree& visualTree,
63 ::ScreenInputContext& context,
64 ::UIAnimationController& animationController,
65 ::ScreenEvent
const& screenEvent
72 MCAPI
void _addNextAnimation(
74 ::std::map<::std::string, ::std::shared_ptr<::UIAnim>>& animationNames,
75 ::std::shared_ptr<::UIAnim>
const& firstAnim,
76 ::UIControlFactory& factory
79 MCAPI ::ui::AnimationStatus _animationTick(::mce::TimeStep
const& timeStep);
81 MCAPI ::std::shared_ptr<::UIAnim> _createAnimation(::UIResolvedDef& def, ::UIControlFactory& factory);
83 MCAPI
void _queueAnimScreenEvent(::UIAnim* anim, ::AnimEvent animEvent);
85 MCAPI ::AnimationTickResult
86 _tickUIAnim(::UIAnim* anim, ::std::vector<::UIAnimationComponent::NewAnimation>& newAnimsToAdd,
float deltaTime);
88 MCAPI ::UIAnim* addAnimation(::std::string
const& name, ::UIResolvedDef& def, ::UIControlFactory& factory);
90 MCAPI
void handleScreenEvent(::UIAnimationController& animationController, ::ScreenEvent
const& screenEvent);
92 MCAPI
bool hasAnimationWithPlayAndEndEventIds(uint playEventId, uint endEventId)
const;
98 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner)
const;
102 MCAPI ::ComponentReceiveActionType $receive(
103 ::VisualTree& visualTree,
104 ::ScreenInputContext& context,
105 ::UIAnimationController& animationController,
106 ::ScreenEvent
const& screenEvent
Definition ScreenInputContext.h:5
Definition UIAnimationComponent.h:5
static MCAPI void ** $vftable()
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition UIControlFactory.h:5
Definition UIResolvedDef.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5
Definition UIAnimationComponent.h:13