Files
wwdpublic/Content.Server/StationEvents/Components/RandomEntityStorageSpawnRuleComponent.cs
Leon Friedrich 309ca8224c Fix closet skeletons spawning in nullspace (#22942)
(cherry picked from commit 0baffe32435341a066198805c94f38fd049395ae)
2024-01-22 18:36:51 +01:00

19 lines
596 B
C#

using Content.Server.StationEvents.Events;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.StationEvents.Components;
/// <summary>
/// Spawns a single entity in a random EntityStorage on the station
/// </summary>
[RegisterComponent, Access(typeof(RandomEntityStorageSpawnRule))]
public sealed partial class RandomEntityStorageSpawnRuleComponent : Component
{
/// <summary>
/// The entity to be spawned.
/// </summary>
[DataField(required: true)]
public EntProtoId Prototype;
}