mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
20 lines
482 B
C#
20 lines
482 B
C#
using QSB.Messaging;
|
|
using QSB.Player;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool.Messages
|
|
{
|
|
internal class PlayerRetrieveProbeMessage : QSBBoolMessage
|
|
{
|
|
public PlayerRetrieveProbeMessage(bool playEffects) => Value = playEffects;
|
|
|
|
public override bool ShouldReceive => WorldObjectManager.AllObjectsReady;
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
var player = QSBPlayerManager.GetPlayer(From);
|
|
player.ProbeLauncher.RetrieveProbe(Value);
|
|
}
|
|
}
|
|
}
|