Files
tbd-station-14/Content.Shared/ParcelWrap/Components/ParcelWrapOverrideComponent.cs
slarticodefast 9562e009bf Make parcelwrap able to wrap humanoids (#40911)
* parcel

* help, I'm being forced to add admin abuse features

* review
2025-10-15 20:19:34 +00:00

25 lines
876 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.ParcelWrap.Components;
/// <summary>
/// Added to an entity to override the datafields in <see cref="ParcelWrapComponent"/> when it is being wrapped.
/// Use this for special, non-item parcel types, for example Urist-shaped parcels.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ParcelWrapOverrideComponent : Component
{
/// <summary>
/// The <see cref="EntityPrototype"/> of the parcel created by wrapping this entity.
/// </summary>
[DataField(required: true), AutoNetworkedField]
public EntProtoId? ParcelPrototype;
/// <summary>
/// How long it takes to use this to wrap something.
/// </summary>
[DataField(required: true), AutoNetworkedField]
public TimeSpan? WrapDelay;
}