Kinda save settings

This commit is contained in:
2021-04-25 02:07:37 +02:00
parent 1265db9095
commit f3b5139724
12 changed files with 79 additions and 7 deletions
+1
View File
@@ -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();
}
}
+1
View File
@@ -18,5 +18,6 @@ namespace EvilSatellites.Weapons
int MaxAmmo { get; set; }
int RemainingAmmo { get; set; }
WeaponState State { get; set; }
void Destroy();
}
}
+10
View File
@@ -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();
}
}
}