public static LuckyDrawUnityView Deserialize(Stream bytes) { var mask = Int32Proxy.Deserialize(bytes); var view = new LuckyDrawUnityView(); view.Category = EnumProxy <BundleCategoryType> .Deserialize(bytes); if ((mask & 1) != 0) { view.Description = StringProxy.Deserialize(bytes); } if ((mask & 2) != 0) { view.IconUrl = StringProxy.Deserialize(bytes); } view.Id = Int32Proxy.Deserialize(bytes); view.IsAvailableInShop = BooleanProxy.Deserialize(bytes); if ((mask & 4) != 0) { view.LuckyDrawSets = ListProxy <LuckyDrawSetUnityView> .Deserialize(bytes, LuckyDrawSetUnityViewProxy.Deserialize); } if ((mask & 8) != 0) { view.Name = StringProxy.Deserialize(bytes); } view.Price = Int32Proxy.Deserialize(bytes); view.UberStrikeCurrencyType = EnumProxy <UberStrikeCurrencyType> .Deserialize(bytes); return(view); }
public static LuckyDrawSetUnityView Deserialize(Stream bytes) { var mask = Int32Proxy.Deserialize(bytes); var view = new LuckyDrawSetUnityView(); view.CreditsAttributed = Int32Proxy.Deserialize(bytes); view.ExposeItemsToPlayers = BooleanProxy.Deserialize(bytes); view.Id = Int32Proxy.Deserialize(bytes); if ((mask & 1) != 0) { view.ImageUrl = StringProxy.Deserialize(bytes); } view.LuckyDrawId = Int32Proxy.Deserialize(bytes); if ((mask & 2) != 0) { view.LuckyDrawSetItems = ListProxy <BundleItemView> .Deserialize(bytes, BundleItemViewProxy.Deserialize); } view.PointsAttributed = Int32Proxy.Deserialize(bytes); view.SetWeight = Int32Proxy.Deserialize(bytes); return(view); }
public static AuthenticateApplicationView Deserialize(Stream bytes) { var mask = Int32Proxy.Deserialize(bytes); var view = new AuthenticateApplicationView(); if ((mask & 1) != 0) { view.CommServer = PhotonViewProxy.Deserialize(bytes); } if ((mask & 2) != 0) { view.EncryptionInitVector = StringProxy.Deserialize(bytes); } if ((mask & 4) != 0) { view.EncryptionPassPhrase = StringProxy.Deserialize(bytes); } if ((mask & 8) != 0) { view.GameServers = ListProxy <PhotonView> .Deserialize(bytes, PhotonViewProxy.Deserialize); } view.IsEnabled = BooleanProxy.Deserialize(bytes); view.WarnPlayer = BooleanProxy.Deserialize(bytes); return(view); }
public static MemberAuthenticationResultView Deserialize(Stream bytes) { int mask = Int32Proxy.Deserialize(bytes); var view = new MemberAuthenticationResultView(); if ((mask & 1) != 0) { view.AuthToken = StringProxy.Deserialize(bytes); } view.IsAccountComplete = BooleanProxy.Deserialize(bytes); if ((mask & 2) != 0) { view.LuckyDraw = LuckyDrawUnityViewProxy.Deserialize(bytes); } view.MemberAuthenticationResult = EnumProxy <MemberAuthenticationResult> .Deserialize(bytes); if ((mask & 4) != 0) { view.MemberView = MemberViewProxy.Deserialize(bytes); } if ((mask & 8) != 0) { view.PlayerStatisticsView = PlayerStatisticsViewProxy.Deserialize(bytes); } view.ServerTime = DateTimeProxy.Deserialize(bytes); return(view); }
public static MapView Deserialize(Stream bytes) { var mask = Int32Proxy.Deserialize(bytes); var view = new MapView(); if ((mask & 1) != 0) { view.Description = StringProxy.Deserialize(bytes); } if ((mask & 2) != 0) { view.DisplayName = StringProxy.Deserialize(bytes); } view.IsBlueBox = BooleanProxy.Deserialize(bytes); view.MapId = Int32Proxy.Deserialize(bytes); view.MaxPlayers = Int32Proxy.Deserialize(bytes); view.RecommendedItemId = Int32Proxy.Deserialize(bytes); if ((mask & 4) != 0) { view.SceneName = StringProxy.Deserialize(bytes); } if ((mask & 8) != 0) { view.Settings = DictionaryProxy <GameModeType, MapSettingsView> .Deserialize(bytes, EnumProxy <GameModeType> .Deserialize, MapSettingsViewProxy.Deserialize); } view.SupportedGameModes = Int32Proxy.Deserialize(bytes); view.SupportedItemClass = Int32Proxy.Deserialize(bytes); return(view); }
public static PublicProfileView Deserialize(Stream bytes) { var mask = Int32Proxy.Deserialize(bytes); var view = new PublicProfileView(); view.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes); view.Cmid = Int32Proxy.Deserialize(bytes); view.EmailAddressStatus = EnumProxy <EmailAddressStatus> .Deserialize(bytes); if ((mask & 1) != 0) { view.FacebookId = StringProxy.Deserialize(bytes); } if ((mask & 2) != 0) { view.GroupTag = StringProxy.Deserialize(bytes); } view.IsChatDisabled = BooleanProxy.Deserialize(bytes); view.LastLoginDate = DateTimeProxy.Deserialize(bytes); if ((mask & 4) != 0) { view.Name = StringProxy.Deserialize(bytes); } return(view); }
// Token: 0x060012AD RID: 4781 RVA: 0x0001FAAC File Offset: 0x0001DCAC private void ModerationMutePlayer(byte[] _bytes) { using (MemoryStream memoryStream = new MemoryStream(_bytes)) { bool isPlayerMuted = BooleanProxy.Deserialize(memoryStream); this.OnModerationMutePlayer(isPlayerMuted); } }
private void ModerationMutePlayer(CommPeer peer, MemoryStream bytes) { var durationInMinutes = Int32Proxy.Deserialize(bytes); var mutedCmid = Int32Proxy.Deserialize(bytes); var disableChat = BooleanProxy.Deserialize(bytes); OnModerationMutePlayer(peer, durationInMinutes, mutedCmid, disableChat); }
// Token: 0x0600129D RID: 4765 RVA: 0x0001F5F8 File Offset: 0x0001D7F8 private void PlayerLeft(byte[] _bytes) { using (MemoryStream memoryStream = new MemoryStream(_bytes)) { int cmid = Int32Proxy.Deserialize(memoryStream); bool refreshComm = BooleanProxy.Deserialize(memoryStream); this.OnPlayerLeft(cmid, refreshComm); } }
// Token: 0x06001347 RID: 4935 RVA: 0x00022090 File Offset: 0x00020290 private void RemoveProjectile(byte[] _bytes) { using (MemoryStream memoryStream = new MemoryStream(_bytes)) { int projectileId = Int32Proxy.Deserialize(memoryStream); bool explode = BooleanProxy.Deserialize(memoryStream); this.OnRemoveProjectile(projectileId, explode); } }
// Token: 0x06001344 RID: 4932 RVA: 0x00021FA0 File Offset: 0x000201A0 private void QuickItemEvent(byte[] _bytes) { using (MemoryStream memoryStream = new MemoryStream(_bytes)) { int cmid = Int32Proxy.Deserialize(memoryStream); byte eventType = ByteProxy.Deserialize(memoryStream); int robotLifeTime = Int32Proxy.Deserialize(memoryStream); int scrapsLifeTime = Int32Proxy.Deserialize(memoryStream); bool isInstant = BooleanProxy.Deserialize(memoryStream); this.OnQuickItemEvent(cmid, eventType, robotLifeTime, scrapsLifeTime, isInstant); } }
public static UberStrikeItemQuickView Deserialize(Stream bytes) { int mask = Int32Proxy.Deserialize(bytes); var view = new UberStrikeItemQuickView(); view.BehaviourType = EnumProxy <QuickItemLogic> .Deserialize(bytes); view.CoolDownTime = Int32Proxy.Deserialize(bytes); if ((mask & 1) != 0) { view.CustomProperties = DictionaryProxy <string, string> .Deserialize(bytes, StringProxy.Deserialize, StringProxy.Deserialize); } if ((mask & 2) != 0) { view.Description = StringProxy.Deserialize(bytes); } view.ID = Int32Proxy.Deserialize(bytes); view.IsConsumable = BooleanProxy.Deserialize(bytes); view.ItemClass = EnumProxy <UberStrikeItemClass> .Deserialize(bytes); if ((mask & 4) != 0) { view.ItemProperties = DictionaryProxy <ItemPropertyType, int> .Deserialize(bytes, EnumProxy <ItemPropertyType> .Deserialize, Int32Proxy.Deserialize); } view.LevelLock = Int32Proxy.Deserialize(bytes); view.MaxDurationDays = Int32Proxy.Deserialize(bytes); view.MaxOwnableAmount = Int32Proxy.Deserialize(bytes); if ((mask & 8) != 0) { view.Name = StringProxy.Deserialize(bytes); } if ((mask & 16) != 0) { view.PrefabName = StringProxy.Deserialize(bytes); } if ((mask & 32) != 0) { view.Prices = ListProxy <ItemPriceView> .Deserialize(bytes, ItemPriceViewProxy.Deserialize); } view.ShopHighlightType = EnumProxy <ItemShopHighlightType> .Deserialize(bytes); view.UsesPerGame = Int32Proxy.Deserialize(bytes); view.UsesPerLife = Int32Proxy.Deserialize(bytes); view.UsesPerRound = Int32Proxy.Deserialize(bytes); view.WarmUpTime = Int32Proxy.Deserialize(bytes); return(view); }
// Token: 0x06001348 RID: 4936 RVA: 0x000220DC File Offset: 0x000202DC private void EmitProjectile(byte[] _bytes) { using (MemoryStream memoryStream = new MemoryStream(_bytes)) { int cmid = Int32Proxy.Deserialize(memoryStream); Vector3 origin = Vector3Proxy.Deserialize(memoryStream); Vector3 direction = Vector3Proxy.Deserialize(memoryStream); byte slot = ByteProxy.Deserialize(memoryStream); int projectileID = Int32Proxy.Deserialize(memoryStream); bool explode = BooleanProxy.Deserialize(memoryStream); this.OnEmitProjectile(cmid, origin, direction, slot, projectileID, explode); } }
// Token: 0x0600134A RID: 4938 RVA: 0x000221B8 File Offset: 0x000203B8 private void ActivateQuickItem(byte[] _bytes) { using (MemoryStream memoryStream = new MemoryStream(_bytes)) { int cmid = Int32Proxy.Deserialize(memoryStream); QuickItemLogic logic = EnumProxy <QuickItemLogic> .Deserialize(memoryStream); int robotLifeTime = Int32Proxy.Deserialize(memoryStream); int scrapsLifeTime = Int32Proxy.Deserialize(memoryStream); bool isInstant = BooleanProxy.Deserialize(memoryStream); this.OnActivateQuickItem(cmid, logic, robotLifeTime, scrapsLifeTime, isInstant); } }
// Token: 0x060011C3 RID: 4547 RVA: 0x0001D5C0 File Offset: 0x0001B7C0 public static Coroutine VerifyReceipt(string hashedReceipt, Action <bool> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, hashedReceipt); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "VerifyReceipt", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(BooleanProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
// Token: 0x060011F0 RID: 4592 RVA: 0x0001DB8C File Offset: 0x0001BD8C public static Coroutine IsDuplicateMemberName(string username, Action <bool> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, username); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IUserWebServiceContract", "UserWebService", "IsDuplicateMemberName", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(BooleanProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
public static UberStrikeItemGearView Deserialize(Stream bytes) { var mask = Int32Proxy.Deserialize(bytes); var view = new UberStrikeItemGearView(); view.ArmorPoints = Int32Proxy.Deserialize(bytes); view.ArmorWeight = Int32Proxy.Deserialize(bytes); if ((mask & 1) != 0) { view.CustomProperties = DictionaryProxy <string, string> .Deserialize(bytes, StringProxy.Deserialize, StringProxy.Deserialize); } if ((mask & 2) != 0) { view.Description = StringProxy.Deserialize(bytes); } view.ID = Int32Proxy.Deserialize(bytes); view.IsConsumable = BooleanProxy.Deserialize(bytes); view.ItemClass = EnumProxy <UberStrikeItemClass> .Deserialize(bytes); if ((mask & 4) != 0) { view.ItemProperties = DictionaryProxy <ItemPropertyType, int> .Deserialize(bytes, EnumProxy <ItemPropertyType> .Deserialize, Int32Proxy.Deserialize); } view.LevelLock = Int32Proxy.Deserialize(bytes); view.MaxDurationDays = Int32Proxy.Deserialize(bytes); if ((mask & 8) != 0) { view.Name = StringProxy.Deserialize(bytes); } if ((mask & 16) != 0) { view.PrefabName = StringProxy.Deserialize(bytes); } if ((mask & 32) != 0) { view.Prices = ListProxy <ItemPriceView> .Deserialize(bytes, ItemPriceViewProxy.Deserialize); } view.ShopHighlightType = EnumProxy <ItemShopHighlightType> .Deserialize(bytes); return(view); }
// Token: 0x06001195 RID: 4501 RVA: 0x0001CAB8 File Offset: 0x0001ACB8 public static Coroutine BanPermanently(string authToken, int targetCmid, Action <bool> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, authToken); Int32Proxy.Serialize(memoryStream, targetCmid); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IModerationWebServiceContract", "ModerationWebService", "BanPermanently", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(BooleanProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
// Token: 0x0600118B RID: 4491 RVA: 0x0001C9A0 File Offset: 0x0001ABA0 public static Coroutine CheckFacebookSession(string cmuneAuthToken, string facebookIDString, Action <bool> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, cmuneAuthToken); StringProxy.Serialize(memoryStream, facebookIDString); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IFacebookWebServiceContract", "FacebookWebService", "CheckFacebookSession", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(BooleanProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
// Token: 0x060011C4 RID: 4548 RVA: 0x0001D644 File Offset: 0x0001B844 public static Coroutine UseConsumableItem(string authToken, int itemId, Action <bool> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, authToken); Int32Proxy.Serialize(memoryStream, itemId); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "UseConsumableItem", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(BooleanProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
// Token: 0x060011C0 RID: 4544 RVA: 0x0001D414 File Offset: 0x0001B614 public static Coroutine BuyBundle(string authToken, int bundleId, ChannelType channel, string hashedReceipt, Action <bool> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, authToken); Int32Proxy.Serialize(memoryStream, bundleId); EnumProxy <ChannelType> .Serialize(memoryStream, channel); StringProxy.Serialize(memoryStream, hashedReceipt); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "BuyBundle", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(BooleanProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
public static GameRoomDataView Deserialize(Stream bytes) { int mask = Int32Proxy.Deserialize(bytes); var view = new GameRoomDataView(); view.ConnectedPlayers = Int32Proxy.Deserialize(bytes); view.GameFlags = Int32Proxy.Deserialize(bytes); view.GameMode = EnumProxy <GameModeType> .Deserialize(bytes); if ((mask & 1) != 0) { view.Guid = StringProxy.Deserialize(bytes); } view.IsPasswordProtected = BooleanProxy.Deserialize(bytes); view.IsPermanentGame = BooleanProxy.Deserialize(bytes); view.KillLimit = Int32Proxy.Deserialize(bytes); view.LevelMax = ByteProxy.Deserialize(bytes); view.LevelMin = ByteProxy.Deserialize(bytes); view.MapID = Int32Proxy.Deserialize(bytes); if ((mask & 2) != 0) { view.Name = StringProxy.Deserialize(bytes); } view.Number = Int32Proxy.Deserialize(bytes); view.PlayerLimit = Int32Proxy.Deserialize(bytes); if ((mask & 4) != 0) { view.Server = ConnectionAddressViewProxy.Deserialize(bytes); } view.TimeLimit = Int32Proxy.Deserialize(bytes); return(view); }
public static UberStrikeItemWeaponView Deserialize(Stream bytes) { int mask = Int32Proxy.Deserialize(bytes); var view = new UberStrikeItemWeaponView(); view.AccuracySpread = Int32Proxy.Deserialize(bytes); view.CombatRange = Int32Proxy.Deserialize(bytes); view.CriticalStrikeBonus = Int32Proxy.Deserialize(bytes); if ((mask & 1) != 0) { view.CustomProperties = DictionaryProxy <string, string> .Deserialize(bytes, StringProxy.Deserialize, StringProxy.Deserialize); } view.DamageKnockback = Int32Proxy.Deserialize(bytes); view.DamagePerProjectile = Int32Proxy.Deserialize(bytes); view.DefaultZoomMultiplier = Int32Proxy.Deserialize(bytes); if ((mask & 2) != 0) { view.Description = StringProxy.Deserialize(bytes); } view.HasAutomaticFire = BooleanProxy.Deserialize(bytes); view.ID = Int32Proxy.Deserialize(bytes); view.IsConsumable = BooleanProxy.Deserialize(bytes); view.ItemClass = EnumProxy <UberStrikeItemClass> .Deserialize(bytes); if ((mask & 4) != 0) { view.ItemProperties = DictionaryProxy <ItemPropertyType, int> .Deserialize(bytes, EnumProxy <ItemPropertyType> .Deserialize, Int32Proxy.Deserialize); } view.LevelLock = Int32Proxy.Deserialize(bytes); view.MaxAmmo = Int32Proxy.Deserialize(bytes); view.MaxDurationDays = Int32Proxy.Deserialize(bytes); view.MaxZoomMultiplier = Int32Proxy.Deserialize(bytes); view.MinZoomMultiplier = Int32Proxy.Deserialize(bytes); view.MissileBounciness = Int32Proxy.Deserialize(bytes); view.MissileForceImpulse = Int32Proxy.Deserialize(bytes); view.MissileTimeToDetonate = Int32Proxy.Deserialize(bytes); if ((mask & 8) != 0) { view.Name = StringProxy.Deserialize(bytes); } if ((mask & 16) != 0) { view.PrefabName = StringProxy.Deserialize(bytes); } if ((mask & 32) != 0) { view.Prices = ListProxy <ItemPriceView> .Deserialize(bytes, ItemPriceViewProxy.Deserialize); } view.ProjectileSpeed = Int32Proxy.Deserialize(bytes); view.ProjectilesPerShot = Int32Proxy.Deserialize(bytes); view.RateOfFire = Int32Proxy.Deserialize(bytes); view.RecoilKickback = Int32Proxy.Deserialize(bytes); view.RecoilMovement = Int32Proxy.Deserialize(bytes); view.SecondaryActionReticle = Int32Proxy.Deserialize(bytes); view.ShopHighlightType = EnumProxy <ItemShopHighlightType> .Deserialize(bytes); view.SplashRadius = Int32Proxy.Deserialize(bytes); view.StartAmmo = Int32Proxy.Deserialize(bytes); view.Tier = Int32Proxy.Deserialize(bytes); view.WeaponSecondaryAction = Int32Proxy.Deserialize(bytes); return(view); }