metaforce/Runtime/World/CScriptPlatform.cpp

29 lines
1.0 KiB
C++
Raw Normal View History

2016-04-20 21:44:18 +00:00
#include "CScriptPlatform.hpp"
#include "Collision/CMaterialList.hpp"
namespace urde
{
static CMaterialList MakePlatformMaterialList()
{
CMaterialList ret;
2016-04-22 20:22:45 +00:00
ret.Add(EMaterialTypes::Nineteen);
ret.Add(EMaterialTypes::FourtyThree);
ret.Add(EMaterialTypes::FourtyNine);
ret.Add(EMaterialTypes::FourtyTwo);
2016-04-20 21:44:18 +00:00
return ret;
}
CScriptPlatform::CScriptPlatform(TUniqueId uid, const std::string& name, const CEntityInfo& info,
2016-04-22 20:22:45 +00:00
const zeus::CTransform& xf, CModelData&& mData,
2016-04-20 21:44:18 +00:00
const CActorParameters& actParms, const zeus::CAABox& aabb,
float, bool, float, bool active, const CHealthInfo& hInfo,
const CDamageVulnerability& dInfo, const TLockedToken<CCollidableOBBTreeGroup>& dcln,
bool, u32, u32)
2016-04-22 20:22:45 +00:00
: CPhysicsActor(uid, active, name, info, xf, std::move(mData), MakePlatformMaterialList(),
aabb, SMoverData(15000.f), actParms, 0.3f, 0.1f)
2016-04-20 21:44:18 +00:00
{
}
}