Skip to content

Commit

Permalink
Engine - ECS: add SymbolColor docs
Browse files Browse the repository at this point in the history
  • Loading branch information
friflo committed May 18, 2024
1 parent 4b7ccf5 commit 4d6b7f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Engine/src/ECS/Base/SchemaType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,21 @@ private static BlittableType AreAllMembersBlittable(Type type)
}
}

/// <summary>
/// The color assigned to a component or tag via <see cref="ComponentSymbolAttribute"/> for display in a UI or CLI.
/// </summary>
public readonly struct SymbolColor
{
/// <summary> Gets the red component value of this Color. </summary>
public readonly byte r;

/// <summary> Gets the green component value of this Color. </summary>
public readonly byte g;

/// <summary> Gets the blue component value of this Color. </summary>
public readonly byte b;

/// <summary> Create a <see cref="SymbolColor"/> with the specified color components. </summary>
public SymbolColor (byte r, byte g, byte b) {
this.r = r;
this.g = g;
Expand Down

0 comments on commit 4d6b7f7

Please sign in to comment.