28 lines
1003 B
C#
28 lines
1003 B
C#
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Speech
|
|
{
|
|
[Prototype("speechSounds")]
|
|
public sealed class SpeechSoundsPrototype : IPrototype
|
|
{
|
|
[ViewVariables]
|
|
[IdDataField]
|
|
public string ID { get; private set; } = default!;
|
|
|
|
//Variation is here instead of in SharedSpeechComponent since some sets of
|
|
//sounds may require more fine tuned pitch variation than others.
|
|
[DataField("variation")]
|
|
public float Variation { get; set; } = 0.1f;
|
|
|
|
[DataField("saySound")]
|
|
public SoundSpecifier SaySound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2.ogg");
|
|
|
|
[DataField("askSound")]
|
|
public SoundSpecifier AskSound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2_ask.ogg");
|
|
|
|
[DataField("exclaimSound")]
|
|
public SoundSpecifier ExclaimSound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2_exclaim.ogg");
|
|
}
|
|
}
|