Show / Hide Table of Contents

Class HumanoidAppearanceSystem

Inheritance
System.Object
SharedHumanoidAppearanceSystem
HumanoidAppearanceSystem
Namespace: Content.Server.Humanoid
Assembly: Content.Server.dll
Syntax
public sealed class HumanoidAppearanceSystem : SharedHumanoidAppearanceSystem

Methods

| Improve this Doc View Source

CloneAppearance(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.

| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
SharedHumanoidAppearanceSystem.Initialize()
| Improve this Doc View Source

RemoveMarking(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾