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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 private bool onHideLoadingScreen(CellPhoneEvents.HideLoadingScreen evt)
 {
     eventChannel.RemoveListener <CellPhoneEvents.HideLoadingScreen>(onHideLoadingScreen);
     if (cellPhoneAnim != null && cellPhoneAnim.activeSelf)
     {
         hideAnim(destroy: false);
     }
     isCellPhoneOpenOrOpening = false;
     return(false);
 }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 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);
 }
Esempio n. 7
0
 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);
 }
Esempio n. 9
0
 private bool onLocalPlayerSpawned(PlayerSpawnedEvents.LocalPlayerSpawned evt)
 {
     eventChannel.RemoveListener <PlayerSpawnedEvents.LocalPlayerSpawned>(onLocalPlayerSpawned);
     Initialize();
     return(false);
 }
Esempio n. 10
0
 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);
 }