mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
18 lines
586 B
C#
18 lines
586 B
C#
using Content.Shared.Examine;
|
|
|
|
namespace Content.Server.Warps;
|
|
|
|
public sealed class WarpPointSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<WarpPointComponent, ExaminedEvent>(OnWarpPointExamine);
|
|
}
|
|
|
|
private static void OnWarpPointExamine(EntityUid uid, WarpPointComponent component, ExaminedEvent args)
|
|
{
|
|
var loc = component.Location == null ? "<null>" : $"'{component.Location}'";
|
|
args.PushText(Loc.GetString("warp-point-component-on-examine-success", ("location", loc)));
|
|
}
|
|
}
|