internal IWeapon EquipSecondaryWeapon(IWeapon weapon) { if (weapon == null) throw new System.ArgumentException("EquipSecondaryWeapon - Null weapon"); IWeapon oldWeapon = UnequipSecondaryWeapon(); m_secondaryWeapon = (Weapon)weapon; if (m_secondaryWeapon.IsRanged) m_secondaryWeapon.LoadWeapon(); return oldWeapon; }
private IWeapon EquipWeapon(IWeapon weapon) { if (weapon == null) throw new System.ArgumentException("EquipWeapon - Null weapon"); Weapon oldWeapon = UnequipWeapon(); m_equipedWeapon = (Weapon)weapon; if (m_equipedWeapon.IsRanged) m_equipedWeapon.LoadWeapon(); return oldWeapon; }