Show / Hide Table of Contents

Class Marking

Inheritance
System.Object
Marking
Implements
IComparable<Marking>
IComparable<System.String>
Namespace: Content.Shared.Humanoid.Markings
Assembly: Content.Shared.dll
Syntax
public sealed class Marking : IEquatable<Marking>, IComparable<Marking>, IComparable<string>

Constructors

| Improve this Doc View Source

Marking(Marking)

Declaration
public Marking(Marking other)
Parameters
Type Name Description
Marking other
| Improve this Doc View Source

Marking(String, IReadOnlyList<Color>)

Declaration
public Marking(string markingId, IReadOnlyList<Color> markingColors)
Parameters
Type Name Description
System.String markingId
IReadOnlyList<Color> markingColors
| Improve this Doc View Source

Marking(String, List<Color>)

Declaration
public Marking(string markingId, List<Color> markingColors)
Parameters
Type Name Description
System.String markingId
List<Color> markingColors
| Improve this Doc View Source

Marking(String, Int32)

Declaration
public Marking(string markingId, int colorCount)
Parameters
Type Name Description
System.String markingId
System.Int32 colorCount

Fields

| Improve this Doc View Source

Forced

If this marking should be forcefully applied, regardless of points.

Declaration
public bool Forced
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

Visible

If this marking is currently visible.

Declaration
public bool Visible
Field Value
Type Description
System.Boolean

Properties

| Improve this Doc View Source

MarkingColors

All colors currently on this marking.

Declaration
public IReadOnlyList<Color> MarkingColors { get; }
Property Value
Type Description
IReadOnlyList<Color>
| Improve this Doc View Source

MarkingId

ID of the marking prototype.

Declaration
public string MarkingId { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

CompareTo(Marking)

Declaration
public int CompareTo(Marking marking)
Parameters
Type Name Description
Marking marking
Returns
Type Description
System.Int32
| Improve this Doc View Source

CompareTo(Nullable<String>)

Declaration
public int CompareTo(string? markingId)
Parameters
Type Name Description
System.Nullable<System.String> markingId
Returns
Type Description
System.Int32
| Improve this Doc View Source

Equals(Marking)

Declaration
public bool Equals(Marking other)
Parameters
Type Name Description
Marking other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ParseFromDbString(String)

Declaration
public static Marking ParseFromDbString(string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
Marking
| Improve this Doc View Source

SetColor(Color)

Declaration
public void SetColor(Color color)
Parameters
Type Name Description
Color color
| Improve this Doc View Source

SetColor(Int32, Color)

Declaration
public void SetColor(int colorIndex, Color color)
Parameters
Type Name Description
System.Int32 colorIndex
Color color
| Improve this Doc View Source

ToString()

Declaration
public string ToString()
Returns
Type Description
System.String

Implements

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