added getters for arcPrefabs

This commit is contained in:
FreezeDriedMangoes 2022-06-19 10:45:47 -04:00
parent 01fe2ffb24
commit 478805835f
2 changed files with 9 additions and 6 deletions

View File

@ -12,9 +12,9 @@ namespace NewHorizons.Builder.Props
{
public static class NomaiTextBuilder
{
internal static List<GameObject> _arcPrefabs;
internal static List<GameObject> _childArcPrefabs;
internal static List<GameObject> _ghostArcPrefabs;
private static List<GameObject> _arcPrefabs;
private static List<GameObject> _childArcPrefabs;
private static List<GameObject> _ghostArcPrefabs;
private static GameObject _scrollPrefab;
private static GameObject _computerPrefab;
private static GameObject _cairnPrefab;
@ -36,6 +36,9 @@ namespace NewHorizons.Builder.Props
return conversationInfoToCorrespondingSpawnedGameObject[convo];
}
public static List<GameObject> GetArcPrefabs() { return _arcPrefabs; }
public static List<GameObject> GetChildArcPrefabs() { return _childArcPrefabs; }
public static List<GameObject> GetGhostArcPrefabs() { return _ghostArcPrefabs; }
private static void InitPrefabs()
{

View File

@ -465,10 +465,10 @@ namespace NewHorizons.Utility.DebugMenu
{
switch(type)
{
case NomaiTextArcInfo.NomaiTextArcType.Stranger: return NomaiTextBuilder._ghostArcPrefabs.Count();
case NomaiTextArcInfo.NomaiTextArcType.Child: return NomaiTextBuilder._childArcPrefabs.Count();
case NomaiTextArcInfo.NomaiTextArcType.Stranger: return NomaiTextBuilder.GetGhostArcPrefabs().Count();
case NomaiTextArcInfo.NomaiTextArcType.Child: return NomaiTextBuilder.GetChildArcPrefabs().Count();
default:
case NomaiTextArcInfo.NomaiTextArcType.Adult: return NomaiTextBuilder._arcPrefabs.Count();
case NomaiTextArcInfo.NomaiTextArcType.Adult: return NomaiTextBuilder.GetArcPrefabs().Count();
}
return 0;
}