Kinda save settings
This commit is contained in:
@@ -30,5 +30,6 @@ namespace EvilSatellites.Weapons
|
||||
public virtual void Stop() { }
|
||||
public virtual void Update(GameTime time) { }
|
||||
public abstract void Reload(int amount);
|
||||
public abstract void Destroy();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,6 @@ namespace EvilSatellites.Weapons
|
||||
int MaxAmmo { get; set; }
|
||||
int RemainingAmmo { get; set; }
|
||||
WeaponState State { get; set; }
|
||||
void Destroy();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,5 +130,15 @@ namespace EvilSatellites.Weapons
|
||||
sfxReload.Play();
|
||||
Screen.Manager.Vibrations.AddVibration(1, 1, 500);
|
||||
}
|
||||
|
||||
public override void Destroy()
|
||||
{
|
||||
sfxEmpty.Destroy();
|
||||
sfxReload.Destroy();
|
||||
sfxShoot.Destroy();
|
||||
sfxSpindown.Destroy();
|
||||
sfxSpinning.Destroy();
|
||||
sfxSpinup.Destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user