mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-07 13:05:41 +00:00
22 lines
532 B
C#
22 lines
532 B
C#
using QSB.Messaging;
|
|
using QSB.Player;
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool.Messages;
|
|
|
|
internal class PlayerEquipLauncherMessage : QSBMessage<bool>
|
|
{
|
|
public PlayerEquipLauncherMessage(bool equipped) : base(equipped) { }
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
var player = QSBPlayerManager.GetPlayer(From);
|
|
player.LocalProbeLauncherEquipped = Data;
|
|
player.ProbeLauncherTool?.ChangeEquipState(Data);
|
|
}
|
|
|
|
public override void OnReceiveLocal()
|
|
{
|
|
QSBPlayerManager.LocalPlayer.LocalProbeLauncherEquipped = Data;
|
|
}
|
|
}
|