1
0

SpawnAfterInteractComponent.cs 688 B

123456789101112131415161718192021
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.Engineering.Components
  4. {
  5. [RegisterComponent]
  6. public sealed partial class SpawnAfterInteractComponent : Component
  7. {
  8. [DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  9. public string? Prototype { get; private set; }
  10. [DataField("ignoreDistance")]
  11. public bool IgnoreDistance { get; private set; }
  12. [DataField("doAfter")]
  13. public float DoAfterTime = 0;
  14. [DataField("removeOnInteract")]
  15. public bool RemoveOnInteract = false;
  16. }
  17. }