public LevelManager(string path) : base() { StreamReader reader = new StreamReader(path); world = Serializer.DeserializeWorld(reader.ReadToEnd()); groupNum = 0; Spawn(); }
public static string SerializeWorld(World world) { return JsonConvert.SerializeObject(world); }