2022-01-28 20:49:07 -08:00
|
|
|
|
using Cysharp.Threading.Tasks;
|
|
|
|
|
using QSB.Tools.TranslatorTool.TranslationSync.WorldObjects;
|
2020-12-31 12:10:55 +00:00
|
|
|
|
using QSB.WorldSync;
|
2022-01-28 20:49:07 -08:00
|
|
|
|
using System.Threading;
|
2020-12-31 12:10:55 +00:00
|
|
|
|
|
2021-11-25 15:25:17 +00:00
|
|
|
|
namespace QSB.Tools.TranslatorTool.TranslationSync
|
2020-12-31 12:10:55 +00:00
|
|
|
|
{
|
2021-03-23 13:18:29 +00:00
|
|
|
|
internal class SpiralManager : WorldObjectManager
|
2020-12-31 12:10:55 +00:00
|
|
|
|
{
|
2021-12-21 11:45:40 -08:00
|
|
|
|
public override WorldObjectType WorldObjectType => WorldObjectType.Both;
|
2021-12-20 18:41:12 -08:00
|
|
|
|
|
2022-01-28 20:50:34 -08:00
|
|
|
|
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
|
2020-12-31 12:10:55 +00:00
|
|
|
|
{
|
2021-12-26 20:10:38 -08:00
|
|
|
|
// wait for all late initializers (which includes nomai text) to finish
|
2022-01-28 20:57:17 -08:00
|
|
|
|
await UniTask.WaitUntil(() => LateInitializerManager.isDoneInitializing, cancellationToken: ct);
|
|
|
|
|
|
|
|
|
|
QSBWorldSync.Init<QSBNomaiText, NomaiText>(typeof(GhostWallText));
|
2020-12-31 12:10:55 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|