quantum-space-buddies/QSB/WorldSync/MiscManager.cs
2022-04-01 13:42:20 -07:00

19 lines
586 B
C#

using Cysharp.Threading.Tasks;
using System.Threading;
namespace QSB.WorldSync;
internal class MiscManager : WorldObjectManager
{
public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both;
public override bool DlcOnly => false;
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{
await UniTask.WaitUntil(() => LateInitializerManager.isDoneInitializing, cancellationToken: ct);
// todo: exclude probe and probably other things
QSBWorldSync.Init<QSBOWRigidbody, OWRigidbody>(typeof(PlayerBody), typeof(ShipBody));
}
}