Rotatable: Allow specifying the rotation increment on the component (#5948)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user