metaforce/Runtime/World/CScriptDebris.cpp

38 lines
1.8 KiB
C++
Raw Normal View History

2016-05-23 05:36:20 +00:00
#include "CScriptDebris.hpp"
2017-01-15 03:07:01 +00:00
#include "TCastTo.hpp"
2016-05-23 05:36:20 +00:00
namespace urde
{
CScriptDebris::CScriptDebris(TUniqueId uid, const std::string& name, const CEntityInfo& info, const zeus::CTransform& xf,
CModelData&& mData, const CActorParameters& aParams, ResId, const zeus::CVector3f&, float,
const zeus::CVector3f&, const zeus::CColor&, float f1, float f2, float f3,
CScriptDebris::EScaleType, bool, bool, bool active)
2017-02-28 07:31:14 +00:00
: CPhysicsActor(uid, active, name, info, xf, std::move(mData),
CMaterialList(EMaterialTypes::Solid, EMaterialTypes::Debris),
mData.GetBounds(xf.getRotation()), SMoverData(f2), aParams, 0.3f, 0.1f)
2016-05-23 05:36:20 +00:00
{
}
2017-02-28 07:31:14 +00:00
CScriptDebris::CScriptDebris(TUniqueId uid, const std::string& name, const CEntityInfo& info, const zeus::CTransform& xf,
CModelData&& mData, const CActorParameters& aParams, float, float, float, float, float,
float, float, float, float, const zeus::CColor&, const zeus::CColor&, float,
const zeus::CVector3f&, const zeus::CVector3f&, float, float,
const zeus::CVector3f&, u32, const zeus::CVector3f&, bool, bool,
CScriptDebris::EOrientationType, u32, const zeus::CVector3f&, bool, bool,
CScriptDebris::EOrientationType, u32, const zeus::CVector3f&, CScriptDebris::EOrientationType,
bool, bool, bool, bool active)
: CPhysicsActor(uid, active, name, info, xf, std::move(mData),
CMaterialList(EMaterialTypes::Solid, EMaterialTypes::Debris),
mData.GetBounds(xf.getRotation()), SMoverData(1.f), aParams, 0.3f, 0.1f)
2017-01-15 03:07:01 +00:00
{
}
2017-02-28 07:31:14 +00:00
void CScriptDebris::Accept(IVisitor& visitor)
2016-05-23 05:36:20 +00:00
{
2017-02-28 07:31:14 +00:00
visitor.Visit(this);
2016-05-23 05:36:20 +00:00
}
}