27 lines
880 B
C#
27 lines
880 B
C#
using Content.Shared.EntityTable.EntitySelectors;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Delivery;
|
|
|
|
/// <summary>
|
|
/// Used to mark entities that are valid for spawning deliveries on.
|
|
/// If this requires power, it needs to be powered to count as a valid spawner.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class DeliverySpawnerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The entity table to select deliveries from.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public EntityTableSelector Table = default!;
|
|
|
|
/// <summary>
|
|
/// The sound to play when the spawner spawns a delivery.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier? SpawnSound = new SoundCollectionSpecifier("DeliverySpawnSounds", AudioParams.Default.WithVolume(-7));
|
|
}
|