changes xd
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;}
|
||||
}
|
||||
Reference in New Issue
Block a user