mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* asset upload * fixes * yml * guidebook, alert * yml fixes * yml you silly goose * yml and ft and just one tiny tiny cs * wtf is git doing i swear i already comitted these exact files * i can't believe it took 16 minutes to fail an enum * test fails begone. please. * ccvar namespace correction * ftl changes, namespace fixes again * wow actiongrant yml conflicts make me angrier than god * razor weapon dev * some requested changes * more requested changes * step one of who knows how many requested changes * grabbag of bugfixes * big refactorenning * the refactorings continue * bugfixes, some timering * ability system feedbacks * finish detimering * she feed on my back til i loop * ough * linq... * unity * mrrrp * meow * todo * mrp * woe rider mass cleanup be upon ye * ough * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert "woe rider mass cleanup be upon ye" This reverts commit 5e24490a66389c78efe969d16e43a7c5d52c1249. * 3 of 9 * omegadictionary begone * centralize is cosmic cult/sees cosmic cult checks * durations * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * florbular Co-authored-by: Tobias Berger <toby@tobot.dev> Signed-off-by: pathetic meowmeow <uhhadd@gmail.com> * feedback is stored in the git * yaml warrior * test fail real * dont specify the default --------- Signed-off-by: pathetic meowmeow <uhhadd@gmail.com> Co-authored-by: Janet Blackquill <uhhadd@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Berger <toby@tobot.dev>
78 lines
2.2 KiB
C#
78 lines
2.2 KiB
C#
using Content.Shared.CCVar;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Serialization;
|
|
namespace Content.Shared.Audio;
|
|
|
|
/// <summary>
|
|
/// Handles playing audio to all players globally unless disabled by cvar. Some events are grid-specific.
|
|
/// </summary>
|
|
public abstract class SharedGlobalSoundSystem : EntitySystem
|
|
{
|
|
}
|
|
|
|
[Virtual]
|
|
[Serializable, NetSerializable]
|
|
public class GlobalSoundEvent : EntityEventArgs
|
|
{
|
|
public ResolvedSoundSpecifier Specifier;
|
|
public AudioParams? AudioParams;
|
|
public GlobalSoundEvent(ResolvedSoundSpecifier specifier, AudioParams? audioParams = null)
|
|
{
|
|
Specifier = specifier;
|
|
AudioParams = audioParams;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Intended for admin music. Can be disabled by the <seealso cref="CCVars.AdminSoundsEnabled"/> cvar.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class AdminSoundEvent : GlobalSoundEvent
|
|
{
|
|
public AdminSoundEvent(ResolvedSoundSpecifier specifier, AudioParams? audioParams = null) : base(specifier, audioParams){}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Intended for misc sound effects. Can't be disabled by cvar.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class GameGlobalSoundEvent : GlobalSoundEvent
|
|
{
|
|
public GameGlobalSoundEvent(ResolvedSoundSpecifier specifier, AudioParams? audioParams = null) : base(specifier, audioParams){}
|
|
}
|
|
|
|
public enum StationEventMusicType : byte
|
|
{
|
|
Nuke,
|
|
CosmicCult, // DeltaV - Cosmic Cult
|
|
}
|
|
|
|
/// <summary>
|
|
/// Intended for music triggered by events on a specific station. Can be disabled by the <seealso cref="CCVars.EventMusicEnabled"/> cvar.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class StationEventMusicEvent : GlobalSoundEvent
|
|
{
|
|
public StationEventMusicType Type;
|
|
|
|
public StationEventMusicEvent(ResolvedSoundSpecifier specifier, StationEventMusicType type, AudioParams? audioParams = null) : base(
|
|
specifier, audioParams)
|
|
{
|
|
Type = type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Attempts to stop a playing <seealso cref="StationEventMusicEvent"/> stream.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class StopStationEventMusic : EntityEventArgs
|
|
{
|
|
public StationEventMusicType Type;
|
|
|
|
public StopStationEventMusic(StationEventMusicType type)
|
|
{
|
|
Type = type;
|
|
}
|
|
}
|