Class Marking
Inheritance
System.Object
Marking
Implements
IComparable<System.String>
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
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Visible
If this marking is currently visible.
Declaration
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
|
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
Returns
Type |
Description |
System.String |
|
Implements
IComparable<>
IComparable<>