Class AmbientMusicPrototype
Attaches a rules prototype to sound files to play ambience.
Inheritance
System.Object
AmbientMusicPrototype
Implements
Robust.Shared.Prototypes.IPrototype
Namespace: Content.Shared.Audio
Assembly: Content.Shared.dll
Syntax
public sealed class AmbientMusicPrototype : object, IPrototype
Fields
| Improve this Doc View SourceFadeIn
Do we fade-in. Useful for songs.
Declaration
public bool FadeIn
Field Value
Type | Description |
---|---|
System.Boolean |
Interruptable
Can we interrupt this ambience for a better prototype if possible?
Declaration
public bool Interruptable
Field Value
Type | Description |
---|---|
System.Boolean |
Priority
Traditionally you'd prioritise most rules to least as priority but in our case we'll just be explicit.
Declaration
public int Priority
Field Value
Type | Description |
---|---|
System.Int32 |
Rules
Declaration
public string Rules
Field Value
Type | Description |
---|---|
System.String |
Sound
Declaration
public SoundSpecifier Sound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
Properties
| Improve this Doc View SourceID
Declaration
public string ID { get; }
Property Value
Type | Description |
---|---|
System.String |
Implements
Robust.Shared.Prototypes.IPrototype