* Fix rotate verbs not being predicted * fixes --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
29 lines
834 B
C#
29 lines
834 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Rotatable;
|
|
|
|
/// <summary>
|
|
/// Allows an entity to be rotated by using a verb.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class RotatableComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// If true, this entity can be rotated even while anchored.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool RotateWhileAnchored;
|
|
|
|
/// <summary>
|
|
/// If true, will rotate entity in players direction when pulled
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool RotateWhilePulling = true;
|
|
|
|
/// <summary>
|
|
/// The angular value to change when using the rotate verbs.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public Angle Increment = Angle.FromDegrees(90);
|
|
}
|