2016-11-20 21:53:15 +00:00
|
|
|
#ifndef __URDE_CSCRIPTACTORKEYFRAME_HPP__
|
|
|
|
#define __URDE_CSCRIPTACTORKEYFRAME_HPP__
|
|
|
|
|
|
|
|
#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;
|
|
|
|
bool x44_25_disableUpdate : 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,
|
|
|
|
bool looping, float lifetime, bool disableUpdate, u32 fadeOut, bool active,
|
|
|
|
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&);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CSCRIPTACTORKEYFRAME_HPP__
|