Ejemplo n.º 1
0
 private bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
 {
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Begin)
     {
         fullScreenChatDataList.Clear();
     }
     return(false);
 }
Ejemplo n.º 2
0
 private bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
 {
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Begin)
     {
         userIdToPropUser.Clear();
         removePropsForZoneTransition();
     }
     return(false);
 }
 private bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
 {
     if (!base.IsInHandledState)
     {
         return(false);
     }
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Begin)
     {
         rootStateMachine.SendEvent(gameStateController.ZoneConnectingEvent);
     }
     return(false);
 }
 private bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
 {
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Begin)
     {
         ClearZoneScope();
         if (evt.FromZone != evt.ToZone && TryGetComponent(LocalPlayerHandle, out PausedStateData _))
         {
             RemoveComponent <PausedStateData>(LocalPlayerHandle);
         }
     }
     return(false);
 }
 private bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
 {
     if (!base.IsInHandledState)
     {
         return(false);
     }
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Done)
     {
         Quest quest = Service.Get <QuestService>().GetQuest(gameStateController.FTUEConfig.FtueQuestId);
         Service.Get <EventDispatcher>().DispatchEvent(new QuestEvents.StartQuest(quest));
         quest.SetOffline();
         quest.Activate();
     }
     return(false);
 }
 private bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
 {
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Begin)
     {
         isZoneTransitioning = true;
         if (isPlayingLoseMusic)
         {
             EventManager.Instance.PostEvent(MusicEventName, EventAction.StopSound, LoseMusicName, createCoMusicTarget);
         }
         if (isPlayingLoseSFXTrigger)
         {
             EventManager.Instance.PostEvent(LoseSFXTrigger, EventAction.StopSound, base.gameObject);
         }
     }
     return(false);
 }
Ejemplo n.º 7
0
    private bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
    {
        switch (evt.State)
        {
        case ZoneTransitionEvents.ZoneTransition.States.Begin:
        case ZoneTransitionEvents.ZoneTransition.States.Request:
            logTime();
            break;

        case ZoneTransitionEvents.ZoneTransition.States.Done:
            logTime();
            Service.Get <EventDispatcher>().RemoveListener <ZoneTransitionEvents.ZoneTransition>(onZoneTransition);
            Service.Get <CoroutineRunner>().StartCoroutine(checkForLoadingComplete());
            break;
        }
        return(false);
    }
Ejemplo n.º 8
0
 private bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
 {
     if (!base.IsInHandledState)
     {
         return(false);
     }
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Done)
     {
         isSceneLoaded = true;
         prepareToSpawnIfReady();
     }
     else if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Cancel)
     {
         Service.Get <ICPSwrveService>().EndTimer("join_room_ready_to_waddle", null, "failure");
     }
     return(false);
 }
 protected bool onZoneTransition(ZoneTransitionEvents.ZoneTransition evt)
 {
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Begin)
     {
         IsBeginRecieved = true;
         IntegrationTestEx.FailIf(IsRequestReceived, "Request State recieved before a Begin State");
         IntegrationTestEx.FailIf(IsDoneReceived, "Done State recieved before a Begin State");
     }
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Request)
     {
         IsRequestReceived = true;
         IntegrationTestEx.FailIf(!IsBeginRecieved, "Begin State NOT recieved before a Request State");
         IntegrationTestEx.FailIf(IsDoneReceived, "Done State recieved before a Request State");
     }
     if (evt.State == ZoneTransitionEvents.ZoneTransition.States.Done)
     {
         IsDoneReceived = true;
         IntegrationTestEx.FailIf(!IsBeginRecieved, "Begin State NOT recieved before a Done State");
         IntegrationTestEx.FailIf(!IsRequestReceived, "Request State NOT recieved before a Done State");
     }
     return(false);
 }