mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
16 lines
374 B
C#
16 lines
374 B
C#
using QSB.Messaging;
|
|
using QSB.Player;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool.Messages;
|
|
|
|
public class PlayerLaunchProbeMessage : QSBMessage
|
|
{
|
|
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
var player = QSBPlayerManager.GetPlayer(From);
|
|
player.ProbeLauncherTool.LaunchProbe();
|
|
}
|
|
} |