2021-12-24 01:07:29 +00:00
|
|
|
|
using QSB.JellyfishSync.WorldObjects;
|
2022-01-25 10:13:48 +00:00
|
|
|
|
using QSB.Utility;
|
2021-12-02 15:03:38 +00:00
|
|
|
|
using QSB.WorldSync;
|
2021-12-24 01:07:29 +00:00
|
|
|
|
using System.Collections.Generic;
|
2021-12-02 15:03:38 +00:00
|
|
|
|
|
|
|
|
|
namespace QSB.JellyfishSync
|
|
|
|
|
{
|
|
|
|
|
public class JellyfishManager : WorldObjectManager
|
|
|
|
|
{
|
2021-12-21 02:41:12 +00:00
|
|
|
|
public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem;
|
|
|
|
|
|
2021-12-14 07:37:21 +00:00
|
|
|
|
public static readonly List<JellyfishController> Jellyfish = new();
|
|
|
|
|
|
2022-01-18 08:46:27 +00:00
|
|
|
|
public override void BuildWorldObjects(OWScene scene)
|
2021-12-14 07:37:21 +00:00
|
|
|
|
{
|
|
|
|
|
Jellyfish.Clear();
|
2022-01-25 10:13:48 +00:00
|
|
|
|
Jellyfish.AddRange(QSBWorldSync.GetUnityObjects<JellyfishController>().SortDeterministic());
|
2021-12-18 00:26:44 +00:00
|
|
|
|
QSBWorldSync.Init<QSBJellyfish, JellyfishController>(Jellyfish);
|
2021-12-14 07:37:21 +00:00
|
|
|
|
}
|
2021-12-02 15:03:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|