SpeechSoundsPrototype.cs 995 B

123456789101112131415161718192021222324252627
  1. using Robust.Shared.Audio;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Shared.Speech
  4. {
  5. [Prototype]
  6. public sealed partial class SpeechSoundsPrototype : IPrototype
  7. {
  8. [ViewVariables]
  9. [IdDataField]
  10. public string ID { get; private set; } = default!;
  11. //Variation is here instead of in SharedSpeechComponent since some sets of
  12. //sounds may require more fine tuned pitch variation than others.
  13. [DataField("variation")]
  14. public float Variation { get; set; } = 0.1f;
  15. [DataField("saySound")]
  16. public SoundSpecifier SaySound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2.ogg");
  17. [DataField("askSound")]
  18. public SoundSpecifier AskSound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2_ask.ogg");
  19. [DataField("exclaimSound")]
  20. public SoundSpecifier ExclaimSound { get; set; } = new SoundPathSpecifier("/Audio/Voice/Talk/speak_2_exclaim.ogg");
  21. }
  22. }