quantum-space-buddies/QSB/ShipSync/Messages/LandingCameraMessage.cs
2022-04-16 21:31:01 +01:00

20 lines
486 B
C#

using QSB.Messaging;
using QSB.Utility;
namespace QSB.ShipSync.Messages;
internal class LandingCameraMessage : QSBMessage<bool>
{
public LandingCameraMessage(bool on) : base(on) { }
public override void OnReceiveRemote()
{
if (From != ShipManager.Instance.CurrentFlyer)
{
DebugLog.ToConsole($"Warning - Received LandingCameraMessage from someone who isn't flying the ship!", OWML.Common.MessageType.Warning);
}
ShipManager.Instance.UpdateLandingCamera(Data);
}
}