2022-01-28 20:49:07 -08:00
|
|
|
|
using Cysharp.Threading.Tasks;
|
|
|
|
|
using QSB.OrbSync.WorldObjects;
|
2022-01-25 02:13:48 -08:00
|
|
|
|
using QSB.Utility;
|
2020-09-29 21:34:46 +01:00
|
|
|
|
using QSB.WorldSync;
|
2021-10-21 17:21:54 +01:00
|
|
|
|
using System.Collections.Generic;
|
2022-01-28 20:49:07 -08:00
|
|
|
|
using System.Threading;
|
2020-09-29 21:34:46 +01:00
|
|
|
|
|
|
|
|
|
namespace QSB.OrbSync
|
|
|
|
|
{
|
2021-03-23 13:18:29 +00:00
|
|
|
|
public class OrbManager : WorldObjectManager
|
2020-12-02 21:29:53 +00:00
|
|
|
|
{
|
2021-12-20 22:42:29 -08:00
|
|
|
|
public override WorldObjectType WorldObjectType => WorldObjectType.Both;
|
2021-12-20 18:41:12 -08:00
|
|
|
|
|
2021-12-13 21:18:16 -08:00
|
|
|
|
public static readonly List<NomaiInterfaceOrb> Orbs = new();
|
2021-10-21 17:21:54 +01:00
|
|
|
|
|
2022-01-28 20:50:34 -08:00
|
|
|
|
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
|
2020-12-02 21:29:53 +00:00
|
|
|
|
{
|
2021-12-13 21:18:16 -08:00
|
|
|
|
Orbs.Clear();
|
2022-01-25 02:13:48 -08:00
|
|
|
|
Orbs.AddRange(QSBWorldSync.GetUnityObjects<NomaiInterfaceOrb>().SortDeterministic());
|
2021-12-17 16:26:44 -08:00
|
|
|
|
QSBWorldSync.Init<QSBOrb, NomaiInterfaceOrb>(Orbs);
|
2021-12-13 21:18:16 -08:00
|
|
|
|
}
|
2020-12-02 21:29:53 +00:00
|
|
|
|
}
|
2021-11-13 00:42:59 -08:00
|
|
|
|
}
|