quantum-space-buddies/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs

21 lines
412 B
C#
Raw Normal View History

2021-12-25 05:19:21 +00:00
using QSB.Messaging;
namespace QSB.SatelliteSync.Messages
2021-12-25 05:19:21 +00:00
{
internal class SatelliteProjectorMessage : QSBMessage<bool>
{
public SatelliteProjectorMessage(bool usingProjector) => Data = usingProjector;
public override void OnReceiveRemote()
2021-12-25 05:19:21 +00:00
{
if (Data)
{
SatelliteProjectorManager.Instance.RemoteEnter();
}
else
{
SatelliteProjectorManager.Instance.RemoteExit();
}
2021-12-25 05:19:21 +00:00
}
}
}