1
0

AnomalySpawnRuleComponent.cs 619 B

123456789101112131415
  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. /// Used an event that spawns an anomaly somewhere random on the map.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(AnomalySpawnRule))]
  9. public sealed partial class AnomalySpawnRuleComponent : Component
  10. {
  11. [DataField("anomalySpawnerPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
  12. public string AnomalySpawnerPrototype = "RandomAnomalySpawner";
  13. }