Пример #1
0
        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);
        }
Пример #2
0
 public MapEnumerator(TextMap map)
 {
     collection = map;
     curIndex   = -1;
     curPoint   = default(TextPoint);
 }
Пример #3
0
 public MapPlayer(string path)
 {
     points       = DeserializeItem(path, new BinaryFormatter());
     CurrentPoint = points[0];
 }