2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-11-20 21:53:15 +00:00
|
|
|
|
|
|
|
#include "CEntity.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CScriptActorKeyframe : public CEntity
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
s32 x34_animationId;
|
2018-05-14 21:44:09 +00:00
|
|
|
float x38_initialLifetime;
|
|
|
|
float x3c_playbackRate;
|
|
|
|
float x40_lifetime;
|
2016-12-19 18:27:58 +00:00
|
|
|
union {
|
2016-11-20 21:53:15 +00:00
|
|
|
struct
|
|
|
|
{
|
2018-05-14 21:44:09 +00:00
|
|
|
bool x44_24_looping : 1;
|
2018-11-11 03:27:54 +00:00
|
|
|
bool x44_25_isPassive : 1;
|
2018-05-17 00:04:07 +00:00
|
|
|
bool x44_26_fadeOut : 1;
|
|
|
|
bool x44_27_timedLoop : 1;
|
2018-05-15 02:59:52 +00:00
|
|
|
bool x44_28_playing : 1;
|
2016-11-20 21:53:15 +00:00
|
|
|
bool x44_29_ : 1;
|
|
|
|
};
|
|
|
|
u8 _dummy = 0;
|
|
|
|
};
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2016-11-20 21:53:15 +00:00
|
|
|
public:
|
2018-05-17 00:04:07 +00:00
|
|
|
CScriptActorKeyframe(TUniqueId uid, std::string_view name, const CEntityInfo& info, s32 animId,
|
2018-11-11 03:27:54 +00:00
|
|
|
bool looping, float lifetime, bool isPassive, u32 fadeOut, bool active,
|
2018-05-17 00:04:07 +00:00
|
|
|
float totalPlayback);
|
2016-11-20 21:53:15 +00:00
|
|
|
|
2017-01-15 03:07:01 +00:00
|
|
|
void Accept(IVisitor& visitor);
|
2016-11-20 21:53:15 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr);
|
2016-12-19 18:27:58 +00:00
|
|
|
void Think(float, CStateManager&);
|
2016-11-20 21:53:15 +00:00
|
|
|
void UpdateEntity(TUniqueId, CStateManager&);
|
2018-11-11 03:27:54 +00:00
|
|
|
bool IsPassive() const { return x44_25_isPassive; }
|
2016-11-20 21:53:15 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|