namespace Content.Shared.Rotatable
{
[RegisterComponent]
public sealed partial class RotatableComponent : Component
{
///
/// If true, this entity can be rotated even while anchored.
///
[ViewVariables(VVAccess.ReadWrite)]
[DataField("rotateWhileAnchored")]
public bool RotateWhileAnchored { get; private set; }
///
/// If true, will rotate entity in players direction when pulled
///
[ViewVariables(VVAccess.ReadWrite)]
[DataField("rotateWhilePulling")]
public bool RotateWhilePulling { get; private set; } = true;
///
/// The angular value to change when using the rotate verbs.
///
[ViewVariables(VVAccess.ReadWrite)]
[DataField("increment")]
public Angle Increment { get; private set; } = Angle.FromDegrees(90);
}
}