This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
forked from estacaoespacialpirata/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Glimmer-Reactive Prober Ambient Sounds (space-wizards#1345)
* Add Glimmer Reactivity to Probers for Testing * Add Troubleshooting for Prober Glimmer Reactivity * Remove Unneeded Line * Fix Prober Glimmer Reactivity * Bugfix Glimmer Reactive Probers * Add Fourth Dangerous Ambient Hum
- Loading branch information
Showing
10 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Content.Server.Psionics.Glimmer; | ||
using Content.Shared.Audio; | ||
using Content.Shared.Psionics.Glimmer; | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.ComponentTrees; | ||
using Robust.Shared.GameStates; | ||
using Robust.Shared.Physics; | ||
using Robust.Shared.Serialization; | ||
|
||
namespace Content.Server.Audio | ||
{ | ||
[RegisterComponent] | ||
[Access(typeof(SharedAmbientSoundSystem), typeof(GlimmerReactiveSystem))] | ||
public sealed class GlimmerSoundComponent : Component | ||
{ | ||
[DataField("glimmerTier", required: true), ViewVariables(VVAccess.ReadWrite)] // only for map editing | ||
public Dictionary<string, SoundSpecifier> Sound { get; set; } = new(); | ||
|
||
public bool GetSound(GlimmerTier glimmerTier, out SoundSpecifier? spec) | ||
{ | ||
return Sound.TryGetValue(glimmerTier.ToString(), out spec); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters