mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-18 13:23:05 +00:00
20 lines
582 B
C#
20 lines
582 B
C#
using QSB.Tools.ProbeLauncherTool.WorldObjects;
|
|
using QSB.WorldSync;
|
|
using System.Linq;
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool
|
|
{
|
|
internal class ProbeLauncherManager : WorldObjectManager
|
|
{
|
|
public override WorldObjectType WorldObjectType => WorldObjectType.Both;
|
|
|
|
public override void BuildWorldObjects(OWScene scene)
|
|
{
|
|
QSBWorldSync.Init<QSBProbeLauncher, ProbeLauncher>(typeof(PlayerProbeLauncher));
|
|
QSBWorldSync.Init<QSBProbeLauncher, ProbeLauncher>(new[]
|
|
{
|
|
QSBWorldSync.GetUnityObjects<ShipCockpitController>().First().GetShipProbeLauncher()
|
|
});
|
|
}
|
|
}
|
|
} |