22 lines
768 B
C#
22 lines
768 B
C#
using Content.Shared.Tools;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Content.Server.Repairable
|
|
{
|
|
[RegisterComponent]
|
|
public class RepairableComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("fuelCost")]
|
|
public int FuelCost = 5;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("qualityNeeded", customTypeSerializer:typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
|
public string QualityNeeded = "Welding";
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("doAfterDelay")]
|
|
public int DoAfterDelay = 1;
|
|
}
|
|
}
|