Ejemplo n.º 1
0
 private void OnVesselLoad(Vessel vessel)
 {
     if (vessel.mainBody == _body)
     {
         OnDemandStorage.EnableBodyBiomeMaps(_body.transform.name);
     }
     else
     {
         OnDemandStorage.DisableBodyBiomeMaps(_body.transform.name);
     }
 }
Ejemplo n.º 2
0
 private void OnGameSceneLoadRequested(GameScenes scene)
 {
     if (scene == GameScenes.TRACKSTATION)
     {
         OnDemandStorage.EnableBodyBiomeMaps(_body.transform.name);
     }
     else
     {
         OnDemandStorage.DisableBodyBiomeMaps(_body.transform.name);
     }
 }
Ejemplo n.º 3
0
        private void OnVesselSOIChanged(GameEvents.HostedFromToAction <Vessel, CelestialBody> action)
        {
            if (action.from.transform.name == _body.transform.name)
            {
                OnDemandStorage.DisableBodyBiomeMaps(_body.transform.name);
            }

            if (action.to.transform.name == _body.transform.name)
            {
                OnDemandStorage.EnableBodyBiomeMaps(_body.transform.name);
            }
        }
Ejemplo n.º 4
0
 private void OnMapEntered()
 {
     OnDemandStorage.EnableBodyBiomeMaps(_body.transform.name);
 }