using Content.Server.StationEvents.Events;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.StationEvents.Components;
///
/// Spawns entities at random tiles on a station.
///
[RegisterComponent, Access(typeof(RandomSpawnRule))]
public sealed partial class RandomSpawnRuleComponent : Component
{
///
/// The entity to be spawned.
///
[DataField("prototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))]
public string Prototype = string.Empty;
///
/// Minimum number of entities to spawn | WWDP
///
[DataField("minCount")]
public int MinCount = 1;
///
/// Maximum number of entities to spawn | WWDP
///
[DataField("maxCount")]
public int MaxCount = 1;
}