it's better

This commit is contained in:
Clément Le Bihan
2021-06-19 23:30:07 +02:00
parent 13af8732bc
commit 614b5af580
3 changed files with 33 additions and 12 deletions
+12 -1
View File
@@ -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);