2022-01-28 20:49:07 -08:00
|
|
|
|
using Cysharp.Threading.Tasks;
|
|
|
|
|
using QSB.EchoesOfTheEye.LightSensorSync.WorldObjects;
|
2021-11-08 20:55:53 +00:00
|
|
|
|
using QSB.WorldSync;
|
2022-01-28 20:49:07 -08:00
|
|
|
|
using System.Threading;
|
2021-11-08 20:55:53 +00:00
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
namespace QSB.EchoesOfTheEye.LightSensorSync;
|
|
|
|
|
|
|
|
|
|
internal class LightSensorManager : WorldObjectManager
|
2021-11-08 20:55:53 +00:00
|
|
|
|
{
|
2022-03-18 01:58:07 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// light sensor apparently shows up in eye
|
|
|
|
|
/// </summary>
|
2022-03-09 21:24:32 -08:00
|
|
|
|
public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both;
|
2022-03-18 01:58:07 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// light sensor patches like to run even with no dlc
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override bool DlcOnly => false;
|
2021-12-20 18:41:12 -08:00
|
|
|
|
|
2022-03-18 01:58:07 -07:00
|
|
|
|
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct) =>
|
|
|
|
|
QSBWorldSync.Init<QSBLightSensor, SingleLightSensor>();
|
|
|
|
|
}
|