Rotatable: Allow specifying the rotation increment on the component (#5948)

This commit is contained in:
E F R
2021-12-31 02:20:22 +00:00
committed by GitHub
parent f6a25641e1
commit a5cd3784bf
2 changed files with 33 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
using Robust.Shared.Maths;
namespace Content.Shared.Rotatable
{
@@ -22,5 +23,12 @@ namespace Content.Shared.Rotatable
[ViewVariables(VVAccess.ReadWrite)]
[DataField("rotateWhilePulling")]
public bool RotateWhilePulling { get; protected set; } = true;
/// <summary>
/// The angular value to change when using the rotate verbs.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("increment")]
public Angle Increment { get; protected set; } = Angle.FromDegrees(90);
}
}