public static BaseProjectile Deserialize(Stream stream)
        {
            BaseProjectile baseProjectile = Pool.Get <BaseProjectile>();

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

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