mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
22 lines
682 B
C#
22 lines
682 B
C#
using Cysharp.Threading.Tasks;
|
|
using QSB.JellyfishSync.WorldObjects;
|
|
using QSB.Utility;
|
|
using QSB.WorldSync;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
|
|
namespace QSB.JellyfishSync;
|
|
|
|
public class JellyfishManager : WorldObjectManager
|
|
{
|
|
public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem;
|
|
|
|
public static readonly List<JellyfishController> Jellyfish = new();
|
|
|
|
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
|
|
{
|
|
Jellyfish.Clear();
|
|
Jellyfish.AddRange(QSBWorldSync.GetUnityObjects<JellyfishController>().SortDeterministic());
|
|
QSBWorldSync.Init<QSBJellyfish, JellyfishController>(Jellyfish);
|
|
}
|
|
} |