mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-27 06:18:52 +00:00
25 lines
430 B
C#
25 lines
430 B
C#
using QSB.Messaging;
|
|
using QSB.Player;
|
|
using QSB.Utility;
|
|
|
|
namespace QSB.HUD.Messages;
|
|
|
|
public class PlanetMessage : QSBMessage<HUDIcon>
|
|
{
|
|
public PlanetMessage(HUDIcon icon) : base(icon) { }
|
|
|
|
public override void OnReceiveLocal() => OnReceiveRemote();
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
var from = QSBPlayerManager.GetPlayer(From);
|
|
|
|
if (from == default)
|
|
{
|
|
return;
|
|
}
|
|
|
|
from.HUDBox?.UpdateIcon(Data);
|
|
}
|
|
}
|