24 lines
718 B
C#
Raw Normal View History

2022-01-28 20:49:07 -08:00
using Cysharp.Threading.Tasks;
using QSB.Tools.TranslatorTool.TranslationSync.WorldObjects;
using QSB.WorldSync;
2022-01-28 20:49:07 -08:00
using System.Threading;
2021-11-25 15:25:17 +00:00
namespace QSB.Tools.TranslatorTool.TranslationSync
{
2021-03-23 13:18:29 +00:00
internal class SpiralManager : WorldObjectManager
{
public override WorldObjectType WorldObjectType => WorldObjectType.Both;
2022-01-28 20:50:34 -08:00
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{
// wait for all late initializers (which includes nomai text) to finish
StartDelayedReady();
QSBCore.UnityEvents.RunWhen(() => LateInitializerManager.isDoneInitializing, () =>
{
FinishDelayedReady();
QSBWorldSync.Init<QSBNomaiText, NomaiText>(typeof(GhostWallText));
});
}
}
}