Stack examining is now ECS.

This commit is contained in:
Vera Aguilera Puerto
2021-05-26 10:32:40 +02:00
parent b9debaa273
commit 0f703b8f02
3 changed files with 18 additions and 18 deletions

View File

@@ -1,8 +1,5 @@
using Content.Shared.GameObjects.Components;
using Content.Shared.GameObjects.EntitySystems;
using Robust.Shared.GameObjects;
using Robust.Shared.Localization;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects.Components.Stack
@@ -10,23 +7,9 @@ namespace Content.Server.GameObjects.Components.Stack
// TODO: Naming and presentation and such could use some improvement.
[RegisterComponent]
[ComponentReference(typeof(SharedStackComponent))]
public class StackComponent : SharedStackComponent, IExamine
public class StackComponent : SharedStackComponent
{
[ViewVariables(VVAccess.ReadWrite)]
public bool ThrowIndividually { get; set; } = false;
void IExamine.Examine(FormattedMessage message, bool inDetailsRange)
{
if (inDetailsRange)
{
message.AddMarkup(
Loc.GetString(
"comp-stack-examine-detail-count",
("count", Count),
("markupCountColor", "lightgray")
)
);
}
}
}
}