mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add clear system api method for Nomai Sky
This commit is contained in:
parent
20158fd94a
commit
0a058ac135
@ -255,5 +255,12 @@ namespace NewHorizons
|
|||||||
/// <param name="persistentConditionRequired">Persistent condition required for this title screen to appear.</param>
|
/// <param name="persistentConditionRequired">Persistent condition required for this title screen to appear.</param>
|
||||||
/// <param name="factRequired">Ship log fact required for this title screen to appear.</param>
|
/// <param name="factRequired">Ship log fact required for this title screen to appear.</param>
|
||||||
void RegisterTitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets = true, bool shareTitleScreen = false, string persistentConditionRequired = null, string factRequired = null);
|
void RegisterTitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets = true, bool shareTitleScreen = false, string persistentConditionRequired = null, string factRequired = null);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clears all loaded configs for the given system.
|
||||||
|
/// This exists solely for Nomai Sky to use :bleh:
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="name"></param>
|
||||||
|
void ClearSystem(string name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -367,5 +367,17 @@ namespace NewHorizons
|
|||||||
|
|
||||||
public void RegisterTitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets = true, bool shareTitleScreen = false, string persistentConditionRequired = null, string factRequired = null)
|
public void RegisterTitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets = true, bool shareTitleScreen = false, string persistentConditionRequired = null, string factRequired = null)
|
||||||
=> TitleSceneHandler.RegisterBuilder(mod, builder, disableNHPlanets, shareTitleScreen, persistentConditionRequired, factRequired);
|
=> TitleSceneHandler.RegisterBuilder(mod, builder, disableNHPlanets, shareTitleScreen, persistentConditionRequired, factRequired);
|
||||||
|
|
||||||
|
public void ClearSystem(string name)
|
||||||
|
{
|
||||||
|
if (Main.SystemDict.ContainsKey(name))
|
||||||
|
{
|
||||||
|
Main.SystemDict.Remove(name);
|
||||||
|
}
|
||||||
|
if (Main.BodyDict.ContainsKey(name))
|
||||||
|
{
|
||||||
|
Main.BodyDict.Remove(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user