2016-12-22 19:57:21 +00:00
|
|
|
#include "CWeapon.hpp"
|
|
|
|
#include "World/CActorParameters.hpp"
|
2017-01-15 03:59:37 +00:00
|
|
|
#include "TCastTo.hpp"
|
2016-12-22 19:57:21 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2017-09-05 03:00:19 +00:00
|
|
|
CWeapon::CWeapon(TUniqueId uid, TAreaId aid, bool active, TUniqueId owner, EWeaponType type,
|
|
|
|
const std::string& name, const zeus::CTransform& xf, const CMaterialFilter& filter,
|
|
|
|
const CMaterialList& mList, const CDamageInfo&, EProjectileAttrib attribs, CModelData&& mData)
|
2016-12-22 19:57:21 +00:00
|
|
|
: CActor(uid, active, name, CEntityInfo(aid, CEntity::NullConnectionList), xf, std::move(mData), mList,
|
|
|
|
CActorParameters::None(), kInvalidUniqueId)
|
2017-05-18 10:58:15 +00:00
|
|
|
, xf8_(filter)
|
2016-12-22 19:57:21 +00:00
|
|
|
{
|
|
|
|
}
|
2017-01-15 03:59:37 +00:00
|
|
|
|
|
|
|
void CWeapon::Accept(urde::IVisitor& visitor)
|
|
|
|
{
|
|
|
|
visitor.Visit(this);
|
|
|
|
}
|
|
|
|
|
2016-12-22 19:57:21 +00:00
|
|
|
}
|