metaforce/Runtime/World/CScriptWaypoint.hpp

42 lines
1.5 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-19 00:17:49 +00:00
#include "CActor.hpp"
namespace urde
{
class CScriptWaypoint : public CActor
{
2018-06-29 20:21:36 +00:00
float xe8_speed;
2018-11-11 03:27:54 +00:00
u32 xec_animation;
float xf0_pause;
u8 xf4_patternTranslate;
u8 xf5_patternOrient;
u8 xf6_patternFit;
u8 xf7_behaviour;
u8 xf8_behaviourOrient;
u16 xfa_behaviourModifiers;
2016-04-19 00:17:49 +00:00
public:
2018-11-11 03:27:54 +00:00
CScriptWaypoint(TUniqueId uid, std::string_view name, const CEntityInfo& info,
const zeus::CTransform& xf, bool active, float speed, float pause,
u32 patternTranslate, u32 patternOrient, u32 patternFit, u32 behaviour,
u32 behaviourOrient, u32 behaviourModifiers, u32 animation);
2017-01-15 03:07:01 +00:00
void Accept(IVisitor& visitor);
2017-11-24 08:23:28 +00:00
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId sender, CStateManager& mgr);
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const;
TUniqueId FollowWaypoint(CStateManager& mgr) const;
TUniqueId NextWaypoint(CStateManager& mgr) const;
2018-06-29 20:21:36 +00:00
float GetSpeed() const { return xe8_speed; }
2018-11-11 03:27:54 +00:00
u32 GetAnimation() const { return xec_animation; }
float GetPause() const { return xf0_pause; }
u8 GetPatternTranslate() const { return xf4_patternTranslate; }
u8 GetPatternOrient() const { return xf5_patternOrient; }
u8 GetPatternFit() const { return xf6_patternFit; }
u8 GetBehaviour() const { return xf7_behaviour; }
u8 GetBehaviourOrient() const { return xf8_behaviourOrient; }
u16 GetBehaviourModifiers() const { return xfa_behaviourModifiers; }
2016-04-19 00:17:49 +00:00
};
}