quantum-space-buddies/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherChangeModeMessage.cs
2023-07-28 19:30:57 +01:00

17 lines
381 B
C#

using QSB.Messaging;
using QSB.Player;
using QSB.WorldSync;
namespace QSB.Tools.ProbeLauncherTool.Messages;
public class PlayerLauncherChangeModeMessage : QSBMessage
{
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
public override void OnReceiveRemote()
{
var player = QSBPlayerManager.GetPlayer(From);
player.ProbeLauncherTool.ChangeMode();
}
}