2021-09-13 15:53:43 +03:00
|
|
|
//
|
|
|
|
// Created by Иван Ильин on 29.01.2021.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef ENGINE_AWAIT_H
|
|
|
|
#define ENGINE_AWAIT_H
|
|
|
|
|
|
|
|
#include "Animation.h"
|
|
|
|
|
2021-10-12 20:18:56 +03:00
|
|
|
class AWait final : public Animation {
|
2021-09-13 15:53:43 +03:00
|
|
|
public:
|
2021-10-02 20:36:07 +03:00
|
|
|
explicit AWait(double duration = 1) {
|
2021-09-13 15:53:43 +03:00
|
|
|
_duration = duration;
|
2021-10-09 13:41:12 +03:00
|
|
|
_intType = InterpolationType::linear;
|
2021-09-13 15:53:43 +03:00
|
|
|
_waitFor = true;
|
|
|
|
}
|
|
|
|
|
2021-10-02 20:36:07 +03:00
|
|
|
bool update() override {
|
2021-09-13 15:53:43 +03:00
|
|
|
return updateState();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //INC_3DZAVR_AWAIT_H
|