Пример #1
0
    public override void OnDeserialize(NetworkReader reader)
    {
        base.OnDeserialize(reader);
        HurtBoxReference leftHurtBoxReference  = reader.ReadHurtBoxReference();
        HurtBoxReference rightHurtBoxReference = reader.ReadHurtBoxReference();

        stopwatch            = reader.ReadSingle();
        leftLockedOnHurtBox  = leftHurtBoxReference.ResolveGameObject()?.GetComponent <HurtBox>();
        rightLockedOnHurtBox = rightHurtBoxReference.ResolveGameObject()?.GetComponent <HurtBox>();
    }
            // Token: 0x060017DD RID: 6109 RVA: 0x00067D84 File Offset: 0x00065F84
            public override void Deserialize(NetworkReader reader)
            {
                base.Deserialize(reader);
                this.attacker         = reader.ReadGameObject();
                this.inflictor        = reader.ReadGameObject();
                this.damage           = reader.ReadSingle();
                this.isCrit           = reader.ReadBoolean();
                this.procChainMask    = reader.ReadProcChainMask();
                this.procCoefficient  = reader.ReadSingle();
                this.damageColorIndex = reader.ReadDamageColorIndex();
                this.damageType       = reader.ReadDamageType();
                this.forceVector      = reader.ReadVector3();
                this.pushAwayForce    = reader.ReadSingle();
                this.overlapInfoList.Clear();
                int i   = 0;
                int num = (int)reader.ReadPackedUInt32();

                while (i < num)
                {
                    OverlapAttack.OverlapInfo item = default(OverlapAttack.OverlapInfo);
                    GameObject gameObject          = reader.ReadHurtBoxReference().ResolveGameObject();
                    item.hurtBox       = ((gameObject != null) ? gameObject.GetComponent <HurtBox>() : null);
                    item.hitPosition   = reader.ReadVector3();
                    item.pushDirection = reader.ReadVector3();
                    this.overlapInfoList.Add(item);
                    i++;
                }
            }
Пример #3
0
 protected virtual void Deserialize(NetworkReader reader, ref TOrb orb)
 {
     orb.origin      = reader.ReadVector3();
     orb.target      = reader.ReadHurtBoxReference().ResolveHurtBox();
     orb.arrivalTime = reader.ReadSingle();
     orb.duration    = reader.ReadSingle();
 }
 public override void Deserialize(NetworkReader reader)
 {
     this.mode         = (DamageMode)reader.ReadByte();
     this.callDamage   = (this.mode & DamageMode.CallDamage) > DamageMode.None;
     this.callHitEnemy = (this.mode & DamageMode.CallHitEnemy) > DamageMode.None;
     this.callHitWorld = (this.mode & DamageMode.CallHitWorld) > DamageMode.None;
     this.target       = reader.ReadHurtBoxReference().ResolveHurtBox();
     this.damage       = ReadDamageInfo(reader);
 }
        // Token: 0x06003044 RID: 12356 RVA: 0x000CFC40 File Offset: 0x000CDE40
        public override void OnDeserialize(NetworkReader reader)
        {
            base.OnDeserialize(reader);
            HurtBoxReference hurtBoxReference = reader.ReadHurtBoxReference();

            this.stopwatch = reader.ReadSingle();
            GameObject gameObject = hurtBoxReference.ResolveGameObject();

            this.lockedOnHurtBox = ((gameObject != null) ? gameObject.GetComponent <HurtBox>() : null);
        }
Пример #6
0
        public void Deserialize(NetworkReader reader)
        {
            this.damage = reader.ReadDamageInfo();
            this.target = reader.ReadHurtBoxReference().ResolveHurtBox();
            Byte flags = reader.ReadByte();
            Byte mask  = (Byte)0b0000_0001u;

            this.callDamage   = (flags & mask) > 0;
            flags           >>= 1;
            this.callHitEnemy = (flags & mask) > 0;
            flags           >>= 1;
            this.callHitWorld = (flags & mask) > 0;
        }
Пример #7
0
        public void Deserialize(NetworkReader reader)
        {
            _damage = reader.ReadDamageInfo();
            _target = reader.ReadHurtBoxReference().ResolveHurtBox();

            byte       flags = reader.ReadByte();
            const byte mask  = 0b0001;

            _callDamage   = (flags & mask) > 0;
            flags       >>= 1;
            _callHitEnemy = (flags & mask) > 0;
            flags       >>= 1;
            _callHitWorld = (flags & mask) > 0;
        }
 // Token: 0x06002FAC RID: 12204 RVA: 0x000CC5E0 File Offset: 0x000CA7E0
 public override void OnDeserialize(NetworkReader reader)
 {
     this.initialOrbTarget = reader.ReadHurtBoxReference().ResolveHurtBox();
 }
 // Token: 0x0600318C RID: 12684 RVA: 0x000D574C File Offset: 0x000D394C
 public override void OnDeserialize(NetworkReader reader)
 {
     base.OnDeserialize(reader);
     this.targetHurtBox = reader.ReadHurtBoxReference().ResolveHurtBox();
 }