mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-07 13:05:41 +00:00
24 lines
639 B
C#
24 lines
639 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 WorldObjectType WorldObjectType => WorldObjectType.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);
|
|
}
|
|
}
|
|
}
|