changes xd

This commit is contained in:
2024-10-21 14:47:19 +02:00
parent 5b714395f0
commit ff23702c15
13 changed files with 996 additions and 18 deletions
+3 -1
View File
@@ -23,6 +23,8 @@ public class SnakeLevelLoader{
public SnakeLevel LoadLevel(StoredSnakeLevel level){
return new SnakeLevel(level.Size,
level.Obstacles.Select(a => new Point(a[0], a[1])),
level.SnakeStartLength);
level.SnakeStartLength,
level.NewEggRound,
level.EggLimit);
}
}
+2
View File
@@ -4,5 +4,7 @@ public class StoredSnakeLevel{
public required string LevelName {get; init;}
public required int Size {get; init;}
public required int SnakeStartLength {get; init;}
public required int NewEggRound { get; init; }
public required int EggLimit { get; init; }
public required int[][] Obstacles {get; init;}
}