public static GenericSpawner Deserialize(Stream stream)
        {
            GenericSpawner genericSpawner = Pool.Get <GenericSpawner>();

            GenericSpawner.Deserialize(stream, genericSpawner, false);
            return(genericSpawner);
        }
 public static GenericSpawner Deserialize(byte[] buffer, GenericSpawner instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         GenericSpawner.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
        public static GenericSpawner Deserialize(byte[] buffer)
        {
            GenericSpawner genericSpawner = Pool.Get <GenericSpawner>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                GenericSpawner.Deserialize(memoryStream, genericSpawner, false);
            }
            return(genericSpawner);
        }
 public void FromProto(Stream stream, bool isDelta = false)
 {
     GenericSpawner.Deserialize(stream, this, isDelta);
 }