mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
19 lines
548 B
C#
19 lines
548 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(EntityUid uid, HandheldGPSComponent component, ItemStatusCollectMessage args)
|
|
{
|
|
args.Controls.Add(new HandheldGpsStatusControl(component));
|
|
}
|
|
}
|