// 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++;
                }
            }
Exemple #2
0
            protected override void Deserialize(NetworkReader reader, ref LightningOrb orb)
            {
                base.Deserialize(reader, ref orb);
                orb.speed            = reader.ReadSingle();
                orb.damageValue      = reader.ReadSingle();
                orb.attacker         = reader.ReadGameObject();
                orb.inflictor        = reader.ReadGameObject();
                orb.bouncesRemaining = reader.ReadInt32();

                //Needs null checks
                var c = reader.ReadInt32();

                orb.bouncedObjects = new(c);
                for (Int32 i = 0; i < c; i++)
                {
                    orb.bouncedObjects.Add(reader.ReadNetworkIdentity().GetComponent <CharacterBody>().healthComponent);
                }

                orb.teamIndex                  = reader.ReadTeamIndex();
                orb.isCrit                     = reader.ReadBoolean();
                orb.procChainMask              = reader.ReadProcChainMask();
                orb.procCoefficient            = reader.ReadSingle();
                orb.damageColorIndex           = reader.ReadDamageColorIndex();
                orb.range                      = reader.ReadSingle();
                orb.damageCoefficientPerBounce = reader.ReadSingle();
                orb.targetsToFindPerBounce     = reader.ReadInt32();
                orb.damageType                 = reader.ReadDamageType();
                orb.lightningType              = reader.ReadBits <LightningOrb.LightningType>();
            }
 // Token: 0x06001029 RID: 4137 RVA: 0x00051370 File Offset: 0x0004F570
 public override void Deserialize(NetworkReader reader)
 {
     base.Deserialize(reader);
     this.victim           = reader.ReadGameObject();
     this.damage           = reader.ReadSingle();
     this.attacker         = reader.ReadGameObject();
     this.position         = reader.ReadVector3();
     this.crit             = reader.ReadBoolean();
     this.damageType       = reader.ReadDamageType();
     this.damageColorIndex = reader.ReadDamageColorIndex();
 }
Exemple #4
0
            public override void Deserialize(NetworkReader reader)
            {
                damage                  = new DamageInfo();
                damage.attacker         = reader.ReadGameObject();
                damage.crit             = reader.ReadBoolean();
                damage.damage           = reader.ReadSingle();
                damage.damageColorIndex = reader.ReadDamageColorIndex();
                damage.damageType       = reader.ReadDamageType();
                damage.force            = reader.ReadVector3();
                damage.procCoefficient  = reader.ReadSingle();
                damage.position         = reader.ReadVector3();

                // gameob
                enemyGO = reader.ReadGameObject();
            }