quantum-space-buddies/QSB/Anglerfish/AnglerManager.cs

22 lines
668 B
C#
Raw Normal View History

2022-01-29 04:49:07 +00:00
using Cysharp.Threading.Tasks;
using QSB.Anglerfish.WorldObjects;
2022-01-25 10:13:48 +00:00
using QSB.Utility;
2021-11-10 01:56:45 +00:00
using QSB.WorldSync;
2021-12-24 01:07:29 +00:00
using System.Collections.Generic;
2022-01-29 04:49:07 +00:00
using System.Threading;
2021-11-10 01:56:45 +00:00
2022-03-03 03:46:33 +00:00
namespace QSB.Anglerfish;
public class AnglerManager : WorldObjectManager
2021-11-10 01:56:45 +00:00
{
2022-03-03 03:46:33 +00:00
public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem;
2022-03-03 03:46:33 +00:00
public static readonly List<AnglerfishController> Anglers = new();
2021-12-14 07:37:21 +00:00
2022-03-03 03:46:33 +00: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-10 01:56:45 +00:00
}
}