RandomEntityStorageSpawnRuleComponent.cs 596 B

123456789101112131415161718
  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. /// Spawns a single entity in a random EntityStorage on the station
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(RandomEntityStorageSpawnRule))]
  9. public sealed partial class RandomEntityStorageSpawnRuleComponent : Component
  10. {
  11. /// <summary>
  12. /// The entity to be spawned.
  13. /// </summary>
  14. [DataField(required: true)]
  15. public EntProtoId Prototype;
  16. }