1
0
mirror of https://github.com/misternebula/quantum-space-buddies.git synced 2025-02-15 09:40:03 +00:00
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);
}
}