using Content.Server.Animals.Systems;
using Content.Shared.EntityTable.EntitySelectors;
namespace Content.Server.Animals.Components;
///
/// Spawns configured entities when production is requested.
///
[RegisterComponent, Access(typeof(EntityProducerSystem))]
public sealed partial class EntityProducerComponent : Component
{
///
/// Selects the entities spawned for each production attempt.
///
[DataField(required: true)]
public EntityTableSelector Table = default!;
}
///
/// Raised after entity production succeeds with the entities that were spawned.
///
/// Entity on whose behalf the entities were produced.
/// Entities spawned by the successful production attempt.
[ByRefEvent]
public readonly record struct EntitiesProducedEvent(EntityUid Owner, IReadOnlyList Entities);