12345678910111213141516171819202122232425 |
- // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
- // SPDX-License-Identifier: MIT
- #pragma once
- #include <Jolt/Core/RTTI.h>
- class UIElement;
- /// Base class for UI element animations
- class UIAnimation
- {
- public:
- JPH_DECLARE_RTTI_VIRTUAL_BASE(UIAnimation)
- /// Destructor
- virtual ~UIAnimation() = default;
- ///@name Interface
- virtual void Init(UIElement *inElement) { }
- virtual bool Update(UIElement *inElement, float inDeltaTime) { return true; } ///< Returns false when done
- virtual void Exit(UIElement *inElement) { }
- };
- using UIAnimationVector = Array<UIAnimation *>;
|