2019-09-17 16:08:45 -07:00
|
|
|
|
using Content.Shared.Construction;
|
2020-08-01 17:37:12 +02:00
|
|
|
|
using Content.Shared.GameObjects.EntitySystems;
|
2019-04-15 21:11:38 -06:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-08-01 17:37:12 +02:00
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
using Robust.Shared.IoC;
|
|
|
|
|
|
using Robust.Shared.Localization;
|
|
|
|
|
|
using Robust.Shared.Utility;
|
2019-04-15 21:11:38 -06:00
|
|
|
|
using Robust.Shared.ViewVariables;
|
2018-08-02 08:29:55 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.GameObjects.Components.Construction
|
|
|
|
|
|
{
|
2019-07-31 15:02:36 +02:00
|
|
|
|
[RegisterComponent]
|
2020-08-01 17:37:12 +02:00
|
|
|
|
public class ConstructionGhostComponent : Component, IExamine
|
2018-08-02 08:29:55 +02:00
|
|
|
|
{
|
2020-08-01 17:37:12 +02:00
|
|
|
|
#pragma warning disable 649
|
|
|
|
|
|
[Dependency] private readonly ILocalizationManager _loc;
|
|
|
|
|
|
#pragma warning restore 649
|
2018-08-02 08:29:55 +02:00
|
|
|
|
public override string Name => "ConstructionGhost";
|
|
|
|
|
|
|
2018-09-09 15:34:43 +02:00
|
|
|
|
[ViewVariables] public ConstructionPrototype Prototype { get; set; }
|
|
|
|
|
|
[ViewVariables] public int GhostID { get; set; }
|
2020-08-01 17:37:12 +02:00
|
|
|
|
|
|
|
|
|
|
void IExamine.Examine(FormattedMessage message, bool inDetailsRange)
|
|
|
|
|
|
{
|
|
|
|
|
|
message.AddText(_loc.GetString("Building: {0}\n", Prototype.Name));
|
|
|
|
|
|
EntitySystem.Get<SharedConstructionSystem>().DoExamine(message, Prototype, 0, inDetailsRange);
|
|
|
|
|
|
}
|
2018-08-02 08:29:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|