Re-organize all projects (#4166)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#nullable enable
|
||||
using Content.Shared.Tool;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Construction.Steps
|
||||
{
|
||||
[DataDefinition]
|
||||
public class ToolConstructionGraphStep : ConstructionGraphStep
|
||||
{
|
||||
[DataField("tool")] public ToolQuality Tool { get; } = ToolQuality.None;
|
||||
|
||||
[DataField("fuel")] public float Fuel { get; } = 10;
|
||||
|
||||
[DataField("examine")] public string ExamineOverride { get; } = string.Empty;
|
||||
|
||||
public override void DoExamine(FormattedMessage message, bool inDetailsRange)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ExamineOverride))
|
||||
{
|
||||
message.AddMarkup(Robust.Shared.Localization.Loc.GetString(ExamineOverride));
|
||||
return;
|
||||
}
|
||||
|
||||
message.AddMarkup(Robust.Shared.Localization.Loc.GetString($"Next, use a [color=cyan]{Tool.GetToolName()}[/color]."));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user