using Robust.Shared.Audio;
namespace Content.Shared._CP14.Demiplane.Components;
///
/// Destroy demiplane after time
///
[RegisterComponent, AutoGenerateComponentState, AutoGenerateComponentPause, Access(typeof(CP14SharedDemiplaneSystem))]
public sealed partial class CP14DemiplaneTimedDestructionComponent : Component
{
[DataField]
public TimeSpan TimeToDestruction = TimeSpan.FromSeconds(150f);
[DataField, AutoPausedField]
public TimeSpan EndTime = TimeSpan.Zero;
///
/// Countdown audio stream.
///
[DataField, AutoNetworkedField]
public EntityUid? Stream = null;
///
/// Sound that plays when the demiplane start to collapse.
///
[DataField]
public SoundSpecifier Sound = new SoundCollectionSpecifier("ExpeditionEnd")
{
Params = AudioParams.Default.WithVolume(-5),
};
///
/// Song selected on MapInit so we can predict the audio countdown properly.
///
[DataField]
public SoundPathSpecifier? SelectedSong;
}