add optional Destroy method to Game
parent
d32bbcd537
commit
a9b3b53ce9
|
@ -94,6 +94,8 @@ namespace MoonWorks
|
||||||
Tick();
|
Tick();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Destroy();
|
||||||
|
|
||||||
AudioDevice.Dispose();
|
AudioDevice.Dispose();
|
||||||
GraphicsDevice.Dispose();
|
GraphicsDevice.Dispose();
|
||||||
Window.Dispose();
|
Window.Dispose();
|
||||||
|
@ -103,6 +105,7 @@ namespace MoonWorks
|
||||||
|
|
||||||
protected abstract void Update(TimeSpan delta);
|
protected abstract void Update(TimeSpan delta);
|
||||||
protected abstract void Draw(double alpha);
|
protected abstract void Draw(double alpha);
|
||||||
|
protected virtual void Destroy() {}
|
||||||
|
|
||||||
// Called when a file is dropped on the game window.
|
// Called when a file is dropped on the game window.
|
||||||
protected virtual void DropFile(string filePath) {}
|
protected virtual void DropFile(string filePath) {}
|
||||||
|
|
Loading…
Reference in New Issue