Files
OldThink/Content.Server/VoiceMask/VoiceMaskComponent.cs

27 lines
767 B
C#
Raw Permalink Normal View History

using Content.Shared.Humanoid;
using Content.Shared.Speech;
using Robust.Shared.Prototypes;
2022-09-28 19:22:27 -07:00
namespace Content.Server.VoiceMask;
[RegisterComponent]
public sealed partial class VoiceMaskComponent : Component
2022-09-28 19:22:27 -07:00
{
[DataField]
[ViewVariables(VVAccess.ReadWrite)]
public bool Enabled = true;
2022-09-28 19:22:27 -07:00
[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;
2024-01-27 09:34:07 +03:00
[ViewVariables(VVAccess.ReadWrite)] public string VoiceId = SharedHumanoidAppearanceSystem.DefaultVoice; //TTS
2022-09-28 19:22:27 -07:00
}