Make parcelwrap able to wrap humanoids (#40911)

* parcel

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

* review
This commit is contained in:
slarticodefast
2025-10-15 22:19:34 +02:00
committed by GitHub
parent 7755009fe3
commit 9562e009bf
10 changed files with 192 additions and 77 deletions

View File

@@ -0,0 +1,24 @@
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;
}