19 lines
711 B
C#
19 lines
711 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared._Sunrise.TTS;
|
|
|
|
/// <summary>
|
|
/// Apply TTS for entity chat say messages
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
// ReSharper disable once InconsistentNaming
|
|
public sealed partial class TTSComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Prototype of used voice for TTS.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("voice", customTypeSerializer: typeof(PrototypeIdSerializer<TTSVoicePrototype>))]
|
|
public string? VoicePrototypeId { get; set; } = "Voljin"; // Fish-edit: Default voice when component is freshly added
|
|
}
|