2021-12-26 07:45:40 +00:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
using QSB.Player;
|
|
|
|
|
using QSB.WorldSync;
|
|
|
|
|
|
2022-02-27 12:40:44 +00:00
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool.Messages
|
2021-12-26 07:45:40 +00:00
|
|
|
|
{
|
2022-02-27 12:40:44 +00:00
|
|
|
|
internal class PlayerRetrieveProbeMessage : QSBMessage<bool>
|
|
|
|
|
{
|
2022-03-03 03:34:18 +00:00
|
|
|
|
public PlayerRetrieveProbeMessage(bool playEffects) => Data = playEffects;
|
2021-12-26 07:45:40 +00:00
|
|
|
|
|
2022-02-27 12:40:44 +00:00
|
|
|
|
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
|
2021-12-26 07:45:40 +00:00
|
|
|
|
|
2022-02-27 12:40:44 +00:00
|
|
|
|
public override void OnReceiveRemote()
|
|
|
|
|
{
|
|
|
|
|
var player = QSBPlayerManager.GetPlayer(From);
|
2022-03-03 03:34:18 +00:00
|
|
|
|
player.ProbeLauncher.RetrieveProbe(Data);
|
2022-02-27 12:40:44 +00:00
|
|
|
|
}
|
2021-12-26 07:45:40 +00:00
|
|
|
|
}
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|