2021-12-25 05:19:21 +00:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.SatelliteSync.Messages;
|
|
|
|
|
|
2023-07-28 18:30:57 +00:00
|
|
|
|
public class SatelliteProjectorMessage : QSBMessage<bool>
|
2021-12-25 05:19:21 +00:00
|
|
|
|
{
|
2022-03-11 01:57:50 +00:00
|
|
|
|
public SatelliteProjectorMessage(bool usingProjector) : base(usingProjector) { }
|
2022-02-27 12:40:44 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public override void OnReceiveRemote()
|
|
|
|
|
{
|
|
|
|
|
if (Data)
|
|
|
|
|
{
|
|
|
|
|
SatelliteProjectorManager.Instance.RemoteEnter();
|
|
|
|
|
}
|
|
|
|
|
else
|
2021-12-25 05:19:21 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
SatelliteProjectorManager.Instance.RemoteExit();
|
2021-12-25 05:19:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|