public static void Equip(IPlayer player, WeaponSet weaponSet) { if (player == null || weaponSet.IsEmpty) { return; } player.GiveWeaponItem(weaponSet.Melee); ProjectileManager.SetPowerup(player, weaponSet.Primary, weaponSet.PrimaryPowerup); ProjectileManager.SetPowerup(player, weaponSet.Secondary, weaponSet.SecondaryPowerup); player.GiveWeaponItem(weaponSet.Throwable); player.GiveWeaponItem(weaponSet.Powerup); if (weaponSet.UseLazer) { player.GiveWeaponItem(WeaponItem.LAZER); } }
static WeaponSet() { Empty = new WeaponSet(); }