2020-08-13 14:40:27 +02:00
|
|
|
|
using Content.Shared.GameObjects.EntitySystems;
|
2020-05-24 14:31:57 +02:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using Robust.Shared.Localization;
|
2021-03-05 01:08:38 +01:00
|
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2020-05-24 14:31:57 +02:00
|
|
|
|
using Robust.Shared.Utility;
|
|
|
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.Components.Markers
|
|
|
|
|
|
{
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
public sealed class WarpPointComponent : Component, IExamine
|
|
|
|
|
|
{
|
|
|
|
|
|
public override string Name => "WarpPoint";
|
|
|
|
|
|
|
2021-03-16 15:50:20 +01:00
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("location")] public string? Location { get; set; }
|
2020-05-24 14:31:57 +02:00
|
|
|
|
|
2020-05-31 19:29:06 +01:00
|
|
|
|
public void Examine(FormattedMessage message, bool inDetailsRange)
|
2020-05-24 14:31:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
var loc = Location == null ? "<null>" : $"'{Location}'";
|
|
|
|
|
|
message.AddText(Loc.GetString("This one's location ID is {0}", loc));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|