mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-22 02:02:24 +00:00
Sort out power raise/lower requirements
This commit is contained in:
1 parent
5d9e7b57b4
commit
f2bf17fc2a
2 files changed
+8
-8
No files matched your search
+4
-4
@@ -51,16 +51,16 @@
|
||||
protected Game(ILogger.LogLevel logging)
|
||||
{
|
||||
this._wrapper = new(logging);
|
||||
this.RaisedPOWER += this.Game_RaisedPOWER;
|
||||
this.LoweringPOWER += this.Game_LoweringPOWER;
|
||||
this.RaisingPOWER += this.Game_RaisingPOWER;
|
||||
this.LoweredPOWER += this.Game_LoweredPOWER;
|
||||
}
|
||||
|
||||
private void Game_RaisedPOWER(object? sender, EventArgs e)
|
||||
private void Game_RaisingPOWER(object? sender, EventArgs e)
|
||||
{
|
||||
this.Initialise();
|
||||
}
|
||||
|
||||
private void Game_LoweringPOWER(object? sender, EventArgs e)
|
||||
private void Game_LoweredPOWER(object? sender, EventArgs e)
|
||||
{
|
||||
this.Terminate();
|
||||
}
|
||||
|
||||
+4
-4
@@ -18,16 +18,16 @@
|
||||
{
|
||||
this._logger = new ConsoleLogger("Unnamed Game");
|
||||
this._verbosity = logging;
|
||||
this.RaisedPOWER += this.Wrapper_RaisedPOWER;
|
||||
this.LoweringPOWER += this.Wrapper_LoweringPOWER;
|
||||
this.RaisingPOWER += this.Wrapper_RaisingPOWER;
|
||||
this.LoweredPOWER += this.Wrapper_LoweredPOWER;
|
||||
}
|
||||
|
||||
private void Wrapper_RaisedPOWER(object? sender, EventArgs e)
|
||||
private void Wrapper_RaisingPOWER(object? sender, EventArgs e)
|
||||
{
|
||||
this.Initialise();
|
||||
}
|
||||
|
||||
private void Wrapper_LoweringPOWER(object? sender, EventArgs e)
|
||||
private void Wrapper_LoweredPOWER(object? sender, EventArgs e)
|
||||
{
|
||||
this.Terminate();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user