quantum-space-buddies/QSB/TriggerSync/TriggerManager.cs

24 lines
1001 B
C#
Raw Normal View History

2022-01-29 04:49:07 +00:00
using Cysharp.Threading.Tasks;
using QSB.TriggerSync.WorldObjects;
2022-01-13 03:18:59 +00:00
using QSB.WorldSync;
2022-01-29 04:49:07 +00:00
using System.Threading;
2022-01-13 01:02:21 +00:00
namespace QSB.TriggerSync
{
public class TriggerManager : WorldObjectManager
{
public override WorldObjectType WorldObjectType => WorldObjectType.Both;
2022-01-29 04:50:34 +00:00
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
2022-01-13 01:02:21 +00:00
{
2022-01-13 03:12:37 +00:00
QSBWorldSync.Init<QSBCharacterTrigger, CharacterAnimController>(x => x.playerTrackingZone);
QSBWorldSync.Init<QSBSolanumTrigger, NomaiConversationManager>(x => x._watchPlayerVolume);
2022-01-13 03:43:48 +00:00
QSBWorldSync.Init<QSBShrineTrigger, QuantumShrine>(x => x._triggerVolume);
2022-01-13 05:28:35 +00:00
QSBWorldSync.Init<QSBVesselCageTrigger, VesselWarpController>(x => x._cageTrigger);
2022-01-13 03:43:48 +00:00
QSBWorldSync.Init<QSBInflationTrigger, CosmicInflationController>(x => x._smokeSphereTrigger);
2022-01-13 05:28:35 +00:00
QSBWorldSync.Init<QSBMaskZoneTrigger, MaskZoneController>(x => x._maskZoneTrigger);
2022-01-15 10:28:08 +00:00
QSBWorldSync.Init<QSBEyeShuttleTrigger, EyeShuttleController>(x => x._shuttleVolume);
2022-01-13 01:02:21 +00:00
}
}
}