using System; using System.Collections.Generic; using SnakeGame.Common.Interfaces; namespace SnakeApp.Objects { public class LevelGen { protected LocationStatus statusGrid; protected int width; protected int height; public LevelGen(LocationStatus[][] grid, int w, int h) { statusGrid=grid; width=w; height=h; } public SaveLevel(string LevelName) { string filename=LevelName + ".cs"; println("using System;"); println("using System.Collections.Generic;"); println("using SnakeGame.Common.Interfaces;"); println("namespace SnakeGame.Common.Objects {"); println("public class " + LevelName + " : BaseLevel {"); println("public override void getPlayField"); println("(LocationStatus[][] statusGrid, int width, int height){"); for (int i=0; i