CatStation/Content.Shared/Humanoid/HumanoidProfileComponent.cs
2026-01-24 00:41:36 +07:00

33 lines
985 B
C#

using Content.Shared.Corvax.TTS;
using Content.Shared.Humanoid.Prototypes;
using Content.Shared.Preferences;
using Robust.Shared.Enums;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Humanoid;
/// <summary>
/// Dictates what species and age this character "looks like"
/// </summary>
[NetworkedComponent, RegisterComponent, AutoGenerateComponentState(true)]
[Access(typeof(HumanoidProfileSystem))]
public sealed partial class HumanoidProfileComponent : Component
{
[DataField, AutoNetworkedField]
public Gender Gender;
[DataField, AutoNetworkedField]
public Sex Sex;
[DataField, AutoNetworkedField]
public int Age = 18;
[DataField, AutoNetworkedField]
public ProtoId<SpeciesPrototype> Species = HumanoidCharacterProfile.DefaultSpecies;
// Corvax-TTS-Start
[DataField("voice")]
public ProtoId<TTSVoicePrototype> Voice { get; set; } = HumanoidProfileSystem.DefaultVoice;
// Corvax-TTS-End
}