mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-07 13:05:41 +00:00
22 lines
415 B
C#
22 lines
415 B
C#
using QSB.Messaging;
|
|
|
|
namespace QSB.SatelliteSync.Messages
|
|
{
|
|
internal class SatelliteProjectorMessage : QSBMessage<bool>
|
|
{
|
|
public SatelliteProjectorMessage(bool usingProjector) => Value = usingProjector;
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
if (Value)
|
|
{
|
|
SatelliteProjectorManager.Instance.RemoteEnter();
|
|
}
|
|
else
|
|
{
|
|
SatelliteProjectorManager.Instance.RemoteExit();
|
|
}
|
|
}
|
|
}
|
|
}
|