// Token: 0x06000D8C RID: 3468 RVA: 0x0003CDD4 File Offset: 0x0003AFD4
        public static EquipmentState Deserialize(NetworkReader reader)
        {
            EquipmentIndex equipmentIndex = reader.ReadEquipmentIndex();

            Run.FixedTimeStamp fixedTimeStamp = reader.ReadFixedTimeStamp();
            byte b = reader.ReadByte();

            return(new EquipmentState(equipmentIndex, fixedTimeStamp, b));
        }
        // Token: 0x0600117B RID: 4475 RVA: 0x0004C6DC File Offset: 0x0004A8DC
        public override void OnDeserialize(NetworkReader reader, bool initialState)
        {
            uint num = reader.ReadPackedUInt32();

            if ((num & RouletteChestController.activationTimeDirtyBit) != 0U)
            {
                this.activationTime = reader.ReadFixedTimeStamp();
            }
            if ((num & RouletteChestController.entriesDirtyBit) != 0U)
            {
                Array.Resize <RouletteChestController.Entry>(ref this.entries, (int)reader.ReadPackedUInt32());
                Run.FixedTimeStamp endTime = this.activationTime;
                for (int i = 0; i < this.entries.Length; i++)
                {
                    RouletteChestController.Entry[] array = this.entries;
                    int num2 = i;
                    array[num2].pickupIndex = reader.ReadPickupIndex();
                    array[num2].endTime     = endTime + this.CalcEntryDuration(i);
                    endTime = array[num2].endTime;
                }
            }
        }
        // Token: 0x060018E1 RID: 6369 RVA: 0x0006B220 File Offset: 0x00069420
        public void Read(NetworkReader reader)
        {
            this.gameResultType    = (GameResultType)reader.ReadByte();
            this.gameModeIndex     = (int)reader.ReadPackedUInt32();
            this.seed              = reader.ReadUInt64();
            this.snapshotTime      = reader.ReadFixedTimeStamp();
            this.runStopwatchValue = reader.ReadSingle();
            reader.ReadRuleBook(this.ruleBook);
            int newSize = (int)reader.ReadByte();

            Array.Resize <RunReport.PlayerInfo>(ref this.playerInfos, newSize);
            for (int i = 0; i < this.playerInfos.Length; i++)
            {
                if (this.playerInfos[i] == null)
                {
                    this.playerInfos[i] = new RunReport.PlayerInfo();
                }
                this.playerInfos[i].Read(reader);
            }
            Array.Sort <RunReport.PlayerInfo>(this.playerInfos, delegate(RunReport.PlayerInfo a, RunReport.PlayerInfo b)
            {
                if (a.isLocalPlayer == b.isLocalPlayer)
                {
                    if (a.isLocalPlayer)
                    {
                        return(b.localPlayerIndex - a.localPlayerIndex);
                    }
                    return(0);
                }
                else
                {
                    if (!a.isLocalPlayer)
                    {
                        return(1);
                    }
                    return(-1);
                }
            });
        }
Example #4
0
 // Token: 0x06002D48 RID: 11592 RVA: 0x000BF29B File Offset: 0x000BD49B
 public override void OnDeserialize(NetworkReader reader)
 {
     base.OnDeserialize(reader);
     Active.startTime = reader.ReadFixedTimeStamp();
 }