27 lines
731 B
C#
27 lines
731 B
C#
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.GameObjects.Components.Body.Part.Property
|
|
{
|
|
/// <summary>
|
|
/// Defines the length of a <see cref="IBodyPart"/>.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public class ExtensionComponent : BodyPartPropertyComponent
|
|
{
|
|
public override string Name => "Extension";
|
|
|
|
/// <summary>
|
|
/// Current distance in tiles.
|
|
/// </summary>
|
|
public float Distance { get; set; }
|
|
|
|
public override void ExposeData(ObjectSerializer serializer)
|
|
{
|
|
base.ExposeData(serializer);
|
|
|
|
serializer.DataField(this, e => e.Distance, "distance", 3f);
|
|
}
|
|
}
|
|
}
|