2024-01-23 17:12:18 -05:00
|
|
|
using Content.Shared.Speech;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
2022-09-28 19:22:27 -07:00
|
|
|
namespace Content.Server.VoiceMask;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class VoiceMaskComponent : Component
|
2022-09-28 19:22:27 -07:00
|
|
|
{
|
2024-01-23 17:12:18 -05:00
|
|
|
[DataField]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool Enabled = true;
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public string VoiceName = "Unknown";
|
2022-09-28 19:22:27 -07:00
|
|
|
|
2024-01-23 17:12:18 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// If EnableSpeechVerbModification is true, overrides the speech verb used when this entity speaks.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public ProtoId<SpeechVerbPrototype>? SpeechVerb;
|
2022-09-28 19:22:27 -07:00
|
|
|
}
|