// Token: 0x06001073 RID: 4211 RVA: 0x00014D00 File Offset: 0x00012F00 public static void Serialize(Stream stream, PrivateMessageView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.ContentText != null) { StringProxy.Serialize(memoryStream, instance.ContentText); } else { num |= 1; } DateTimeProxy.Serialize(memoryStream, instance.DateSent); Int32Proxy.Serialize(memoryStream, instance.FromCmid); if (instance.FromName != null) { StringProxy.Serialize(memoryStream, instance.FromName); } else { num |= 2; } BooleanProxy.Serialize(memoryStream, instance.HasAttachment); BooleanProxy.Serialize(memoryStream, instance.IsDeletedByReceiver); BooleanProxy.Serialize(memoryStream, instance.IsDeletedBySender); BooleanProxy.Serialize(memoryStream, instance.IsRead); Int32Proxy.Serialize(memoryStream, instance.PrivateMessageId); Int32Proxy.Serialize(memoryStream, instance.ToCmid); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x0600104B RID: 4171 RVA: 0x00013214 File Offset: 0x00011414 public static void Serialize(Stream stream, ContactRequestView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.InitiatorCmid); if (instance.InitiatorMessage != null) { StringProxy.Serialize(memoryStream, instance.InitiatorMessage); } else { num |= 1; } if (instance.InitiatorName != null) { StringProxy.Serialize(memoryStream, instance.InitiatorName); } else { num |= 2; } Int32Proxy.Serialize(memoryStream, instance.ReceiverCmid); Int32Proxy.Serialize(memoryStream, instance.RequestId); DateTimeProxy.Serialize(memoryStream, instance.SentDate); EnumProxy <ContactRequestStatus> .Serialize(memoryStream, instance.Status); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001035 RID: 4149 RVA: 0x0001242C File Offset: 0x0001062C public static void Serialize(Stream stream, BugView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.Content != null) { StringProxy.Serialize(memoryStream, instance.Content); } else { num |= 1; } if (instance.Subject != null) { StringProxy.Serialize(memoryStream, instance.Subject); } else { num |= 2; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001049 RID: 4169 RVA: 0x00013118 File Offset: 0x00011318 public static void Serialize(Stream stream, ContactGroupView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.Contacts != null) { ListProxy <PublicProfileView> .Serialize(memoryStream, instance.Contacts, new ListProxy <PublicProfileView> .Serializer <PublicProfileView>(PublicProfileViewProxy.Serialize)); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.GroupId); if (instance.GroupName != null) { StringProxy.Serialize(memoryStream, instance.GroupName); } else { num |= 2; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001057 RID: 4183 RVA: 0x00013BC0 File Offset: 0x00011DC0 public static void Serialize(Stream stream, LuckyDrawSetUnityView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.CreditsAttributed); BooleanProxy.Serialize(memoryStream, instance.ExposeItemsToPlayers); Int32Proxy.Serialize(memoryStream, instance.Id); if (instance.ImageUrl != null) { StringProxy.Serialize(memoryStream, instance.ImageUrl); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.LuckyDrawId); if (instance.LuckyDrawSetItems != null) { ListProxy <BundleItemView> .Serialize(memoryStream, instance.LuckyDrawSetItems, new ListProxy <BundleItemView> .Serializer <BundleItemView>(BundleItemViewProxy.Serialize)); } else { num |= 2; } Int32Proxy.Serialize(memoryStream, instance.PointsAttributed); Int32Proxy.Serialize(memoryStream, instance.SetWeight); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x0600106F RID: 4207 RVA: 0x00014ADC File Offset: 0x00012CDC public static void Serialize(Stream stream, PhotonView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.IP != null) { StringProxy.Serialize(memoryStream, instance.IP); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.MinLatency); if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 2; } Int32Proxy.Serialize(memoryStream, instance.PhotonId); Int32Proxy.Serialize(memoryStream, instance.Port); EnumProxy <RegionType> .Serialize(memoryStream, instance.Region); EnumProxy <PhotonUsageType> .Serialize(memoryStream, instance.UsageType); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010DD RID: 4317 RVA: 0x00018200 File Offset: 0x00016400 public static void Serialize(Stream stream, LiveFeedView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { DateTimeProxy.Serialize(memoryStream, instance.Date); if (instance.Description != null) { StringProxy.Serialize(memoryStream, instance.Description); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.LivedFeedId); Int32Proxy.Serialize(memoryStream, instance.Priority); if (instance.Url != null) { StringProxy.Serialize(memoryStream, instance.Url); } else { num |= 2; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x0600106B RID: 4203 RVA: 0x00014918 File Offset: 0x00012B18 public static void Serialize(Stream stream, PackageView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.Bonus); if (instance.Items != null) { ListProxy <int> .Serialize(memoryStream, instance.Items, new ListProxy <int> .Serializer <int>(Int32Proxy.Serialize)); } else { num |= 1; } if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 2; } DecimalProxy.Serialize(memoryStream, instance.Price); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001065 RID: 4197 RVA: 0x000144C0 File Offset: 0x000126C0 public static void Serialize(Stream stream, MessageThreadView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { BooleanProxy.Serialize(memoryStream, instance.HasNewMessages); if (instance.LastMessagePreview != null) { StringProxy.Serialize(memoryStream, instance.LastMessagePreview); } else { num |= 1; } DateTimeProxy.Serialize(memoryStream, instance.LastUpdate); Int32Proxy.Serialize(memoryStream, instance.MessageCount); Int32Proxy.Serialize(memoryStream, instance.ThreadId); if (instance.ThreadName != null) { StringProxy.Serialize(memoryStream, instance.ThreadName); } else { num |= 2; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010CF RID: 4303 RVA: 0x00017920 File Offset: 0x00015B20 public static void Serialize(Stream stream, StatsSummary instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.Achievements != null) { DictionaryProxy <byte, ushort> .Serialize(memoryStream, instance.Achievements, new DictionaryProxy <byte, ushort> .Serializer <byte>(ByteProxy.Serialize), new DictionaryProxy <byte, ushort> .Serializer <ushort>(UInt16Proxy.Serialize)); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.Cmid); Int32Proxy.Serialize(memoryStream, instance.Deaths); Int32Proxy.Serialize(memoryStream, instance.Kills); Int32Proxy.Serialize(memoryStream, instance.Level); if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 2; } EnumProxy <TeamID> .Serialize(memoryStream, instance.Team); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001109 RID: 4361 RVA: 0x0001A7E8 File Offset: 0x000189E8 public static void Serialize(Stream stream, PlaySpanHashesViewModel instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.Hashes != null) { DictionaryProxy <decimal, string> .Serialize(memoryStream, instance.Hashes, new DictionaryProxy <decimal, string> .Serializer <decimal>(DecimalProxy.Serialize), new DictionaryProxy <decimal, string> .Serializer <string>(StringProxy.Serialize)); } else { num |= 1; } if (instance.MerchTrans != null) { StringProxy.Serialize(memoryStream, instance.MerchTrans); } else { num |= 2; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001101 RID: 4353 RVA: 0x0001A210 File Offset: 0x00018410 public static void Serialize(Stream stream, GameApplicationView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.CommServer != null) { PhotonViewProxy.Serialize(memoryStream, instance.CommServer); } else { num |= 1; } if (instance.EncryptionInitVector != null) { StringProxy.Serialize(memoryStream, instance.EncryptionInitVector); } else { num |= 2; } if (instance.EncryptionPassPhrase != null) { StringProxy.Serialize(memoryStream, instance.EncryptionPassPhrase); } else { num |= 4; } if (instance.GameServers != null) { ListProxy <PhotonView> .Serialize(memoryStream, instance.GameServers, new ListProxy <PhotonView> .Serializer <PhotonView>(PhotonViewProxy.Serialize)); } else { num |= 8; } if (instance.SupportUrl != null) { StringProxy.Serialize(memoryStream, instance.SupportUrl); } else { num |= 16; } if (instance.Version != null) { StringProxy.Serialize(memoryStream, instance.Version); } else { num |= 32; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x0600104D RID: 4173 RVA: 0x00013358 File Offset: 0x00011558 public static void Serialize(Stream stream, CurrencyDepositView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.ApplicationId); if (instance.BundleId != null) { Stream bytes = memoryStream; int? bundleId = instance.BundleId; Int32Proxy.Serialize(bytes, (bundleId == null) ? 0 : bundleId.Value); } else { num |= 1; } if (instance.BundleName != null) { StringProxy.Serialize(memoryStream, instance.BundleName); } else { num |= 2; } DecimalProxy.Serialize(memoryStream, instance.Cash); EnumProxy <ChannelType> .Serialize(memoryStream, instance.ChannelId); Int32Proxy.Serialize(memoryStream, instance.Cmid); Int32Proxy.Serialize(memoryStream, instance.Credits); Int32Proxy.Serialize(memoryStream, instance.CreditsDepositId); if (instance.CurrencyLabel != null) { StringProxy.Serialize(memoryStream, instance.CurrencyLabel); } else { num |= 4; } DateTimeProxy.Serialize(memoryStream, instance.DepositDate); BooleanProxy.Serialize(memoryStream, instance.IsAdminAction); EnumProxy <PaymentProviderType> .Serialize(memoryStream, instance.PaymentProviderId); Int32Proxy.Serialize(memoryStream, instance.Points); if (instance.TransactionKey != null) { StringProxy.Serialize(memoryStream, instance.TransactionKey); } else { num |= 8; } DecimalProxy.Serialize(memoryStream, instance.UsdAmount); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001051 RID: 4177 RVA: 0x000137D8 File Offset: 0x000119D8 public static void Serialize(Stream stream, GroupInvitationView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.GroupId); Int32Proxy.Serialize(memoryStream, instance.GroupInvitationId); if (instance.GroupName != null) { StringProxy.Serialize(memoryStream, instance.GroupName); } else { num |= 1; } if (instance.GroupTag != null) { StringProxy.Serialize(memoryStream, instance.GroupTag); } else { num |= 2; } Int32Proxy.Serialize(memoryStream, instance.InviteeCmid); if (instance.InviteeName != null) { StringProxy.Serialize(memoryStream, instance.InviteeName); } else { num |= 4; } Int32Proxy.Serialize(memoryStream, instance.InviterCmid); if (instance.InviterName != null) { StringProxy.Serialize(memoryStream, instance.InviterName); } else { num |= 8; } if (instance.Message != null) { StringProxy.Serialize(memoryStream, instance.Message); } else { num |= 16; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010BF RID: 4287 RVA: 0x00016980 File Offset: 0x00014B80 public static void Serialize(Stream stream, EndOfMatchData instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { BooleanProxy.Serialize(memoryStream, instance.HasWonMatch); if (instance.MatchGuid != null) { StringProxy.Serialize(memoryStream, instance.MatchGuid); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.MostEffecientWeaponId); if (instance.MostValuablePlayers != null) { ListProxy <StatsSummary> .Serialize(memoryStream, instance.MostValuablePlayers, new ListProxy <StatsSummary> .Serializer <StatsSummary>(StatsSummaryProxy.Serialize)); } else { num |= 2; } if (instance.PlayerStatsBestPerLife != null) { StatsCollectionProxy.Serialize(memoryStream, instance.PlayerStatsBestPerLife); } else { num |= 4; } if (instance.PlayerStatsTotal != null) { StatsCollectionProxy.Serialize(memoryStream, instance.PlayerStatsTotal); } else { num |= 8; } if (instance.PlayerXpEarned != null) { DictionaryProxy <byte, ushort> .Serialize(memoryStream, instance.PlayerXpEarned, new DictionaryProxy <byte, ushort> .Serializer <byte>(ByteProxy.Serialize), new DictionaryProxy <byte, ushort> .Serializer <ushort>(UInt16Proxy.Serialize)); } else { num |= 16; } Int32Proxy.Serialize(memoryStream, instance.TimeInGameMinutes); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010DF RID: 4319 RVA: 0x00018314 File Offset: 0x00016514 public static void Serialize(Stream stream, LoadoutView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.Backpack); Int32Proxy.Serialize(memoryStream, instance.Boots); Int32Proxy.Serialize(memoryStream, instance.Cmid); Int32Proxy.Serialize(memoryStream, instance.Face); Int32Proxy.Serialize(memoryStream, instance.FunctionalItem1); Int32Proxy.Serialize(memoryStream, instance.FunctionalItem2); Int32Proxy.Serialize(memoryStream, instance.FunctionalItem3); Int32Proxy.Serialize(memoryStream, instance.Gloves); Int32Proxy.Serialize(memoryStream, instance.Head); Int32Proxy.Serialize(memoryStream, instance.LoadoutId); Int32Proxy.Serialize(memoryStream, instance.LowerBody); Int32Proxy.Serialize(memoryStream, instance.MeleeWeapon); Int32Proxy.Serialize(memoryStream, instance.QuickItem1); Int32Proxy.Serialize(memoryStream, instance.QuickItem2); Int32Proxy.Serialize(memoryStream, instance.QuickItem3); if (instance.SkinColor != null) { StringProxy.Serialize(memoryStream, instance.SkinColor); } else { num |= 1; } EnumProxy <AvatarType> .Serialize(memoryStream, instance.Type); Int32Proxy.Serialize(memoryStream, instance.UpperBody); Int32Proxy.Serialize(memoryStream, instance.Weapon1); Int32Proxy.Serialize(memoryStream, instance.Weapon1Mod1); Int32Proxy.Serialize(memoryStream, instance.Weapon1Mod2); Int32Proxy.Serialize(memoryStream, instance.Weapon1Mod3); Int32Proxy.Serialize(memoryStream, instance.Weapon2); Int32Proxy.Serialize(memoryStream, instance.Weapon2Mod1); Int32Proxy.Serialize(memoryStream, instance.Weapon2Mod2); Int32Proxy.Serialize(memoryStream, instance.Weapon2Mod3); Int32Proxy.Serialize(memoryStream, instance.Weapon3); Int32Proxy.Serialize(memoryStream, instance.Weapon3Mod1); Int32Proxy.Serialize(memoryStream, instance.Weapon3Mod2); Int32Proxy.Serialize(memoryStream, instance.Weapon3Mod3); Int32Proxy.Serialize(memoryStream, instance.Webbing); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001059 RID: 4185 RVA: 0x00013D34 File Offset: 0x00011F34 public static void Serialize(Stream stream, LuckyDrawUnityView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { EnumProxy <BundleCategoryType> .Serialize(memoryStream, instance.Category); if (instance.Description != null) { StringProxy.Serialize(memoryStream, instance.Description); } else { num |= 1; } if (instance.IconUrl != null) { StringProxy.Serialize(memoryStream, instance.IconUrl); } else { num |= 2; } Int32Proxy.Serialize(memoryStream, instance.Id); BooleanProxy.Serialize(memoryStream, instance.IsAvailableInShop); if (instance.LuckyDrawSets != null) { ListProxy <LuckyDrawSetUnityView> .Serialize(memoryStream, instance.LuckyDrawSets, new ListProxy <LuckyDrawSetUnityView> .Serializer <LuckyDrawSetUnityView>(LuckyDrawSetUnityViewProxy.Serialize)); } else { num |= 4; } if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 8; } Int32Proxy.Serialize(memoryStream, instance.Price); EnumProxy <UberStrikeCurrencyType> .Serialize(memoryStream, instance.UberStrikeCurrencyType); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010C7 RID: 4295 RVA: 0x000170F4 File Offset: 0x000152F4 public static void Serialize(Stream stream, CommActorInfo instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { EnumProxy <MemberAccessLevel> .Serialize(memoryStream, instance.AccessLevel); EnumProxy <ChannelType> .Serialize(memoryStream, instance.Channel); if (instance.ClanTag != null) { StringProxy.Serialize(memoryStream, instance.ClanTag); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.Cmid); if (instance.CurrentRoom != null) { GameRoomProxy.Serialize(memoryStream, instance.CurrentRoom); } else { num |= 2; } ByteProxy.Serialize(memoryStream, instance.ModerationFlag); if (instance.ModInformation != null) { StringProxy.Serialize(memoryStream, instance.ModInformation); } else { num |= 4; } if (instance.PlayerName != null) { StringProxy.Serialize(memoryStream, instance.PlayerName); } else { num |= 8; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001103 RID: 4355 RVA: 0x0001A3C8 File Offset: 0x000185C8 public static void Serialize(Stream stream, MapView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.Description != null) { StringProxy.Serialize(memoryStream, instance.Description); } else { num |= 1; } if (instance.DisplayName != null) { StringProxy.Serialize(memoryStream, instance.DisplayName); } else { num |= 2; } BooleanProxy.Serialize(memoryStream, instance.IsBlueBox); Int32Proxy.Serialize(memoryStream, instance.MapId); Int32Proxy.Serialize(memoryStream, instance.MaxPlayers); Int32Proxy.Serialize(memoryStream, instance.RecommendedItemId); if (instance.SceneName != null) { StringProxy.Serialize(memoryStream, instance.SceneName); } else { num |= 4; } if (instance.Settings != null) { DictionaryProxy <GameModeType, MapSettings> .Serialize(memoryStream, instance.Settings, new DictionaryProxy <GameModeType, MapSettings> .Serializer <GameModeType>(EnumProxy <GameModeType> .Serialize), new DictionaryProxy <GameModeType, MapSettings> .Serializer <MapSettings>(MapSettingsProxy.Serialize)); } else { num |= 8; } Int32Proxy.Serialize(memoryStream, instance.SupportedGameModes); Int32Proxy.Serialize(memoryStream, instance.SupportedItemClass); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010CB RID: 4299 RVA: 0x00017308 File Offset: 0x00015508 public static void Serialize(Stream stream, GameRoomData instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.ConnectedPlayers); Int32Proxy.Serialize(memoryStream, instance.GameFlags); EnumProxy <GameModeType> .Serialize(memoryStream, instance.GameMode); if (instance.Guid != null) { StringProxy.Serialize(memoryStream, instance.Guid); } else { num |= 1; } BooleanProxy.Serialize(memoryStream, instance.IsPasswordProtected); BooleanProxy.Serialize(memoryStream, instance.IsPermanentGame); Int32Proxy.Serialize(memoryStream, instance.KillLimit); ByteProxy.Serialize(memoryStream, instance.LevelMax); ByteProxy.Serialize(memoryStream, instance.LevelMin); Int32Proxy.Serialize(memoryStream, instance.MapID); if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 2; } Int32Proxy.Serialize(memoryStream, instance.Number); Int32Proxy.Serialize(memoryStream, instance.PlayerLimit); if (instance.Server != null) { ConnectionAddressProxy.Serialize(memoryStream, instance.Server); } else { num |= 4; } Int32Proxy.Serialize(memoryStream, instance.TimeLimit); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001105 RID: 4357 RVA: 0x0001A5BC File Offset: 0x000187BC public static void Serialize(Stream stream, MemberAuthenticationResultView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.AuthToken != null) { StringProxy.Serialize(memoryStream, instance.AuthToken); } else { num |= 1; } BooleanProxy.Serialize(memoryStream, instance.IsAccountComplete); if (instance.LuckyDraw != null) { LuckyDrawUnityViewProxy.Serialize(memoryStream, instance.LuckyDraw); } else { num |= 2; } EnumProxy <MemberAuthenticationResult> .Serialize(memoryStream, instance.MemberAuthenticationResult); if (instance.MemberView != null) { MemberViewProxy.Serialize(memoryStream, instance.MemberView); } else { num |= 4; } if (instance.PlayerStatisticsView != null) { PlayerStatisticsViewProxy.Serialize(memoryStream, instance.PlayerStatisticsView); } else { num |= 8; } DateTimeProxy.Serialize(memoryStream, instance.ServerTime); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010F1 RID: 4337 RVA: 0x00019228 File Offset: 0x00017428 public static void Serialize(Stream stream, ItemAssetBundleView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.Url != null) { StringProxy.Serialize(memoryStream, instance.Url); } else { num |= 1; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010D7 RID: 4311 RVA: 0x00017EDC File Offset: 0x000160DC public static void Serialize(Stream stream, AuthenticateApplicationView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.CommServer != null) { PhotonViewProxy.Serialize(memoryStream, instance.CommServer); } else { num |= 1; } if (instance.EncryptionInitVector != null) { StringProxy.Serialize(memoryStream, instance.EncryptionInitVector); } else { num |= 2; } if (instance.EncryptionPassPhrase != null) { StringProxy.Serialize(memoryStream, instance.EncryptionPassPhrase); } else { num |= 4; } if (instance.GameServers != null) { ListProxy <PhotonView> .Serialize(memoryStream, instance.GameServers, new ListProxy <PhotonView> .Serializer <PhotonView>(PhotonViewProxy.Serialize)); } else { num |= 8; } BooleanProxy.Serialize(memoryStream, instance.IsEnabled); BooleanProxy.Serialize(memoryStream, instance.WarnPlayer); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010AD RID: 4269 RVA: 0x00015794 File Offset: 0x00013994 public static void Serialize(Stream stream, CommActorInfoDelta instance) { if (instance != null) { Int32Proxy.Serialize(stream, instance.DeltaMask); ByteProxy.Serialize(stream, instance.Id); if ((instance.DeltaMask & 1) != 0) { EnumProxy <MemberAccessLevel> .Serialize(stream, (MemberAccessLevel)((int)instance.Changes[CommActorInfoDelta.Keys.AccessLevel])); } if ((instance.DeltaMask & 2) != 0) { EnumProxy <ChannelType> .Serialize(stream, (ChannelType)((int)instance.Changes[CommActorInfoDelta.Keys.Channel])); } if ((instance.DeltaMask & 4) != 0) { StringProxy.Serialize(stream, (string)instance.Changes[CommActorInfoDelta.Keys.ClanTag]); } if ((instance.DeltaMask & 8) != 0) { Int32Proxy.Serialize(stream, (int)instance.Changes[CommActorInfoDelta.Keys.Cmid]); } if ((instance.DeltaMask & 16) != 0) { GameRoomProxy.Serialize(stream, (GameRoom)instance.Changes[CommActorInfoDelta.Keys.CurrentRoom]); } if ((instance.DeltaMask & 32) != 0) { ByteProxy.Serialize(stream, (byte)instance.Changes[CommActorInfoDelta.Keys.ModerationFlag]); } if ((instance.DeltaMask & 64) != 0) { StringProxy.Serialize(stream, (string)instance.Changes[CommActorInfoDelta.Keys.ModInformation]); } if ((instance.DeltaMask & 128) != 0) { StringProxy.Serialize(stream, (string)instance.Changes[CommActorInfoDelta.Keys.PlayerName]); } } else { Int32Proxy.Serialize(stream, 0); } }
// Token: 0x0600105F RID: 4191 RVA: 0x00014138 File Offset: 0x00012338 public static void Serialize(Stream stream, MemberSessionDataView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { EnumProxy <MemberAccessLevel> .Serialize(memoryStream, instance.AccessLevel); if (instance.AuthToken != null) { StringProxy.Serialize(memoryStream, instance.AuthToken); } else { num |= 1; } EnumProxy <ChannelType> .Serialize(memoryStream, instance.Channel); if (instance.ClanTag != null) { StringProxy.Serialize(memoryStream, instance.ClanTag); } else { num |= 2; } Int32Proxy.Serialize(memoryStream, instance.Cmid); BooleanProxy.Serialize(memoryStream, instance.IsBanned); Int32Proxy.Serialize(memoryStream, instance.Level); DateTimeProxy.Serialize(memoryStream, instance.LoginDate); if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 4; } Int32Proxy.Serialize(memoryStream, instance.XP); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010ED RID: 4333 RVA: 0x00019094 File Offset: 0x00017294 public static void Serialize(Stream stream, PlayerXPEventView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.PlayerXPEventId); DecimalProxy.Serialize(memoryStream, instance.XPMultiplier); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x06001075 RID: 4213 RVA: 0x00014E8C File Offset: 0x0001308C public static void Serialize(Stream stream, PublicProfileView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { EnumProxy <MemberAccessLevel> .Serialize(memoryStream, instance.AccessLevel); Int32Proxy.Serialize(memoryStream, instance.Cmid); EnumProxy <EmailAddressStatus> .Serialize(memoryStream, instance.EmailAddressStatus); if (instance.FacebookId != null) { StringProxy.Serialize(memoryStream, instance.FacebookId); } else { num |= 1; } if (instance.GroupTag != null) { StringProxy.Serialize(memoryStream, instance.GroupTag); } else { num |= 2; } BooleanProxy.Serialize(memoryStream, instance.IsChatDisabled); DateTimeProxy.Serialize(memoryStream, instance.LastLoginDate); if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 4; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x060010E3 RID: 4323 RVA: 0x000187E4 File Offset: 0x000169E4 public static void Serialize(Stream stream, PlayerCardView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.Cmid); Int64Proxy.Serialize(memoryStream, instance.Hits); if (instance.Name != null) { StringProxy.Serialize(memoryStream, instance.Name); } else { num |= 1; } if (instance.Precision != null) { StringProxy.Serialize(memoryStream, instance.Precision); } else { num |= 2; } Int32Proxy.Serialize(memoryStream, instance.Ranking); Int64Proxy.Serialize(memoryStream, instance.Shots); Int32Proxy.Serialize(memoryStream, instance.Splats); Int32Proxy.Serialize(memoryStream, instance.Splatted); if (instance.TagName != null) { StringProxy.Serialize(memoryStream, instance.TagName); } else { num |= 4; } Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x0600105B RID: 4187 RVA: 0x00013EF8 File Offset: 0x000120F8 public static void Serialize(Stream stream, MemberPositionUpdateView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { if (instance.AuthToken != null) { StringProxy.Serialize(memoryStream, instance.AuthToken); } else { num |= 1; } Int32Proxy.Serialize(memoryStream, instance.GroupId); Int32Proxy.Serialize(memoryStream, instance.MemberCmid); EnumProxy <GroupPosition> .Serialize(memoryStream, instance.Position); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }
// Token: 0x0600105D RID: 4189 RVA: 0x00013FD8 File Offset: 0x000121D8 public static void Serialize(Stream stream, MemberReportView instance) { int num = 0; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.ApplicationId); if (instance.Context != null) { StringProxy.Serialize(memoryStream, instance.Context); } else { num |= 1; } if (instance.IP != null) { StringProxy.Serialize(memoryStream, instance.IP); } else { num |= 2; } if (instance.Reason != null) { StringProxy.Serialize(memoryStream, instance.Reason); } else { num |= 4; } EnumProxy <MemberReportType> .Serialize(memoryStream, instance.ReportType); Int32Proxy.Serialize(memoryStream, instance.SourceCmid); Int32Proxy.Serialize(memoryStream, instance.TargetCmid); Int32Proxy.Serialize(stream, ~num); memoryStream.WriteTo(stream); } }