Files
tbd-station-14/Content.Shared/Physics/JointVisualsComponent.cs
slarticodefast af05313f37 fix NetEntity datafield in JointVisualsComponent (#39987)
fix netentity datafield
2025-10-10 23:59:56 +00:00

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;
}