quantum-space-buddies/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs
2021-12-26 18:55:54 -08:00

22 lines
413 B
C#

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