mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add an API method for setting spawn ID
This commit is contained in:
parent
4a80fa7076
commit
ab2bf1118a
@ -214,5 +214,12 @@ namespace NewHorizons
|
|||||||
/// <param name="mod"></param>
|
/// <param name="mod"></param>
|
||||||
/// <param name="filePath"></param>
|
/// <param name="filePath"></param>
|
||||||
void AddSubtitle(IModBehaviour mod, string filePath);
|
void AddSubtitle(IModBehaviour mod, string filePath);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whatever system the player is warping to next, they will spawn at the spawn point with this ID
|
||||||
|
/// Gets reset after warping. Is also overriden by entering a system-changing black hole or warp volume by their `spawnPointID`
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
void SetNextSpawnID(string id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -342,5 +342,7 @@ namespace NewHorizons
|
|||||||
public string GetTranslationForOtherText(string text) => TranslationHandler.GetTranslation(text, TranslationHandler.TextType.OTHER);
|
public string GetTranslationForOtherText(string text) => TranslationHandler.GetTranslation(text, TranslationHandler.TextType.OTHER);
|
||||||
|
|
||||||
public void AddSubtitle(IModBehaviour mod, string filePath) => SubtitlesHandler.RegisterAdditionalSubtitle(mod, filePath);
|
public void AddSubtitle(IModBehaviour mod, string filePath) => SubtitlesHandler.RegisterAdditionalSubtitle(mod, filePath);
|
||||||
|
|
||||||
|
public void SetNextSpawnID(string id) => PlayerSpawnHandler.TargetSpawnID = id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user