Class HumanoidAppearanceSystem
Namespace: Content.Server.Humanoid
Assembly: Content.Server.dll
Syntax
public sealed class HumanoidAppearanceSystem : SharedHumanoidAppearanceSystem
Methods
| Improve this Doc View SourceCloneAppearance(EntityUid, EntityUid, HumanoidAppearanceComponent, HumanoidAppearanceComponent)
Clones a humanoid's appearance to a target mob, provided they both have humanoid components.
Declaration
public void CloneAppearance(EntityUid source, EntityUid target, HumanoidAppearanceComponent sourceHumanoid = null, HumanoidAppearanceComponent targetHumanoid = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | source | Source entity to fetch the original appearance from. |
EntityUid | target | Target entity to apply the source entity's appearance to. |
HumanoidAppearanceComponent | sourceHumanoid | Source entity's humanoid component. |
HumanoidAppearanceComponent | targetHumanoid | Target entity's humanoid component. |
GetAgeRepresentation(String, Int32)
Declaration
public string GetAgeRepresentation(string species, int age)
Parameters
Type | Name | Description |
---|---|---|
System.String | species | |
System.Int32 | age |
Returns
Type | Description |
---|---|
System.String |
GetSpeciesRepresentation(String)
Takes ID of the species prototype, returns UI-friendly name of the species.
Declaration
public string GetSpeciesRepresentation(string speciesId)
Parameters
Type | Name | Description |
---|---|---|
System.String | speciesId |
Returns
Type | Description |
---|---|
System.String |
Initialize()
Declaration
public override void Initialize()
Overrides
| Improve this Doc View SourceRemoveMarking(EntityUid, MarkingCategories, Int32, HumanoidAppearanceComponent)
Removes a marking from a humanoid by category and index.
Declaration
public void RemoveMarking(EntityUid uid, MarkingCategories category, int index, HumanoidAppearanceComponent humanoid = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | Humanoid mob's UID |
MarkingCategories | category | Category of the marking |
System.Int32 | index | Index of the marking |
HumanoidAppearanceComponent | humanoid | Humanoid component of the entity |
RemoveMarking(EntityUid, String, Boolean, HumanoidAppearanceComponent)
Removes a marking from a humanoid by ID.
Declaration
public void RemoveMarking(EntityUid uid, string marking, bool sync = true, HumanoidAppearanceComponent humanoid = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | Humanoid mob's UID |
System.String | marking | The marking to try and remove. |
System.Boolean | sync | Whether to immediately sync this to the humanoid |
HumanoidAppearanceComponent | humanoid | Humanoid component of the entity |
SetMarkingColor(EntityUid, MarkingCategories, Int32, List<Color>, HumanoidAppearanceComponent)
Sets the marking colors of the humanoid in a category at an index in the category's list.
Declaration
public void SetMarkingColor(EntityUid uid, MarkingCategories category, int index, List<Color> colors, HumanoidAppearanceComponent humanoid = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | Humanoid mob's UID |
MarkingCategories | category | Category of the marking |
System.Int32 | index | Index of the marking |
List<Color> | colors | The marking colors to use |
HumanoidAppearanceComponent | humanoid | Humanoid component of the entity |
SetMarkingId(EntityUid, MarkingCategories, Int32, String, HumanoidAppearanceComponent)
Sets the marking ID of the humanoid in a category at an index in the category's list.
Declaration
public void SetMarkingId(EntityUid uid, MarkingCategories category, int index, string markingId, HumanoidAppearanceComponent humanoid = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | Humanoid mob's UID |
MarkingCategories | category | Category of the marking |
System.Int32 | index | Index of the marking |
System.String | markingId | The marking ID to use |
HumanoidAppearanceComponent | humanoid | Humanoid component of the entity |