mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-29 17:02:11 +00:00
it's better
This commit is contained in:
@@ -12,9 +12,20 @@ namespace BBM
|
||||
{
|
||||
class AnimationsSystem : public WAL::System<Drawable3DComponent, AnimationsComponent>
|
||||
{
|
||||
private:
|
||||
|
||||
//! @brief used to reset animsToskip
|
||||
long maxAnimsToSkip = 4;
|
||||
|
||||
//! @brief Should the next update call be skipped?
|
||||
long animsToSkip = maxAnimsToSkip;
|
||||
|
||||
public:
|
||||
//! @inherit
|
||||
void onFixedUpdate(WAL::ViewEntity<Drawable3DComponent, AnimationsComponent> &entity) override;
|
||||
void onUpdate(WAL::ViewEntity<Drawable3DComponent, AnimationsComponent> &entity, std::chrono::nanoseconds dtime) override;
|
||||
|
||||
//! @inherit
|
||||
void onSelfUpdate(std::chrono::nanoseconds dtime) override;
|
||||
|
||||
//! @brief A default constructor
|
||||
explicit AnimationsSystem(WAL::Wal &wal);
|
||||
|
||||
Reference in New Issue
Block a user