metaforce/Runtime/World/CRepulsor.cpp

25 lines
687 B
C++
Raw Normal View History

2016-12-22 02:48:22 +00:00
#include "CRepulsor.hpp"
#include "CActorParameters.hpp"
2017-01-15 03:07:01 +00:00
#include "TCastTo.hpp"
2016-12-22 02:48:22 +00:00
namespace urde
{
2017-11-13 06:19:18 +00:00
CRepulsor::CRepulsor(TUniqueId uid, bool active, std::string_view name, const CEntityInfo& info,
2016-12-22 02:48:22 +00:00
const zeus::CVector3f& pos, float radius)
: CActor(uid, active, name, info, zeus::CTransform::Translate(pos), CModelData::CModelDataNull(), CMaterialList(),
CActorParameters::None(), kInvalidUniqueId)
, xe8_affectRadius(radius)
{
}
2017-01-15 03:07:01 +00:00
void CRepulsor::Accept(IVisitor& visitor)
{
visitor.Visit(this);
}
2016-12-22 02:48:22 +00:00
void CRepulsor::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr)
{
CActor::AcceptScriptMsg(msg, objId, stateMgr);
}
}