BluespaceArtifactRuleComponent.cs 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. using Content.Server.StationEvents.Events;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Server.StationEvents.Components;
  5. /// <summary>
  6. /// This is used for an event that spawns an artifact
  7. /// somewhere random on the station.
  8. /// </summary>
  9. [RegisterComponent, Access(typeof(BluespaceArtifactRule))]
  10. public sealed partial class BluespaceArtifactRuleComponent : Component
  11. {
  12. [DataField("artifactSpawnerPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  13. public string ArtifactSpawnerPrototype = "RandomArtifactSpawner";
  14. [DataField("artifactFlashPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  15. public string ArtifactFlashPrototype = "EffectFlashBluespace";
  16. [DataField("possibleSightings")]
  17. public List<string> PossibleSighting = new()
  18. {
  19. "bluespace-artifact-sighting-1",
  20. "bluespace-artifact-sighting-2",
  21. "bluespace-artifact-sighting-3",
  22. "bluespace-artifact-sighting-4",
  23. "bluespace-artifact-sighting-5",
  24. "bluespace-artifact-sighting-6",
  25. "bluespace-artifact-sighting-7"
  26. };
  27. }