20 void tick(uint64_t dt)
override;
23 enum State : int32_t {
36 void moveEvent()
override;
37 void preProcessTrigger(State prev = Idle);
38 void postProcessTrigger();
41 void emitSound(std::string_view snd,
bool freeSlot=
true)
const;
43 float calcProgress(uint32_t f1, uint32_t f2)
const;
44 auto calcTransform(uint32_t f1, uint32_t f2,
float a)
const -> Tempest::Matrix4x4;
46 uint32_t nextFrame(uint32_t i)
const;
47 uint32_t prevFrame(uint32_t i)
const;
48 float scaleRotSpeed(
float speed)
const;
50 void invalidateView();
52 Tempest::Matrix4x4 pos0;
55 std::vector<KeyLen> keyframes;
56 std::vector<zenkit::AnimationSample> moverKeyFrames;
57 zenkit::MoverBehavior behavior;
58 zenkit::MoverSpeedType speedType;
59 zenkit::MoverLerpType lerpType;
61 std::string sfxOpenStart;
62 std::string sfxOpenEnd;
63 std::string sfxCloseStart;
64 std::string sfxCloseEnd;
65 std::string sfxMoving;
66 std::string visualName;
67 uint64_t stayOpenTime;
70 uint64_t frameTime = 0;
72 uint32_t targetFrame = uint32_t(-1);