25 lines
430 B
C#
Raw Permalink Normal View History

2023-02-10 12:01:31 +00:00
using QSB.Messaging;
using QSB.Player;
using QSB.Utility;
namespace QSB.HUD.Messages;
2023-07-28 19:30:57 +01:00
public class PlanetMessage : QSBMessage<HUDIcon>
2023-02-10 12:01:31 +00:00
{
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);
}
}