2023-09-19 01:05:17 -04:00
|
|
|
|
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>
|
2023-12-25 01:48:58 -05:00
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
|
public EntProtoId Prototype;
|
2023-09-19 01:05:17 -04:00
|
|
|
|
}
|