コード例 #1
0
        public static PlayerProjectileAttack Deserialize(Stream stream)
        {
            PlayerProjectileAttack playerProjectileAttack = Pool.Get <PlayerProjectileAttack>();

            PlayerProjectileAttack.Deserialize(stream, playerProjectileAttack, false);
            return(playerProjectileAttack);
        }
コード例 #2
0
 public static PlayerProjectileAttack Deserialize(byte[] buffer, PlayerProjectileAttack instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         PlayerProjectileAttack.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
コード例 #3
0
        public static PlayerProjectileAttack Deserialize(byte[] buffer)
        {
            PlayerProjectileAttack playerProjectileAttack = Pool.Get <PlayerProjectileAttack>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                PlayerProjectileAttack.Deserialize(memoryStream, playerProjectileAttack, false);
            }
            return(playerProjectileAttack);
        }
コード例 #4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     PlayerProjectileAttack.Deserialize(stream, this, isDelta);
 }