Files
crystall-punk-14/Content.Server/Warps/WarpPointSystem.cs

19 lines
586 B
C#
Raw Normal View History

2022-02-01 17:15:58 +11:00
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)));
}
}