quantum-space-buddies/QSB/ModelShip/Messages/RespawnModelShipMessage.cs
2022-06-07 22:07:39 -07:00

14 lines
384 B
C#

using QSB.Messaging;
using QSB.Patches;
using QSB.WorldSync;
namespace QSB.ModelShip.Messages;
internal class RespawnModelShipMessage : QSBMessage<bool>
{
public RespawnModelShipMessage(bool playEffects) : base(playEffects) { }
public override void OnReceiveRemote() =>
QSBPatch.RemoteCall(() => QSBWorldSync.GetUnityObject<RemoteFlightConsole>().RespawnModelShip(Data));
}