Пример #1
0
        // Token: 0x060009A4 RID: 2468 RVA: 0x00030A28 File Offset: 0x0002EC28
        public static HurtBoxReference ReadHurtBoxReference(this NetworkReader reader)
        {
            HurtBoxReference result = default(HurtBoxReference);

            result.Read(reader);
            return(result);
        }
Пример #2
0
        // Token: 0x0600108F RID: 4239 RVA: 0x00052B70 File Offset: 0x00050D70
        public static HurtBoxReference FromHurtBox(HurtBox hurtBox)
        {
            HurtBoxReference result;

            if (!hurtBox)
            {
                result = default(HurtBoxReference);
                return(result);
            }
            result = new HurtBoxReference
            {
                rootObject          = (hurtBox.healthComponent ? hurtBox.healthComponent.gameObject : null),
                hurtBoxIndexPlusOne = (byte)(hurtBox.indexInGroup + 1)
            };
            return(result);
        }
 // Token: 0x060017DC RID: 6108 RVA: 0x00067C7C File Offset: 0x00065E7C
 public override void Serialize(NetworkWriter writer)
 {
     base.Serialize(writer);
     writer.Write(this.attacker);
     writer.Write(this.inflictor);
     writer.Write(this.damage);
     writer.Write(this.isCrit);
     writer.Write(this.procChainMask);
     writer.Write(this.procCoefficient);
     writer.Write(this.damageColorIndex);
     writer.Write(this.damageType);
     writer.Write(this.forceVector);
     writer.Write(this.pushAwayForce);
     writer.WritePackedUInt32((uint)this.overlapInfoList.Count);
     foreach (OverlapAttack.OverlapInfo overlapInfo in this.overlapInfoList)
     {
         writer.Write(HurtBoxReference.FromHurtBox(overlapInfo.hurtBox));
         writer.Write(overlapInfo.hitPosition);
         writer.Write(overlapInfo.pushDirection);
     }
 }
Пример #4
0
 // Token: 0x06000C04 RID: 3076 RVA: 0x00035977 File Offset: 0x00033B77
 private void OnSyncTarget(HurtBoxReference newValue)
 {
     this.NetworknetTarget = newValue;
     this.UpdateCachedHurtBox();
 }
Пример #5
0
 // Token: 0x060009A3 RID: 2467 RVA: 0x00030A1B File Offset: 0x0002EC1B
 public static void Write(this NetworkWriter writer, HurtBoxReference hurtBoxReference)
 {
     hurtBoxReference.Write(writer);
 }