Пример #1
0
        // Token: 0x06001288 RID: 4744 RVA: 0x0005AE60 File Offset: 0x00059060
        public override void OnDeserialize(NetworkReader reader, bool initialState)
        {
            if (initialState)
            {
                this._id                 = GeneratedNetworkCode._ReadNetworkUserId_None(reader);
                this.rewiredPlayerId     = (byte)reader.ReadPackedUInt32();
                this._masterObjectId     = reader.ReadNetworkId();
                this.userColor           = reader.ReadColor32();
                this.netLunarCoins       = reader.ReadPackedUInt32();
                this.bodyIndexPreference = (int)reader.ReadPackedUInt32();
                return;
            }
            int num = (int)reader.ReadPackedUInt32();

            if ((num & 1) != 0)
            {
                this.OnSyncId(GeneratedNetworkCode._ReadNetworkUserId_None(reader));
            }
            if ((num & 2) != 0)
            {
                this.rewiredPlayerId = (byte)reader.ReadPackedUInt32();
            }
            if ((num & 4) != 0)
            {
                this.OnSyncMasterObjectId(reader.ReadNetworkId());
            }
            if ((num & 8) != 0)
            {
                this.userColor = reader.ReadColor32();
            }
            if ((num & 16) != 0)
            {
                this.netLunarCoins = reader.ReadPackedUInt32();
            }
            if ((num & 32) != 0)
            {
                this.SetBodyPreference((int)reader.ReadPackedUInt32());
            }
        }