// Token: 0x06001E76 RID: 7798 RVA: 0x0008FC94 File Offset: 0x0008DE94
 public override void Serialize(NetworkWriter writer)
 {
     writer.Write(this.sendTime);
     writer.WritePackedUInt32((uint)this.prefabIndex);
     writer.Write(this.position);
     writer.Write(this.rotation);
     writer.Write(this.owner);
     GeneratedNetworkCode._WriteHurtBoxReference_None(writer, this.target);
     writer.Write(this.damage);
     writer.Write(this.force);
     writer.Write(this.crit);
     writer.WritePackedUInt32((uint)this.predictionId);
     writer.Write((int)this.damageColorIndex);
     writer.Write(this.speedOverride);
     writer.Write(this.fuseOverride);
 }
Пример #2
0
        // Token: 0x06000C12 RID: 3090 RVA: 0x00035D1C File Offset: 0x00033F1C
        public override bool OnSerialize(NetworkWriter writer, bool forceAll)
        {
            if (forceAll)
            {
                GeneratedNetworkCode._WriteHurtBoxReference_None(writer, this.netTarget);
                return(true);
            }
            bool flag = false;

            if ((base.syncVarDirtyBits & 1U) != 0U)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(base.syncVarDirtyBits);
                    flag = true;
                }
                GeneratedNetworkCode._WriteHurtBoxReference_None(writer, this.netTarget);
            }
            if (!flag)
            {
                writer.WritePackedUInt32(base.syncVarDirtyBits);
            }
            return(flag);
        }