mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #214 from lioncash/virtual
CGunWeapon: Make destructor virtual
This commit is contained in:
commit
eb38d96d9a
|
@ -75,6 +75,8 @@ CGunWeapon::CGunWeapon(CAssetId ancsId, EWeaponType type, TUniqueId playerId, EM
|
|||
BuildDependencyList(x200_beamId);
|
||||
}
|
||||
|
||||
CGunWeapon::~CGunWeapon() = default;
|
||||
|
||||
void CGunWeapon::AllocResPools(CPlayerState::EBeamId beam) {
|
||||
const auto& wPair = g_tweakGunRes->GetWeaponPair(beam);
|
||||
const char* const* muzzleNames = &skMuzzleNames[size_t(beam) * 2];
|
||||
|
|
|
@ -116,6 +116,8 @@ protected:
|
|||
public:
|
||||
CGunWeapon(CAssetId ancsId, EWeaponType type, TUniqueId playerId, EMaterialTypes playerMaterial,
|
||||
const zeus::CVector3f& scale);
|
||||
virtual ~CGunWeapon();
|
||||
|
||||
void AsyncLoadSuitArm(CStateManager& mgr);
|
||||
virtual void Reset(CStateManager& mgr);
|
||||
virtual void PlayAnim(NWeaponTypes::EGunAnimType type, bool loop);
|
||||
|
|
Loading…
Reference in New Issue