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