no idea speedrun

This commit is contained in:
2024-10-23 23:10:30 +02:00
parent e2c9116575
commit a2726c715c
6 changed files with 61 additions and 55 deletions
+5 -5
View File
@@ -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;
}
}