no idea speedrun
This commit is contained in:
+5
-5
@@ -163,7 +163,7 @@ public class SnakeLevel : IDisposable{
|
||||
#endregion
|
||||
|
||||
#region Event handlers
|
||||
private void _timer_Tick(object? sender)
|
||||
private void _timer_Tick(object? state)
|
||||
{
|
||||
Tick();
|
||||
GameUpdate?.Invoke(this, EventArgs.Empty);
|
||||
@@ -171,7 +171,7 @@ public class SnakeLevel : IDisposable{
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
public void Tick(){
|
||||
private void Tick(){
|
||||
if (!_disable_snake_movement)
|
||||
{
|
||||
Point new_snake_head = (0, 0);
|
||||
@@ -279,10 +279,10 @@ public class SnakeLevel : IDisposable{
|
||||
#endregion
|
||||
|
||||
#region IDisposable
|
||||
private bool disposedValue;
|
||||
private bool _disposed_value;
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!disposedValue)
|
||||
if (!_disposed_value)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
@@ -292,7 +292,7 @@ public class SnakeLevel : IDisposable{
|
||||
|
||||
// TODO: free unmanaged resources (unmanaged objects) and override finalizer
|
||||
// TODO: set large fields to null
|
||||
disposedValue = true;
|
||||
_disposed_value = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user