Пример #1
0
        public static Spawnable Deserialize(Stream stream)
        {
            Spawnable spawnable = Pool.Get <Spawnable>();

            Spawnable.Deserialize(stream, spawnable, false);
            return(spawnable);
        }
Пример #2
0
 public static Spawnable Deserialize(byte[] buffer, Spawnable instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         Spawnable.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
Пример #3
0
        public static Spawnable Deserialize(byte[] buffer)
        {
            Spawnable spawnable = Pool.Get <Spawnable>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                Spawnable.Deserialize(memoryStream, spawnable, false);
            }
            return(spawnable);
        }
Пример #4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     Spawnable.Deserialize(stream, this, isDelta);
 }