quantum-space-buddies/QSB/ShipSync/Messages/LandingCameraMessage.cs

20 lines
486 B
C#
Raw Normal View History

2022-04-16 20:31:01 +00:00
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);
}
}