/// <summary>
 /// Десериализация объекта карты
 /// </summary>
 /// <param name="Stream">Поток с сериализованными данными</param>
 /// <returns>Объект карты</returns>
 private object Deserialize(Stream Stream)
 {
     using (BinaryReader reader = new BinaryReader(Stream))
     {
         MapSerializer serializer = MapDeserializeHelper.DeserializeSerializer(reader);
         if (serializer != this)
         {
             return(null);
         }
         return(MapDeserializeHelper.Deserialize(reader));
     }
 }
 public static void SerializeSerializer(BinaryWriter Writer, MapSerializer Serializer)
 {
     SerializeGuid(Writer, Serializer.ClassId);
     SerializeVersion(Writer, Serializer.Version);
 }
Exemplo n.º 3
0
 public static void SerializeSerializer(BinaryWriter Writer, MapSerializer Serializer)
 {
     SerializeGuid(Writer, Serializer.ClassId);
     SerializeVersion(Writer, Serializer.Version);
 }