ArtifactTriggerPrototype.cs 805 B

123456789101112131415161718192021222324252627282930313233
  1. using Content.Shared.Item;
  2. using Content.Shared.Whitelist;
  3. using Robust.Shared.Prototypes;
  4. using Robust.Shared.Serialization;
  5. namespace Content.Shared.Xenoarchaeology.XenoArtifacts;
  6. /// <summary>
  7. /// This is a prototype for...
  8. /// </summary>
  9. [Prototype]
  10. [DataDefinition]
  11. public sealed partial class ArtifactTriggerPrototype : IPrototype
  12. {
  13. /// <inheritdoc/>
  14. [IdDataField]
  15. public string ID { get; private set; } = default!;
  16. [DataField("components", serverOnly: true)]
  17. public ComponentRegistry Components = new();
  18. [DataField("targetDepth")]
  19. public int TargetDepth = 0;
  20. [DataField("triggerHint")]
  21. public string? TriggerHint;
  22. [DataField("whitelist")]
  23. public EntityWhitelist? Whitelist;
  24. [DataField("blacklist")]
  25. public EntityWhitelist? Blacklist;
  26. }