quantum-space-buddies/QSB/Tools/ProbeLauncherTool/Messages/PlayerRetrieveProbeMessage.cs
2022-04-16 10:08:59 +01:00

18 lines
468 B
C#

using QSB.Messaging;
using QSB.Player;
using QSB.WorldSync;
namespace QSB.Tools.ProbeLauncherTool.Messages;
internal class PlayerRetrieveProbeMessage : QSBMessage<bool>
{
public PlayerRetrieveProbeMessage(bool playEffects) : base(playEffects) { }
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
public override void OnReceiveRemote()
{
var player = QSBPlayerManager.GetPlayer(From);
player.ProbeLauncherTool.RetrieveProbe(Data);
}
}