Deprecate NomaiTextBuilder class

This commit is contained in:
Nick 2023-03-04 18:04:54 -05:00
parent 8481dd8021
commit 20532b83ac
3 changed files with 8 additions and 2 deletions

View File

@ -2,21 +2,22 @@ using NewHorizons.External.Modules;
using NewHorizons.Handlers;
using NewHorizons.Utility;
using OWML.Common;
using OWML.Utils;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml;
using UnityEngine;
using Enum = System.Enum;
using Logger = NewHorizons.Utility.Logger;
using Random = UnityEngine.Random;
using OWML.Utils;
namespace NewHorizons.Builder.Props
{
/// <summary>
/// Legacy - this class is used with the deprecated "nomaiText" module (deprecated on release of autospirals)
/// </summary>
[Obsolete]
public static class NomaiTextBuilder
{
private static List<GameObject> _arcPrefabs;

View File

@ -126,6 +126,7 @@ namespace NewHorizons.Builder.Props
}
}
}
// Backwards compatibility
#pragma warning disable 612, 618
if (config.Props.nomaiText != null)
{

View File

@ -274,7 +274,11 @@ namespace NewHorizons
GeometryBuilder.InitPrefab();
GeyserBuilder.InitPrefab();
LavaBuilder.InitPrefabs();
// Backwards compat
#pragma warning disable 612, 618
NomaiTextBuilder.InitPrefabs();
#pragma warning restore 612, 618
TranslatorTextBuilder.InitPrefabs();
RemoteBuilder.InitPrefabs();
SandBuilder.InitPrefabs();