22 lines
628 B
C#
Raw Normal View History

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
2022-03-02 19:46:33 -08:00
namespace QSB.OrbSync;
public class OrbManager : WorldObjectManager
2020-09-29 21:34:46 +01:00
{
2022-03-02 19:46:33 -08:00
public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both;
2022-03-02 19:46:33 -08:00
public static readonly List<NomaiInterfaceOrb> Orbs = new();
2021-10-21 17:21:54 +01:00
2022-03-02 19:46:33 -08:00
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{
Orbs.Clear();
Orbs.AddRange(QSBWorldSync.GetUnityObjects<NomaiInterfaceOrb>().SortDeterministic());
QSBWorldSync.Init<QSBOrb, NomaiInterfaceOrb>(Orbs);
2020-12-02 21:29:53 +00:00
}
}