27 lines
767 B
C#
27 lines
767 B
C#
using Content.Shared.Humanoid;
|
|
using Content.Shared.Speech;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.VoiceMask;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class VoiceMaskComponent : Component
|
|
{
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public bool Enabled = true;
|
|
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string VoiceName = "Unknown";
|
|
|
|
/// <summary>
|
|
/// If EnableSpeechVerbModification is true, overrides the speech verb used when this entity speaks.
|
|
/// </summary>
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public ProtoId<SpeechVerbPrototype>? SpeechVerb;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)] public string VoiceId = SharedHumanoidAppearanceSystem.DefaultVoice; //TTS
|
|
}
|