quantum-space-buddies/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs
2022-01-26 20:35:43 -08:00

22 lines
415 B
C#

using QSB.Messaging;
namespace QSB.SatelliteSync.Messages
{
internal class SatelliteProjectorMessage : QSBMessage<bool>
{
public SatelliteProjectorMessage(bool usingProjector) => Value = usingProjector;
public override void OnReceiveRemote()
{
if (Value)
{
SatelliteProjectorManager.Instance.RemoteEnter();
}
else
{
SatelliteProjectorManager.Instance.RemoteExit();
}
}
}
}