2022-09-11 08:53:17 +02:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-19 12:34:31 -07:00
|
|
|
private void OnItemStatus(Entity<HandheldGPSComponent> ent, ref ItemStatusCollectMessage args)
|
2022-09-11 08:53:17 +02:00
|
|
|
{
|
2023-10-19 12:34:31 -07:00
|
|
|
args.Controls.Add(new HandheldGpsStatusControl(ent));
|
2022-09-11 08:53:17 +02:00
|
|
|
}
|
|
|
|
|
}
|