2020-01-15 04:07:48 -08:00
|
|
|
#include "Runtime/MP1/World/CMetroidPrimeProjectile.hpp"
|
|
|
|
|
|
|
|
#include "Runtime/CSimplePool.hpp"
|
|
|
|
#include "Runtime/GameGlobalObjects.hpp"
|
2018-02-10 21:27:00 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce::MP1 {
|
2018-02-10 21:27:00 -08:00
|
|
|
|
|
|
|
SPrimeProjectileInfo::SPrimeProjectileInfo(CInputStream& in)
|
2022-02-17 23:37:54 -08:00
|
|
|
: x0_propertyCount(in.ReadLong())
|
|
|
|
, x4_particle(g_SimplePool->GetObj(SObjectTag{FOURCC('PART'), in.ReadLong()}))
|
2018-12-07 21:30:43 -08:00
|
|
|
, xc_dInfo(in)
|
2022-02-17 23:37:54 -08:00
|
|
|
, x28_(in.ReadFloat())
|
|
|
|
, x2c_(in.ReadFloat())
|
|
|
|
, x30_(in.ReadFloat())
|
|
|
|
, x34_texture(in.ReadLong()) {
|
|
|
|
x38_24_ = in.ReadBool();
|
|
|
|
x38_25_ = in.ReadBool();
|
|
|
|
x38_26_ = in.ReadBool();
|
|
|
|
x38_27_ = in.ReadBool();
|
2018-02-10 21:27:00 -08:00
|
|
|
}
|
|
|
|
|
2021-06-07 12:29:18 -07:00
|
|
|
CMetroidPrimeProjectile::CMetroidPrimeProjectile(bool active, const TToken<CWeaponDescription>& desc, EWeaponType type,
|
|
|
|
const zeus::CTransform& xf, EMaterialTypes materials,
|
|
|
|
const CDamageInfo& damage, TUniqueId uid, TAreaId aid, TUniqueId owner,
|
|
|
|
const SPrimeProjectileInfo& auxData, TUniqueId homingTarget,
|
|
|
|
EProjectileAttrib attribs, const zeus::CVector3f& scale,
|
|
|
|
const std::optional<TLockedToken<CGenDescription>>& visorParticle,
|
|
|
|
u16 visorSfx, bool sendCollideMsg)
|
2018-12-07 21:30:43 -08:00
|
|
|
: CEnergyProjectile(active, desc, type, xf, materials, damage, uid, aid, owner, homingTarget, attribs, false, scale,
|
|
|
|
visorParticle, visorSfx, sendCollideMsg)
|
|
|
|
, x3d8_auxData(auxData) {}
|
2018-02-10 21:27:00 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce::MP1
|