Class RankExtensions
Extensions class for utilities regarding ranked data
Inheritance
System.Object
RankExtensions
Namespace: R6Stats.Extensions
Assembly: R6Stat-Sharp.dll
Syntax
public static class RankExtensions : object
Methods
| Improve this Doc View SourceGetRankColor(IRankedData, Boolean)
Parse the badge color for a rank
Declaration
public static Color GetRankColor(this IRankedData data, bool parseMax = false)
Parameters
| Type | Name | Description |
|---|---|---|
| IRankedData | data | Object containing the rank information of a player |
| System.Boolean | parseMax | Parse the color of max rank achieved by the player if true, else parse the badge color of the current rank |
Returns
| Type | Description |
|---|---|
| Color | Badge color of the given rank |