mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
22 lines
628 B
C#
22 lines
628 B
C#
using Cysharp.Threading.Tasks;
|
|
using QSB.OrbSync.WorldObjects;
|
|
using QSB.Utility;
|
|
using QSB.WorldSync;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
|
|
namespace QSB.OrbSync;
|
|
|
|
public class OrbManager : WorldObjectManager
|
|
{
|
|
public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both;
|
|
|
|
public static readonly List<NomaiInterfaceOrb> Orbs = new();
|
|
|
|
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
|
|
{
|
|
Orbs.Clear();
|
|
Orbs.AddRange(QSBWorldSync.GetUnityObjects<NomaiInterfaceOrb>().SortDeterministic());
|
|
QSBWorldSync.Init<QSBOrb, NomaiInterfaceOrb>(Orbs);
|
|
}
|
|
} |