mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-07 13:05:41 +00:00
18 lines
468 B
C#
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);
|
|
}
|
|
} |