2021-12-25 05:19:21 +00:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
|
2022-02-27 12:40:44 +00:00
|
|
|
|
namespace QSB.SatelliteSync.Messages
|
2021-12-25 05:19:21 +00:00
|
|
|
|
{
|
2022-02-27 12:40:44 +00:00
|
|
|
|
internal class SatelliteProjectorMessage : QSBMessage<bool>
|
2022-02-25 06:04:54 +00:00
|
|
|
|
{
|
2022-03-03 03:34:18 +00:00
|
|
|
|
public SatelliteProjectorMessage(bool usingProjector) => Data = usingProjector;
|
2022-02-27 12:40:44 +00:00
|
|
|
|
|
|
|
|
|
public override void OnReceiveRemote()
|
2021-12-25 05:19:21 +00:00
|
|
|
|
{
|
2022-03-03 03:34:18 +00:00
|
|
|
|
if (Data)
|
2022-02-27 12:40:44 +00:00
|
|
|
|
{
|
|
|
|
|
SatelliteProjectorManager.Instance.RemoteEnter();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SatelliteProjectorManager.Instance.RemoteExit();
|
|
|
|
|
}
|
2021-12-25 05:19:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|