mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
21 lines
559 B
C#
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);
|
|
}
|
|
}
|
|
}
|