2021-04-01 00:04:56 -07:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Engineering.Components
|
2021-04-01 00:04:56 -07:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class SpawnAfterInteractComponent : Component
|
2021-04-01 00:04:56 -07:00
|
|
|
{
|
2021-05-04 15:37:16 +02:00
|
|
|
[DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public string? Prototype { get; private set; }
|
2021-04-01 00:04:56 -07:00
|
|
|
|
2022-05-24 19:34:39 -07:00
|
|
|
[DataField("ignoreDistance")]
|
2023-08-22 18:14:33 -07:00
|
|
|
public bool IgnoreDistance { get; private set; }
|
2022-05-24 19:34:39 -07:00
|
|
|
|
2021-04-01 00:04:56 -07:00
|
|
|
[DataField("doAfter")]
|
|
|
|
|
public float DoAfterTime = 0;
|
|
|
|
|
|
|
|
|
|
[DataField("removeOnInteract")]
|
|
|
|
|
public bool RemoveOnInteract = false;
|
|
|
|
|
}
|
|
|
|
|
}
|