40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System.Numerics;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Shared.Physics;
|
|
|
|
/// <summary>
|
|
/// Just draws a generic line between this entity and the target.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class JointVisualsComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The sprite to use for the line.
|
|
/// </summary>
|
|
[DataField(required: true), AutoNetworkedField]
|
|
public SpriteSpecifier Sprite = default!;
|
|
|
|
/// <summary>
|
|
/// The line is drawn between this target and the entity owning the component.
|
|
/// </summary>
|
|
/// <summary>
|
|
/// TODO: WeakEntityReference.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? Target;
|
|
|
|
/// <summary>
|
|
/// Offset from Body A.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public Vector2 OffsetA;
|
|
|
|
/// <summary>
|
|
/// Offset from Body B.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public Vector2 OffsetB;
|
|
}
|