metaforce/Runtime/Weapon/CPlasmaProjectile.cpp

27 lines
828 B
C++
Raw Normal View History

#include "CPlasmaProjectile.hpp"
2017-01-15 03:07:01 +00:00
#include "TCastTo.hpp"
namespace urde
{
2017-11-13 06:19:18 +00:00
CPlasmaProjectile::CPlasmaProjectile(const TToken<CWeaponDescription>& wDesc, std::string_view name,
EWeaponType wType, const CBeamInfo& bInfo, const zeus::CTransform& xf,
2017-09-05 03:00:19 +00:00
EMaterialTypes matType, const CDamageInfo& dInfo, TUniqueId uid, TAreaId aid,
TUniqueId owner, u32 w1, bool b1, EProjectileAttrib attribs)
: CBeamProjectile(wDesc, name, wType, xf, bInfo.x18_, bInfo.x1c_, bInfo.x38_, matType,
dInfo, uid, aid, owner, attribs, b1)
{
}
2017-01-15 03:07:01 +00:00
void CPlasmaProjectile::Accept(IVisitor& visitor)
{
visitor.Visit(this);
}
void CPlasmaProjectile::Fire(const zeus::CTransform&, CStateManager&, bool)
{
SetActive(true);
}
}