mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 00:27:59 +00:00
20 lines
533 B
C#
20 lines
533 B
C#
using Content.Client.GPS.Components;
|
|
using Content.Client.GPS.UI;
|
|
using Content.Client.Items;
|
|
|
|
namespace Content.Client.GPS.Systems;
|
|
|
|
public sealed class HandheldGpsSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<HandheldGPSComponent, ItemStatusCollectMessage>(OnItemStatus);
|
|
}
|
|
|
|
private void OnItemStatus(Entity<HandheldGPSComponent> ent, ref ItemStatusCollectMessage args)
|
|
{
|
|
args.Controls.Add(new HandheldGpsStatusControl(ent));
|
|
}
|
|
}
|