mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Mark method obsolete
This commit is contained in:
parent
725ccf00cd
commit
8e0fbbb69d
@ -27,6 +27,14 @@ namespace NewHorizons.Builder.Props
|
||||
SceneManager.sceneUnloaded += SceneManager_sceneUnloaded;
|
||||
}
|
||||
|
||||
#region obsolete
|
||||
// Never change method signatures, people directly reference the NH dll and it can break backwards compatability
|
||||
// In particular, Outer Wives needs this method signature
|
||||
[Obsolete]
|
||||
public static GameObject Make(GameObject go, Sector sector, GameObject prefab, DetailInfo detail)
|
||||
=> Make(go, sector, null, prefab, detail);
|
||||
#endregion
|
||||
|
||||
private static void SceneManager_sceneUnloaded(Scene scene)
|
||||
{
|
||||
foreach (var prefab in _fixedPrefabCache.Values)
|
||||
@ -78,11 +86,6 @@ namespace NewHorizons.Builder.Props
|
||||
}
|
||||
}
|
||||
|
||||
// Never change method signatures, people directly reference the NH dll and it can break backwards compatability
|
||||
// In particular, Outer Wives needs this method signature
|
||||
public static GameObject Make(GameObject go, Sector sector, GameObject prefab, DetailInfo detail)
|
||||
=> Make(go, sector, null, prefab, detail);
|
||||
|
||||
/// <summary>
|
||||
/// Create a detail using a prefab.
|
||||
/// </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user