// Token: 0x060010C8 RID: 4296 RVA: 0x000171EC File Offset: 0x000153EC
        public static CommActorInfo Deserialize(Stream bytes)
        {
            int           num           = Int32Proxy.Deserialize(bytes);
            CommActorInfo commActorInfo = new CommActorInfo();

            commActorInfo.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes);

            commActorInfo.Channel = EnumProxy <ChannelType> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                commActorInfo.ClanTag = StringProxy.Deserialize(bytes);
            }
            commActorInfo.Cmid = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                commActorInfo.CurrentRoom = GameRoomProxy.Deserialize(bytes);
            }
            commActorInfo.ModerationFlag = ByteProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                commActorInfo.ModInformation = StringProxy.Deserialize(bytes);
            }
            if ((num & 8) != 0)
            {
                commActorInfo.PlayerName = StringProxy.Deserialize(bytes);
            }
            return(commActorInfo);
        }
Esempio n. 2
0
        // Token: 0x060010AE RID: 4270 RVA: 0x000158F4 File Offset: 0x00013AF4
        public static CommActorInfoDelta Deserialize(Stream bytes)
        {
            int  num = Int32Proxy.Deserialize(bytes);
            byte id  = ByteProxy.Deserialize(bytes);
            CommActorInfoDelta commActorInfoDelta = new CommActorInfoDelta();

            commActorInfoDelta.Id = id;
            if (num != 0)
            {
                if ((num & 1) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.AccessLevel] = EnumProxy <MemberAccessLevel> .Deserialize(bytes);
                }
                if ((num & 2) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.Channel] = EnumProxy <ChannelType> .Deserialize(bytes);
                }
                if ((num & 4) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.ClanTag] = StringProxy.Deserialize(bytes);
                }
                if ((num & 8) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.Cmid] = Int32Proxy.Deserialize(bytes);
                }
                if ((num & 16) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.CurrentRoom] = GameRoomProxy.Deserialize(bytes);
                }
                if ((num & 32) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.ModerationFlag] = ByteProxy.Deserialize(bytes);
                }
                if ((num & 64) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.ModInformation] = StringProxy.Deserialize(bytes);
                }
                if ((num & 128) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.PlayerName] = StringProxy.Deserialize(bytes);
                }
            }
            return(commActorInfoDelta);
        }