2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-04-27 12:59:38 -07:00
|
|
|
|
2019-09-23 12:00:23 -07:00
|
|
|
#include <map>
|
|
|
|
#include <string_view>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/World/CEntity.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CTransform.hpp>
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2016-04-27 12:59:38 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2017-08-19 15:46:24 -07:00
|
|
|
struct SRiders;
|
|
|
|
class CScriptPlatform;
|
2018-12-07 21:30:43 -08:00
|
|
|
class CScriptActorRotate : public CEntity {
|
|
|
|
zeus::CVector3f x34_rotation;
|
|
|
|
float x40_maxTime;
|
|
|
|
float x44_currentTime = 0.f;
|
|
|
|
std::map<TUniqueId, zeus::CTransform> x48_actors;
|
2020-04-19 21:57:50 -07:00
|
|
|
bool x58_24_updateRotation : 1 = false;
|
2021-04-18 20:11:18 -07:00
|
|
|
bool x58_25_updateSpiderBallWaypoints : 1 = false;
|
2020-04-10 22:50:10 -07:00
|
|
|
bool x58_26_updateActors : 1;
|
|
|
|
bool x58_27_updateOnCreation : 1;
|
2016-12-19 10:27:58 -08:00
|
|
|
|
2018-12-07 21:30:43 -08: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-14 19:07:01 -08:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
public:
|
2021-05-26 07:00:57 -07:00
|
|
|
DEFINE_ENTITY
|
2018-12-07 21:30:43 -08:00
|
|
|
CScriptActorRotate(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CVector3f&, float, bool, bool, bool);
|
2017-08-19 15:46:24 -07:00
|
|
|
|
2019-08-09 05:45:18 -07:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
2016-04-27 12:59:38 -07:00
|
|
|
};
|
2017-08-19 15:46:24 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|