Class LeaderboardViewDefinitionScanner
The rules for whether an authored UnityLeaderboardViewDefinition will actually render: ids present, the board it points at exists, and a column/layout authoring that leaves something to draw.
Inherited Members
Namespace: Serenity.Leaderboard.Infrastructure.Validation
Assembly: Serenity.UnityLeaderboard.Infrastructure.dll
Syntax
public static class LeaderboardViewDefinitionScanner
Remarks
Modelled on HudDefinitionScanner: engine-agnostic and resolver-free, so it runs in a plain NUnit
test, in the editor, and in CI with no Unity asset database required. knownBoardIds
is passed in rather than read from UnityLeaderboardSettings directly for the same reason.
Methods
Scan(UnityLeaderboardViewDefinition, IReadOnlyList<string>)
Scans one leaderboard view definition.
Declaration
public static IReadOnlyList<AuthoringIssue> Scan(UnityLeaderboardViewDefinition view, IReadOnlyList<string> knownBoardIds)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityLeaderboardViewDefinition | view | The view to scan. |
| IReadOnlyList<string> | knownBoardIds | Every |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<AuthoringIssue> | Every finding about the view. |