metaforce/Runtime/World/CScriptActorRotate.hpp

40 lines
1.2 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include <map>
#include <string_view>
#include <vector>
#include "Runtime/GCNTypes.hpp"
#include "Runtime/World/CEntity.hpp"
#include <zeus/CTransform.hpp>
#include <zeus/CVector3f.hpp>
2018-12-08 05:30:43 +00:00
namespace urde {
2017-08-19 22:46:24 +00:00
struct SRiders;
class CScriptPlatform;
2018-12-08 05:30:43 +00:00
class CScriptActorRotate : public CEntity {
zeus::CVector3f x34_rotation;
float x40_maxTime;
float x44_currentTime = 0.f;
std::map<TUniqueId, zeus::CTransform> x48_actors;
bool x58_24_updateRotation : 1;
bool x58_25_skipSpiderBallWaypoints : 1;
bool x58_26_updateActors : 1;
bool x58_27_updateOnCreation : 1;
2018-12-08 05:30:43 +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&);
2017-01-15 03:07:01 +00:00
2018-12-08 05:30:43 +00:00
public:
CScriptActorRotate(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CVector3f&, float, bool, bool, bool);
2017-08-19 22:46:24 +00:00
void Accept(IVisitor& visitor) override;
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
void Think(float, CStateManager&) override;
};
2017-08-19 22:46:24 +00:00
2018-12-08 05:30:43 +00:00
} // namespace urde