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

21 lines
559 B
C#

using QSB.Anglerfish.WorldObjects;
using QSB.WorldSync;
using System.Collections.Generic;
namespace QSB.Anglerfish
{
public class AnglerManager : WorldObjectManager
{
public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem;
public static readonly List<AnglerfishController> Anglers = new();
protected override void RebuildWorldObjects(OWScene scene)
{
Anglers.Clear();
Anglers.AddRange(QSBWorldSync.GetUnityObjects<AnglerfishController>());
QSBWorldSync.Init<QSBAngler, AnglerfishController>(Anglers);
}
}
}