// Token: 0x060010CC RID: 4300 RVA: 0x0001744C File Offset: 0x0001564C public static GameRoomData Deserialize(Stream bytes) { int num = Int32Proxy.Deserialize(bytes); GameRoomData gameRoomData = new GameRoomData(); gameRoomData.ConnectedPlayers = Int32Proxy.Deserialize(bytes); gameRoomData.GameFlags = Int32Proxy.Deserialize(bytes); gameRoomData.GameMode = EnumProxy <GameModeType> .Deserialize(bytes); if ((num & 1) != 0) { gameRoomData.Guid = StringProxy.Deserialize(bytes); } gameRoomData.IsPasswordProtected = BooleanProxy.Deserialize(bytes); gameRoomData.IsPermanentGame = BooleanProxy.Deserialize(bytes); gameRoomData.KillLimit = Int32Proxy.Deserialize(bytes); gameRoomData.LevelMax = ByteProxy.Deserialize(bytes); gameRoomData.LevelMin = ByteProxy.Deserialize(bytes); gameRoomData.MapID = Int32Proxy.Deserialize(bytes); if ((num & 2) != 0) { gameRoomData.Name = StringProxy.Deserialize(bytes); } gameRoomData.Number = Int32Proxy.Deserialize(bytes); gameRoomData.PlayerLimit = Int32Proxy.Deserialize(bytes); if ((num & 4) != 0) { gameRoomData.Server = ConnectionAddressProxy.Deserialize(bytes); } gameRoomData.TimeLimit = Int32Proxy.Deserialize(bytes); return(gameRoomData); }
// 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); }
// Token: 0x060010C2 RID: 4290 RVA: 0x00016D94 File Offset: 0x00014F94 public static GameActorInfo Deserialize(Stream bytes) { int num = Int32Proxy.Deserialize(bytes); GameActorInfo gameActorInfo = new GameActorInfo(); gameActorInfo.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes); gameActorInfo.ArmorPointCapacity = ByteProxy.Deserialize(bytes); gameActorInfo.ArmorPoints = ByteProxy.Deserialize(bytes); gameActorInfo.Channel = EnumProxy <ChannelType> .Deserialize(bytes); if ((num & 1) != 0) { gameActorInfo.ClanTag = StringProxy.Deserialize(bytes); } gameActorInfo.Cmid = Int32Proxy.Deserialize(bytes); gameActorInfo.CurrentFiringMode = EnumProxy <FireMode> .Deserialize(bytes); gameActorInfo.CurrentWeaponSlot = ByteProxy.Deserialize(bytes); gameActorInfo.Deaths = Int16Proxy.Deserialize(bytes); if ((num & 2) != 0) { gameActorInfo.FunctionalItems = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize)); } if ((num & 4) != 0) { gameActorInfo.Gear = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize)); } gameActorInfo.Health = Int16Proxy.Deserialize(bytes); gameActorInfo.Kills = Int16Proxy.Deserialize(bytes); gameActorInfo.Level = Int32Proxy.Deserialize(bytes); gameActorInfo.Ping = UInt16Proxy.Deserialize(bytes); gameActorInfo.PlayerId = ByteProxy.Deserialize(bytes); if ((num & 8) != 0) { gameActorInfo.PlayerName = StringProxy.Deserialize(bytes); } gameActorInfo.PlayerState = EnumProxy <PlayerStates> .Deserialize(bytes); if ((num & 16) != 0) { gameActorInfo.QuickItems = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize)); } gameActorInfo.Rank = ByteProxy.Deserialize(bytes); gameActorInfo.SkinColor = ColorProxy.Deserialize(bytes); gameActorInfo.StepSound = EnumProxy <SurfaceType> .Deserialize(bytes); gameActorInfo.TeamID = EnumProxy <TeamID> .Deserialize(bytes); if ((num & 32) != 0) { gameActorInfo.Weapons = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize)); } return(gameActorInfo); }
// Token: 0x060010C4 RID: 4292 RVA: 0x00016FC4 File Offset: 0x000151C4 public static PlayerMovement Deserialize(Stream bytes) { return(new PlayerMovement { HorizontalRotation = ByteProxy.Deserialize(bytes), KeyState = ByteProxy.Deserialize(bytes), MovementState = ByteProxy.Deserialize(bytes), Number = ByteProxy.Deserialize(bytes), Position = ShortVector3Proxy.Deserialize(bytes), Velocity = ShortVector3Proxy.Deserialize(bytes), VerticalRotation = ByteProxy.Deserialize(bytes) }); }
// Token: 0x060010BE RID: 4286 RVA: 0x00016914 File Offset: 0x00014B14 public static DamageEvent Deserialize(Stream bytes) { int num = Int32Proxy.Deserialize(bytes); DamageEvent damageEvent = new DamageEvent(); damageEvent.BodyPartFlag = ByteProxy.Deserialize(bytes); if ((num & 1) != 0) { damageEvent.Damage = DictionaryProxy <byte, byte> .Deserialize(bytes, new DictionaryProxy <byte, byte> .Deserializer <byte>(ByteProxy.Deserialize), new DictionaryProxy <byte, byte> .Deserializer <byte>(ByteProxy.Deserialize)); } damageEvent.DamageEffectFlag = Int32Proxy.Deserialize(bytes); damageEvent.DamgeEffectValue = SingleProxy.Deserialize(bytes); return(damageEvent); }
// 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); }
// Token: 0x060010B6 RID: 4278 RVA: 0x0001612C File Offset: 0x0001432C public static GameActorInfoDelta Deserialize(Stream bytes) { int num = Int32Proxy.Deserialize(bytes); byte id = ByteProxy.Deserialize(bytes); GameActorInfoDelta gameActorInfoDelta = new GameActorInfoDelta(); gameActorInfoDelta.Id = id; if (num != 0) { if ((num & 1) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.AccessLevel] = EnumProxy <MemberAccessLevel> .Deserialize(bytes); } if ((num & 2) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.ArmorPointCapacity] = ByteProxy.Deserialize(bytes); } if ((num & 4) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.ArmorPoints] = ByteProxy.Deserialize(bytes); } if ((num & 8) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Channel] = EnumProxy <ChannelType> .Deserialize(bytes); } if ((num & 16) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.ClanTag] = StringProxy.Deserialize(bytes); } if ((num & 32) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Cmid] = Int32Proxy.Deserialize(bytes); } if ((num & 64) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.CurrentFiringMode] = EnumProxy <FireMode> .Deserialize(bytes); } if ((num & 128) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.CurrentWeaponSlot] = ByteProxy.Deserialize(bytes); } if ((num & 256) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Deaths] = Int16Proxy.Deserialize(bytes); } if ((num & 512) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.FunctionalItems] = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize)); } if ((num & 1024) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Gear] = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize)); } if ((num & 2048) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Health] = Int16Proxy.Deserialize(bytes); } if ((num & 4096) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Kills] = Int16Proxy.Deserialize(bytes); } if ((num & 8192) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Level] = Int32Proxy.Deserialize(bytes); } if ((num & 16384) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Ping] = UInt16Proxy.Deserialize(bytes); } if ((num & 32768) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.PlayerId] = ByteProxy.Deserialize(bytes); } if ((num & 65536) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.PlayerName] = StringProxy.Deserialize(bytes); } if ((num & 131072) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.PlayerState] = EnumProxy <PlayerStates> .Deserialize(bytes); } if ((num & 262144) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.QuickItems] = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize)); } if ((num & 524288) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Rank] = ByteProxy.Deserialize(bytes); } if ((num & 1048576) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.SkinColor] = ColorProxy.Deserialize(bytes); } if ((num & 2097152) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.StepSound] = EnumProxy <SurfaceType> .Deserialize(bytes); } if ((num & 4194304) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.TeamID] = EnumProxy <TeamID> .Deserialize(bytes); } if ((num & 8388608) != 0) { gameActorInfoDelta.Changes[GameActorInfoDelta.Keys.Weapons] = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize)); } } return(gameActorInfoDelta); }