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

22 lines
415 B
C#
Raw Normal View History

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