Beispiel #1
0
        // Token: 0x06000C13 RID: 3091 RVA: 0x00035D88 File Offset: 0x00033F88
        public override void OnDeserialize(NetworkReader reader, bool initialState)
        {
            if (initialState)
            {
                this.netTarget = GeneratedNetworkCode._ReadHurtBoxReference_None(reader);
                return;
            }
            int num = (int)reader.ReadPackedUInt32();

            if ((num & 1) != 0)
            {
                this.OnSyncTarget(GeneratedNetworkCode._ReadHurtBoxReference_None(reader));
            }
        }
 // Token: 0x06001E77 RID: 7799 RVA: 0x0008FD40 File Offset: 0x0008DF40
 public override void Deserialize(NetworkReader reader)
 {
     this.sendTime         = reader.ReadDouble();
     this.prefabIndex      = (byte)reader.ReadPackedUInt32();
     this.position         = reader.ReadVector3();
     this.rotation         = reader.ReadQuaternion();
     this.owner            = reader.ReadGameObject();
     this.target           = GeneratedNetworkCode._ReadHurtBoxReference_None(reader);
     this.damage           = reader.ReadSingle();
     this.force            = reader.ReadSingle();
     this.crit             = reader.ReadBoolean();
     this.predictionId     = (ushort)reader.ReadPackedUInt32();
     this.damageColorIndex = (DamageColorIndex)reader.ReadInt32();
     this.speedOverride    = reader.ReadSingle();
     this.fuseOverride     = reader.ReadSingle();
 }