Files
OldThink/Content.Server/GameObjects/Components/Stack/StackComponent.cs

33 lines
1.0 KiB
C#
Raw Normal View History

2020-01-09 00:27:52 +01:00
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
{
// TODO: Naming and presentation and such could use some improvement.
2019-07-31 15:02:36 +02:00
[RegisterComponent]
[ComponentReference(typeof(SharedStackComponent))]
public class StackComponent : SharedStackComponent, IExamine
{
[ViewVariables(VVAccess.ReadWrite)]
public bool ThrowIndividually { get; set; } = false;
void IExamine.Examine(FormattedMessage message, bool inDetailsRange)
{
if (inDetailsRange)
{
message.AddMarkup(
Loc.GetString(
2021-02-28 20:02:03 -04:00
"comp-stack-examine-detail-count",
("count", Count),
("markupCountColor", "lightgray")
)
);
}
}
}
}