24 lines
616 B
C#
24 lines
616 B
C#
|
|
using Robust.Shared.GameObjects;
|
|||
|
|
using Robust.Shared.Serialization;
|
|||
|
|
|
|||
|
|
namespace Content.Shared.GameObjects.Components.Body.Part.Property
|
|||
|
|
{
|
|||
|
|
[RegisterComponent]
|
|||
|
|
public class LegComponent : BodyPartPropertyComponent
|
|||
|
|
{
|
|||
|
|
public override string Name => "Leg";
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Speed (in tiles per second).
|
|||
|
|
/// </summary>
|
|||
|
|
public float Speed { get; set; }
|
|||
|
|
|
|||
|
|
public override void ExposeData(ObjectSerializer serializer)
|
|||
|
|
{
|
|||
|
|
base.ExposeData(serializer);
|
|||
|
|
|
|||
|
|
serializer.DataField(this, l => l.Speed, "speed", 2.6f);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|