Example #1
0
        public static bool GoToHomeState(TransitionCompleteDelegate onComplete, bool zoom)
        {
            Service.DeployerController.ExitAllDeployModes();
            Service.PvpManager.KillTimer();
            if (zoom)
            {
                PlanetView view = Service.WorldInitializer.View;
                view.ZoomOutImmediate();
                view.ZoomIn();
            }
            HomeState homeState = new HomeState();
            bool      result    = homeState.Setup(onComplete);

            Service.AssetManager.UnloadPreloadables();
            return(result);
        }
 private void Done()
 {
     Service.Get <EventManager>().UnregisterObserver(this, EventId.IntroComplete);
     if (this.animation != null)
     {
         this.animation = null;
         Service.Get <UXController>().Intro = null;
         Service.Get <UXController>().HUD.ConfigureControls(new HudConfig(new string[0]));
         Service.Get <UXController>().HUD.Visible = true;
         if (Service.Get <CurrentPlayer>().HasNotCompletedFirstFueStep() && GameConstants.START_FUE_IN_BATTLE_MODE)
         {
             Service.Get <GameStateMachine>().SetState(new FueBattleStartState(GameConstants.FUE_BATTLE));
             Service.Get <BattleController>().PrepareWorldForBattle();
             return;
         }
         GameServicesManager.OnReady();
         HomeState.GoToHomeState(null, true);
     }
 }
Example #3
0
 public unsafe static long $Invoke3(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(HomeState.GoToHomeStateAndReloadMap()));
 }
Example #4
0
 public unsafe static long $Invoke2(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(HomeState.GoToHomeState((TransitionCompleteDelegate)GCHandledObjects.GCHandleToObject(*args), *(sbyte *)(args + 1) != 0)));
 }