quantum-space-buddies/QSB/JellyfishSync/JellyfishManager.cs
2021-12-23 17:07:29 -08:00

21 lines
576 B
C#

using QSB.JellyfishSync.WorldObjects;
using QSB.WorldSync;
using System.Collections.Generic;
namespace QSB.JellyfishSync
{
public class JellyfishManager : WorldObjectManager
{
public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem;
public static readonly List<JellyfishController> Jellyfish = new();
protected override void RebuildWorldObjects(OWScene scene)
{
Jellyfish.Clear();
Jellyfish.AddRange(QSBWorldSync.GetUnityObjects<JellyfishController>());
QSBWorldSync.Init<QSBJellyfish, JellyfishController>(Jellyfish);
}
}
}