Files
tbd-station-14/Content.Server/Speech/Components/AddAccentClothingComponent.cs
Winkarst 0d33e6182c Split `ReplacementAccentPrototype and ReplacementAccentComponent` in different files (#35107)
* Split ReplacementAccentPrototype  and ReplacementAccentComponent

* Fixes

* Fixes

* inheritdoc
2025-02-12 12:21:12 +01:00

30 lines
1015 B
C#

using Content.Server.Speech.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Speech.Components;
/// <summary>
/// Applies accent to user while they wear entity as a clothing.
/// </summary>
[RegisterComponent]
public sealed partial class AddAccentClothingComponent : Component
{
/// <summary>
/// Component name for accent that will be applied.
/// </summary>
[DataField("accent", required: true)]
public string Accent = default!;
/// <summary>
/// What <see cref="ReplacementAccentPrototype"/> to use.
/// Will be applied only with <see cref="ReplacementAccentComponent"/>.
/// </summary>
[DataField("replacement", customTypeSerializer: typeof(PrototypeIdSerializer<ReplacementAccentPrototype>))]
public string? ReplacementPrototype;
/// <summary>
/// Is that clothing is worn and affecting someones accent?
/// </summary>
public bool IsActive = false;
}