quantum-space-buddies/QSB/OrbSync/OrbManager.cs

21 lines
519 B
C#
Raw Normal View History

2021-12-15 07:57:21 +00:00
using QSB.OrbSync.WorldObjects;
2020-09-29 20:34:46 +00:00
using QSB.WorldSync;
2021-10-21 16:21:54 +00:00
using System.Collections.Generic;
2020-09-29 20:34:46 +00:00
namespace QSB.OrbSync
{
2021-03-23 13:18:29 +00:00
public class OrbManager : WorldObjectManager
2020-12-02 21:29:53 +00:00
{
2021-12-21 06:42:29 +00:00
public override WorldObjectType WorldObjectType => WorldObjectType.Both;
2021-12-14 05:18:16 +00:00
public static readonly List<NomaiInterfaceOrb> Orbs = new();
2021-10-21 16:21:54 +00:00
2021-03-23 13:18:29 +00:00
protected override void RebuildWorldObjects(OWScene scene)
2020-12-02 21:29:53 +00:00
{
2021-12-14 05:18:16 +00:00
Orbs.Clear();
Orbs.AddRange(QSBWorldSync.GetUnityObjects<NomaiInterfaceOrb>());
2021-12-18 00:26:44 +00:00
QSBWorldSync.Init<QSBOrb, NomaiInterfaceOrb>(Orbs);
2021-12-14 05:18:16 +00:00
}
2020-12-02 21:29:53 +00:00
}
}