Пример #1
0
 // public static EventData<FromToAction<GameScenes, GameScenes>> onGameSceneSwitchRequested;
 void onGameSceneSwitchRequested(GameEvents.FromToAction <GameScenes, GameScenes> fromtoaction)
 {
     Log.Info("KRASHShelter OnSceneLoadRequested");
     //[KSPScenario(ScenarioCreationOptions.AddToNewGames, new[] { GameScenes.FLIGHT, GameScenes.TRACKSTATION, GameScenes.SPACECENTER })]
     if ((GameScenes)fromtoaction.from == GameScenes.FLIGHT || (GameScenes)fromtoaction.from == GameScenes.TRACKSTATION || (GameScenes)fromtoaction.from == GameScenes.SPACECENTER)
     {
         KRASHPersistent.initialize();
         Log.Info("OnSceneLoadRequested for " + ((GameScenes)fromtoaction.from).ToString());
     }
     else
     {
         Log.Info("No call at onGameSceneSwitchRequested for " + ((GameScenes)fromtoaction.from).ToString());
     }
 }
Пример #2
0
 //void RotateGizmoSpawnedSpawned(AltimeterSliderButtons asb) {
 //	Log.Info ("RotateGizmoSpawnedSpawned");
 //}
 void CallbackLevelWasLoaded(GameScenes scene)
 {
     Log.Info("KRASHShelter CallbackLevelWasLoaded");
     //[KSPScenario(ScenarioCreationOptions.AddToNewGames, new[] { GameScenes.FLIGHT, GameScenes.TRACKSTATION, GameScenes.SPACECENTER })]
     if (scene == GameScenes.FLIGHT || scene == GameScenes.TRACKSTATION || scene == GameScenes.SPACECENTER)
     {
         KRASHPersistent.initialize();
         Log.Info("CallbackLevelWasLoaded loaded for " + scene.ToString());
     }
     else
     {
         Log.Info("No call at CallbackLevelWasLoaded for " + scene.ToString());
     }
 }