mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
24 lines
532 B
C#
24 lines
532 B
C#
using QSB.Messaging;
|
|
using QSB.Player;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.Tools.ProbeTool.Messages;
|
|
|
|
internal class ProbeStartRetrieveMessage : QSBMessage<float>
|
|
{
|
|
public ProbeStartRetrieveMessage(float duration) : base(duration) { }
|
|
|
|
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
var player = QSBPlayerManager.GetPlayer(From);
|
|
if (!player.IsReady || player.Probe == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
var probe = player.Probe;
|
|
probe.OnStartRetrieve(Data);
|
|
}
|
|
} |