3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/AnimationTickResult.h"
7#include "mc/client/gui/controls/ComponentReceiveActionType.h"
8#include "mc/client/gui/controls/UIComponent.h"
9#include "mc/client/gui/screens/AnimationStatus.h"
36 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIAnim>> newAnim;
37 ::ll::TypedStorage<4, 4, float> lastAnimDuration;
38 ::ll::TypedStorage<4, 4, float> lastAnimTime;
42 using AnimList = ::std::vector<::std::shared_ptr<::UIAnim>>;
44 using AnimListIter = ::std::_Vector_iterator<::std::_Vector_val<::std::_Simple_types<::std::shared_ptr<::UIAnim>>>>;
49 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::UIAnim>>> mAnimList;
50 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::UIAnim>>> mOriginalAnimList;
51 ::ll::TypedStorage<8, 24, ::std::vector<::ScreenEvent>> mNewScreenEvents;
52 ::ll::TypedStorage<1, 1, bool> mTickAttached;
53 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mCreatedTime;
54 ::ll::TypedStorage<1, 1, bool> mRecievedFirstTick;
55 ::ll::TypedStorage<1, 1, bool> mDisableFastForward;
56 ::ll::TypedStorage<4, 4, uint> mResetId;
62 virtual ~UIAnimationComponent() =
default;
64 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
66 virtual void reset() ;
68 virtual ::ComponentReceiveActionType receive(
69 ::VisualTree& visualTree,
70 ::ScreenInputContext& context,
71 ::UIAnimationController& animationController,
72 ::ScreenEvent
const& screenEvent
81 ::std::map<::std::string, ::std::shared_ptr<::UIAnim>>& animationNames,
82 ::std::shared_ptr<::UIAnim>
const& firstAnim,
92 MCNAPI ::AnimationTickResult
93 _tickUIAnim(
::UIAnim* anim, ::std::vector<::UIAnimationComponent::NewAnimation>& newAnimsToAdd,
float deltaTime);
Definition ScreenInputContext.h:5
Definition UIAnimationComponent.h:5
MCAPI void handleScreenEvent(::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
MCAPI::ui::AnimationStatus _animationTick(::mce::TimeStep const &timeStep)
MCAPI::ComponentReceiveActionType $receive(::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
MCAPI::AnimationTickResult _tickUIAnim(::UIAnim *anim, ::std::vector<::UIAnimationComponent::NewAnimation > &newAnimsToAdd, float deltaTime)
MCAPI::UIAnim * addAnimation(::std::string const &name, ::UIResolvedDef &def, ::UIControlFactory &factory)
MCAPI ::std::shared_ptr<::UIAnim > _createAnimation(::UIResolvedDef &def, ::UIControlFactory &factory)
MCAPI bool hasAnimationWithEndEventId(uint id) const
MCAPI void _resetAnimations()
MCAPI bool hasAnimationWithPlayAndEndEventIds(uint playEventId, uint endEventId) const
MCAPI ::std::unique_ptr<::UIComponent > $clone(::UIControl &cloneOwner) const
MCAPI void _addNextAnimation(::UIAnim &anim, ::std::map<::std::string, ::std::shared_ptr<::UIAnim > > &animationNames, ::std::shared_ptr<::UIAnim > const &firstAnim, ::UIControlFactory &factory)
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