mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
19 lines
533 B
C#
19 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));
|
|
}
|
|
}
|