22 lines
668 B
C#
Raw Normal View History

2022-01-28 20:49:07 -08:00
using Cysharp.Threading.Tasks;
using QSB.Anglerfish.WorldObjects;
2022-01-25 02:13:48 -08:00
using QSB.Utility;
2021-11-09 17:56:45 -08:00
using QSB.WorldSync;
2021-12-23 17:07:29 -08:00
using System.Collections.Generic;
2022-01-28 20:49:07 -08:00
using System.Threading;
2021-11-09 17:56:45 -08:00
namespace QSB.Anglerfish;
public class AnglerManager : WorldObjectManager
2021-11-09 17:56:45 -08:00
{
2022-02-25 00:25:24 -08:00
public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem;
public static readonly List<AnglerfishController> Anglers = new();
2021-12-13 23:37:21 -08:00
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{
Anglers.Clear();
Anglers.AddRange(QSBWorldSync.GetUnityObjects<AnglerfishController>().SortDeterministic());
QSBWorldSync.Init<QSBAngler, AnglerfishController>(Anglers);
2021-11-09 17:56:45 -08:00
}
}