Esempio n. 1
0
        public void ExitAfterBan()
        {
            SessionManager        sessionManager        = Service.Get <SessionManager>();
            ZoneTransitionService zoneTransitionService = Service.Get <ZoneTransitionService>();

            dataEntityCollection.ClearZoneScope();
            sessionManager.DisposeSession();
            GoOffline();
            if (zoneTransitionService.IsTransitioning || zoneTransitionService.IsConnecting)
            {
                Service.Get <ZoneTransitionService>().CancelTransition(SceneConfig.HomeSceneName);
                gameStateMachine.SendEvent(DefaultEvent);
            }
            else
            {
                Service.Get <LoadingController>().ClearAllLoadingSystems();
                ReturnToHome();
            }
        }
Esempio n. 2
0
    private void returnToPreviousScene()
    {
        isCancelledSceneTransitionRequested = false;
        PresenceData component = dataEntityCollection.GetComponent <PresenceData>(dataEntityCollection.LocalPlayerHandle);

        dataEntityCollection.ClearZoneScope();
        Service.Get <GameStateController>().GoOffline();
        Service.Get <LoadingController>().ClearAllLoadingSystems();
        if (component.IsInInstancedRoom)
        {
            LoadIgloo(component.InstanceRoom, Service.Get <Localizer>().Language, SceneStateData.SceneState.Play, Service.Get <GameStateController>().SceneConfig.TransitionSceneName);
        }
        else
        {
            LoadZone(component.Room, Service.Get <GameStateController>().SceneConfig.TransitionSceneName, component.World);
        }
        Service.Get <GameStateController>().TriggerZoneConnectingEvent();
    }
Esempio n. 3
0
 private void clearData()
 {
     dataEntityCollection.ClearZoneScope();
 }