2016-04-27 19:59:38 +00:00
|
|
|
#ifndef CSCRIPTACTORROTATE_HPP
|
|
|
|
#define CSCRIPTACTORROTATE_HPP
|
|
|
|
|
|
|
|
#include "CEntity.hpp"
|
|
|
|
#include "zeus/CTransform.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2017-08-19 22:46:24 +00:00
|
|
|
struct SRiders;
|
|
|
|
class CScriptPlatform;
|
2016-04-27 19:59:38 +00:00
|
|
|
class CScriptActorRotate : public CEntity
|
|
|
|
{
|
|
|
|
zeus::CVector3f x34_rotation;
|
2017-08-19 22:46:24 +00:00
|
|
|
float x40_maxTime;
|
2018-02-10 01:23:18 +00:00
|
|
|
float x44_currentTime = 0.f;
|
2016-04-27 19:59:38 +00:00
|
|
|
std::map<TUniqueId, zeus::CTransform> x48_actors;
|
|
|
|
|
2017-08-10 13:40:07 +00:00
|
|
|
union
|
|
|
|
{
|
2016-04-27 19:59:38 +00:00
|
|
|
struct
|
|
|
|
{
|
2017-08-19 22:46:24 +00:00
|
|
|
bool x58_24_updateRotation : 1;
|
|
|
|
bool x58_25_skipSpiderBallWaypoints : 1;
|
|
|
|
bool x58_26_updateActors : 1;
|
|
|
|
bool x58_27_updateOnCreation : 1;
|
2016-04-27 19:59:38 +00:00
|
|
|
};
|
|
|
|
u32 dummy = 0;
|
|
|
|
};
|
2016-12-19 18:27:58 +00:00
|
|
|
|
2017-08-19 22:46:24 +00:00
|
|
|
void UpdateActors(bool, CStateManager&);
|
|
|
|
void UpdateSpiderBallWaypoints(CStateManager&);
|
|
|
|
void UpdatePlatformRiders(CScriptPlatform&, const zeus::CTransform&, CStateManager&);
|
|
|
|
void UpdatePlatformRiders(std::vector<SRiders>&, CScriptPlatform&,
|
|
|
|
const zeus::CTransform&, CStateManager&);
|
2016-04-27 19:59:38 +00:00
|
|
|
public:
|
2017-11-13 06:19:18 +00:00
|
|
|
CScriptActorRotate(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CVector3f&, float, bool, bool,
|
2016-12-19 18:27:58 +00:00
|
|
|
bool);
|
2017-01-15 03:07:01 +00:00
|
|
|
|
|
|
|
void Accept(IVisitor& visitor);
|
2017-08-10 13:40:07 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
|
2017-08-19 22:46:24 +00:00
|
|
|
void Think(float, CStateManager&);
|
|
|
|
|
2016-04-27 19:59:38 +00:00
|
|
|
};
|
2017-08-19 22:46:24 +00:00
|
|
|
|
2016-04-27 19:59:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // CSCRIPTACTORROTATE_HPP
|