mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +00:00
More script object imps
This commit is contained in:
30
Runtime/World/CScriptDock.cpp
Normal file
30
Runtime/World/CScriptDock.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "CScriptDock.hpp"
|
||||
#include "CActorParameters.hpp"
|
||||
#include "Character/CModelData.hpp"
|
||||
#include "Collision/CMaterialList.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
CMaterialList MakeDockMaterialList()
|
||||
{
|
||||
CMaterialList list;
|
||||
list.x0_ |= (1ull << 34);
|
||||
list.x0_ |= (1ull << 43);
|
||||
list.x0_ |= (1ull << 48);
|
||||
return list;
|
||||
}
|
||||
|
||||
CScriptDock::CScriptDock(TUniqueId uid, const std::string &name, const CEntityInfo &info, const zeus::CVector3f position,
|
||||
const zeus::CVector3f& extents, s32 dock, TAreaId area, bool active, s32 w1, bool b1)
|
||||
: CPhysicsActor(uid, active, name, info, zeus::CTransform(zeus::CMatrix3f::skIdentityMatrix3f, position),
|
||||
CModelData::CModelDataNull(), MakeDockMaterialList(), zeus::CAABox(-extents * 0.5f, extents * 0.5f), SMoverData(1.f), CActorParameters::None(), 0.3f, 0.1f),
|
||||
x258_(w1),
|
||||
x25c_dock(dock),
|
||||
x260_area(area),
|
||||
x264_(3)
|
||||
{
|
||||
x268_24_ = false;
|
||||
x268_25_ = b1;
|
||||
x268_26_ = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user