2021-12-24 21:19:21 -08:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
namespace QSB.SatelliteSync.Messages;
|
|
|
|
|
|
|
|
|
|
internal class SatelliteProjectorMessage : QSBMessage<bool>
|
2021-12-24 21:19:21 -08:00
|
|
|
|
{
|
2022-03-10 17:57:50 -08:00
|
|
|
|
public SatelliteProjectorMessage(bool usingProjector) : base(usingProjector) { }
|
2022-02-27 04:40:44 -08:00
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
public override void OnReceiveRemote()
|
|
|
|
|
{
|
|
|
|
|
if (Data)
|
|
|
|
|
{
|
|
|
|
|
SatelliteProjectorManager.Instance.RemoteEnter();
|
|
|
|
|
}
|
|
|
|
|
else
|
2021-12-24 21:19:21 -08:00
|
|
|
|
{
|
2022-03-02 19:46:33 -08:00
|
|
|
|
SatelliteProjectorManager.Instance.RemoteExit();
|
2021-12-24 21:19:21 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-02-24 22:04:54 -08:00
|
|
|
|
}
|