* ambient loop systems * audio content * Update ContentAudioSystem.CP14AmbientLoop.cs * Update attributions.yml * limit frequency * Update CP14AmbientLoopPrototype.cs * Create IsDaylight.cs * fix problem
21 lines
633 B
C#
21 lines
633 B
C#
using Content.Shared.Random.Rules;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Audio;
|
|
|
|
/// <summary>
|
|
/// Attaches a rules prototype to sound files to play ambience.
|
|
/// </summary>
|
|
[Prototype("ambientLoop")]
|
|
public sealed partial class CP14AmbientLoopPrototype : IPrototype
|
|
{
|
|
[IdDataField] public string ID { get; } = string.Empty;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("sound", required: true)]
|
|
public SoundSpecifier Sound = default!;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("rules", required: true)]
|
|
public ProtoId<RulesPrototype> Rules = string.Empty;
|
|
}
|