quantum-space-buddies/QSB/EchoesOfTheEye/EclipseDoors/DoorManager.cs
Mister_Nebula 24cc63012a fix it
2022-03-14 01:52:49 -07:00

30 lines
927 B
C#

using Cysharp.Threading.Tasks;
using Mirror;
using QSB.EchoesOfTheEye.EclipseDoors.VariableSync;
using QSB.EchoesOfTheEye.EclipseDoors.WorldObjects;
using QSB.Utility;
using QSB.Utility.VariableSync;
using QSB.WorldSync;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
namespace QSB.EchoesOfTheEye.EclipseDoors;
internal class DoorManager : WorldObjectManager
{
public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem;
public override bool DlcOnly => true;
public static readonly List<EclipseDoorController> Doors = new();
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{
await QSBWorldSync.InitWithVariableSync<QSBEclipseDoorController, EclipseDoorController, EclipseDoorVariableSyncer>(ct, QSBNetworkManager.singleton.DoorPrefab);
}
}