2016-04-24 01:10:47 +00:00
|
|
|
#include "CScriptCameraWaypoint.hpp"
|
|
|
|
#include "CActorParameters.hpp"
|
2017-01-15 03:07:01 +00:00
|
|
|
#include "TCastTo.hpp"
|
2016-04-24 01:10:47 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CScriptCameraWaypoint::CScriptCameraWaypoint(TUniqueId uid, const std::string& name, const CEntityInfo& info,
|
2017-08-29 13:17:52 +00:00
|
|
|
const zeus::CTransform& xf, bool active, float f1, u32 w1)
|
2016-12-29 21:38:59 +00:00
|
|
|
: CActor(uid, active, name, info, xf, CModelData::CModelDataNull(), CMaterialList(EMaterialTypes::Unknown),
|
2016-04-24 01:10:47 +00:00
|
|
|
CActorParameters::None(), kInvalidUniqueId)
|
2017-08-29 13:17:52 +00:00
|
|
|
, xe8_(f1)
|
|
|
|
, xec_(w1)
|
2016-04-24 01:10:47 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-01-15 03:07:01 +00:00
|
|
|
void CScriptCameraWaypoint::Accept(IVisitor& visitor)
|
|
|
|
{
|
|
|
|
visitor.Visit(this);
|
|
|
|
}
|
|
|
|
|
2017-08-29 13:17:52 +00:00
|
|
|
void CScriptCameraWaypoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr)
|
|
|
|
{
|
|
|
|
CActor::AcceptScriptMsg(msg, uid, mgr);
|
|
|
|
if (!GetActive() && msg == EScriptObjectMessage::Arrived)
|
|
|
|
SendScriptMsgs(EScriptObjectState::Arrived, mgr, EScriptObjectMessage::None);
|
|
|
|
}
|
|
|
|
|
2016-04-24 01:10:47 +00:00
|
|
|
}
|