mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-28 18:25:18 +00:00
20 lines
486 B
C#
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);
|
|
}
|
|
}
|