fish-station/Content.Server/_Sunrise/ReplacementVocal/ReplacementVocalComponent.cs
2025-08-13 16:00:32 +03:00

24 lines
886 B
C#

using Content.Shared.Chat.Prototypes;
using Content.Shared.Humanoid;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary;
namespace Content.Server._Sunrise.ReplacementVocal;
/// <summary>
/// Компонент для замены вокальных звуков и эмоций сущности.
/// Сохраняет предыдущие настройки для возможности восстановления.
/// </summary>
[RegisterComponent]
public sealed partial class ReplacementVocalComponent : Component
{
[DataField(required: true)]
public Dictionary<Sex, ProtoId<EmoteSoundsPrototype>> Vocal;
[DataField]
public HashSet<string> AddedEmotes = new();
[DataField]
public Dictionary<Sex, ProtoId<EmoteSoundsPrototype>>? PreviousVocal;
}