public static TextMap DeserializeItem(string fileName, IFormatter formatter) { FileStream s = new FileStream(fileName, FileMode.Open); TextMap map = (TextMap)formatter.Deserialize(s); s.Close(); return(map); }
public MapEnumerator(TextMap map) { collection = map; curIndex = -1; curPoint = default(TextPoint); }
public MapPlayer(string path) { points = DeserializeItem(path, new BinaryFormatter()); CurrentPoint = points[0]; }