Files
tbd-station-14/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs
Flipp Syder d93b250653 Inflatable wall fix (#8409)
* adds a check for canreach in SpawnAfterInteract

* adds a check for the new field
2022-05-25 12:34:39 +10:00

26 lines
750 B
C#

using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Engineering.Components
{
[RegisterComponent]
public sealed class SpawnAfterInteractComponent : Component
{
[ViewVariables]
[DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? Prototype { get; }
[ViewVariables]
[DataField("ignoreDistance")]
public bool IgnoreDistance { get; }
[ViewVariables]
[DataField("doAfter")]
public float DoAfterTime = 0;
[ViewVariables]
[DataField("removeOnInteract")]
public bool RemoveOnInteract = false;
}
}