Pulling change entity rotation (#3890)
* Moved rotatable to shared * Pullable change rotation * Applied review * Update Content.Shared/GameObjects/EntitySystems/SharedPullingSystem.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#nullable enable
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Rotatable
|
||||
{
|
||||
public abstract class SharedRotatableComponent : Component
|
||||
{
|
||||
public override string Name => "Rotatable";
|
||||
|
||||
/// <summary>
|
||||
/// If true, this entity can be rotated even while anchored.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("rotateWhileAnchored")]
|
||||
public bool RotateWhileAnchored { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// If true, will rotate entity in players direction when pulled
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("rotateWhilePulling")]
|
||||
public bool RotateWhilePulling { get; protected set; } = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user