Adds species to HumanoidAppearanceComponent (#7445)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Content.Shared.CharacterAppearance;
|
||||
using Content.Shared.CharacterAppearance.Systems;
|
||||
using Content.Shared.Species;
|
||||
using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.Enums;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -25,6 +26,9 @@ namespace Content.Shared.CharacterAppearance.Components
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public Gender Gender { get; set; } = default!;
|
||||
|
||||
[ViewVariables]
|
||||
public string Species { get; set; } = SpeciesManager.DefaultSpecies;
|
||||
|
||||
[DataField("categoriesHair")]
|
||||
[ViewVariables]
|
||||
public SpriteAccessoryCategories CategoriesHair { get; set; } = SpriteAccessoryCategories.HumanHair;
|
||||
@@ -56,14 +60,17 @@ namespace Content.Shared.CharacterAppearance.Components
|
||||
public HumanoidCharacterAppearance Appearance { get; }
|
||||
public Sex Sex { get; }
|
||||
public Gender Gender { get; }
|
||||
public string Species { get; }
|
||||
|
||||
public HumanoidAppearanceComponentState(HumanoidCharacterAppearance appearance,
|
||||
Sex sex,
|
||||
Gender gender)
|
||||
Gender gender,
|
||||
string species)
|
||||
{
|
||||
Appearance = appearance;
|
||||
Sex = sex;
|
||||
Gender = gender;
|
||||
Species = species;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user