private bool onEquipmentCreationError(InventoryServiceErrors.EquipmentCreationError evt) { serviceEventChannel.RemoveListener <InventoryServiceEvents.EquipmentCreated>(onEquipmentCreated); serviceEventChannel.RemoveListener <InventoryServiceErrors.EquipmentCreationError>(onEquipmentCreationError); CustomizationContext.EventBus.DispatchEvent(default(CustomizerUIEvents.SaveClothingItemError)); return(false); }
private bool onLayoutUpdated(IglooServiceEvents.IglooLayoutUpdated evt) { eventChannel.RemoveListener <IglooServiceEvents.IglooLayoutUpdated>(onLayoutUpdated); savedSceneLayout = evt.SavedSceneLayout; successCount++; checkStatus(); return(false); }
private bool onThemesRetrieved(CatalogServiceProxyEvents.ChallengesReponse evt) { eventChannel.RemoveListener <CatalogServiceProxyEvents.ChallengesReponse>(onThemesRetrieved); eventChannel.RemoveListener <WorldServiceEvents.SelfRoomJoinedEvent>(onRoomJoined); if (evt.Themes.Count > 0) { CurrentThemeData currentThemeData = evt.Themes[0]; CatalogThemeDefinition themeByScheduelId = Service.Get <CatalogServiceProxy>().GetThemeByScheduelId(currentThemeData.scheduledThemeChallengeId); TaskDefinition clothingCatalogChallenge = Service.Get <TaskService>().ClothingCatalogChallenge; clothingCatalogChallenge.Title = themeByScheduelId.Title; clothingCatalogChallenge.CompletionMessage = themeByScheduelId.CompleteMessage; clothingCatalogChallenge.Description = themeByScheduelId.Description; } return(false); }
private bool onHideLoadingScreen(CellPhoneEvents.HideLoadingScreen evt) { eventChannel.RemoveListener <CellPhoneEvents.HideLoadingScreen>(onHideLoadingScreen); if (cellPhoneAnim != null && cellPhoneAnim.activeSelf) { hideAnim(destroy: false); } isCellPhoneOpenOrOpening = false; return(false); }
private bool onLocalPlayerSpawned(PlayerSpawnedEvents.LocalPlayerSpawned evt) { dataEntityCollection.TryGetComponent <SubscriptionData>(dataEntityCollection.LocalPlayerHandle, out var component); if (component.SubscriptionPaymentPending) { subscriptionVendor = component.SubscriptionVendor; showMembershipExpiringPrompt(); eventChannel.RemoveListener <PlayerSpawnedEvents.LocalPlayerSpawned>(onLocalPlayerSpawned); } return(false); }
private bool onQuestUpdated(QuestEvents.QuestUpdated evt) { if (evt.Quest.Id == "AAC001Q001LeakyShip" && evt.Quest.State == Quest.QuestState.Completed) { eventChannel.RemoveListener <QuestEvents.QuestUpdated>(onQuestUpdated); PlatformObject.SetActive(value: true); BuoyObject.SetActive(value: true); HelpSign.SetActive(value: true); syncGameState(); } return(false); }
private bool onFindUserSent(FriendsServiceEvents.FindUserSent evt) { eventChannel.RemoveListener <FriendsServiceEvents.FindUserSent>(onFindUserSent); if (evt.Success) { onFindUserSuccess(); } else { onFindUserFailed(); } return(false); }
private bool onIglooCreated(IglooServiceEvents.IglooLayoutCreated evt) { eventChannel.RemoveListener <IglooServiceEvents.IglooLayoutCreated>(onIglooCreated); foreach (SavedIglooMetaData savedIgloo in savedIgloosMetaData.SavedIgloos) { if (savedIgloo.LayoutId == evt.SavedSceneLayout.layoutId) { layoutManager.UpdateActiveLayoutFromData(evt.SavedSceneLayout.layoutId, evt.SavedSceneLayout); break; } } createCallback.InvokeSafe(arg1: true, LayoutManager.GetActiveSceneLayoutData()); createCallback = null; return(false); }
private bool onLocalPlayerSpawned(PlayerSpawnedEvents.LocalPlayerSpawned evt) { eventChannel.RemoveListener <PlayerSpawnedEvents.LocalPlayerSpawned>(onLocalPlayerSpawned); Initialize(); return(false); }
protected virtual void OnDisable() { eventChannel.RemoveListener <ChatEvents.EmoteSelected>(onEmoteSelectedListener); eventChannel.RemoveListener <ChatEvents.ChatBackSpace>(onBackSpacePressed); }
private bool onLocalPlayerSpawned(PlayerSpawnedEvents.LocalPlayerSpawned evt) { eventChannel.RemoveListener <PlayerSpawnedEvents.LocalPlayerSpawned>(onLocalPlayerSpawned); checkFTUEState(); return(false); }