Show / Hide Table of Contents

Class HumanoidCharacterAppearance

Inheritance
System.Object
HumanoidCharacterAppearance
Implements
ICharacterAppearance
Namespace: Content.Shared.Humanoid
Assembly: Content.Shared.dll
Syntax
public sealed class HumanoidCharacterAppearance : object, ICharacterAppearance

Constructors

| Improve this Doc View Source

HumanoidCharacterAppearance()

Declaration
public HumanoidCharacterAppearance()
| Improve this Doc View Source

HumanoidCharacterAppearance(String, Color, String, Color, Color, Color, List<Marking>)

Declaration
public HumanoidCharacterAppearance(string hairStyleId, Color hairColor, string facialHairStyleId, Color facialHairColor, Color eyeColor, Color skinColor, List<Marking> markings)
Parameters
Type Name Description
System.String hairStyleId
Color hairColor
System.String facialHairStyleId
Color facialHairColor
Color eyeColor
Color skinColor
List<Marking> markings

Properties

| Improve this Doc View Source

EyeColor

Declaration
public Color EyeColor { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

FacialHairColor

Declaration
public Color FacialHairColor { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

FacialHairStyleId

Declaration
public string FacialHairStyleId { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

HairColor

Declaration
public Color HairColor { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

HairStyleId

Declaration
public string HairStyleId { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Markings

Declaration
public List<Marking> Markings { get; }
Property Value
Type Description
List<Marking>
| Improve this Doc View Source

SkinColor

Declaration
public Color SkinColor { get; }
Property Value
Type Description
Color

Methods

| Improve this Doc View Source

ClampColor(Color)

Declaration
public static Color ClampColor(Color color)
Parameters
Type Name Description
Color color
Returns
Type Description
Color
| Improve this Doc View Source

DefaultWithSpecies(String)

Declaration
public static HumanoidCharacterAppearance DefaultWithSpecies(string species)
Parameters
Type Name Description
System.String species
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

EnsureValid(HumanoidCharacterAppearance, String, Sex)

Declaration
public static HumanoidCharacterAppearance EnsureValid(HumanoidCharacterAppearance appearance, string species, Sex sex)
Parameters
Type Name Description
HumanoidCharacterAppearance appearance
System.String species
Sex sex
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

MemberwiseEquals(ICharacterAppearance)

Declaration
public bool MemberwiseEquals(ICharacterAppearance maybeOther)
Parameters
Type Name Description
ICharacterAppearance maybeOther
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Random(String, Sex)

Declaration
public static HumanoidCharacterAppearance Random(string species, Sex sex)
Parameters
Type Name Description
System.String species
Sex sex
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

WithEyeColor(Color)

Declaration
public HumanoidCharacterAppearance WithEyeColor(Color newColor)
Parameters
Type Name Description
Color newColor
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

WithFacialHairColor(Color)

Declaration
public HumanoidCharacterAppearance WithFacialHairColor(Color newColor)
Parameters
Type Name Description
Color newColor
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

WithFacialHairStyleName(String)

Declaration
public HumanoidCharacterAppearance WithFacialHairStyleName(string newName)
Parameters
Type Name Description
System.String newName
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

WithHairColor(Color)

Declaration
public HumanoidCharacterAppearance WithHairColor(Color newColor)
Parameters
Type Name Description
Color newColor
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

WithHairStyleName(String)

Declaration
public HumanoidCharacterAppearance WithHairStyleName(string newName)
Parameters
Type Name Description
System.String newName
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

WithMarkings(List<Marking>)

Declaration
public HumanoidCharacterAppearance WithMarkings(List<Marking> newMarkings)
Parameters
Type Name Description
List<Marking> newMarkings
Returns
Type Description
HumanoidCharacterAppearance
| Improve this Doc View Source

WithSkinColor(Color)

Declaration
public HumanoidCharacterAppearance WithSkinColor(Color newColor)
Parameters
Type Name Description
Color newColor
Returns
Type Description
HumanoidCharacterAppearance

Implements

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