LeviLamina
Loading...
Searching...
No Matches
UIAnimationController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/AnimationStatus.h"
7
8// auto generated forward declare list
9// clang-format off
10class UIControl;
11struct ScreenEvent;
12namespace mce { struct TimeStep; }
13// clang-format on
14
16public:
17 // UIAnimationController inner types declare
18 // clang-format off
20 // clang-format on
21
22 // UIAnimationController inner types define
23 enum class tickType : int {
24 Fixed = 0,
25 Render = 1,
26 };
27
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> control;
33 ::ll::TypedStorage<8, 64, ::std::function<::ui::AnimationStatus(::mce::TimeStep const&)>> function;
34 // NOLINTEND
35 };
36
37 using animationFunction_t = ::std::function<::ui::AnimationStatus(::mce::TimeStep const&)>;
38
39 using animationList_t = ::std::vector<::UIAnimationController::AnimationUIControlFunctionCallback>;
40
41public:
42 // member variables
43 // NOLINTBEGIN
44 ::ll::TypedStorage<8, 24, ::std::vector<::UIAnimationController::AnimationUIControlFunctionCallback>>
45 animationListFixedTimestep;
46 ::ll::TypedStorage<8, 24, ::std::vector<::UIAnimationController::AnimationUIControlFunctionCallback>>
47 animationListRenderTimestep;
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static bool _tick(
54 ::std::vector<::UIAnimationController::AnimationUIControlFunctionCallback>& animationList,
55 ::mce::TimeStep const& timeStep,
56 ::std::vector<::ScreenEvent>& screenEvents
57 );
58 // NOLINTEND
59};
Definition UIAnimationController.h:5
Definition UIControl.h:5
Definition ScreenEvent.h:5
Definition TimeStep.h:7