ProjectVGameplayCompletionView class
The result of a run, sent with IProjectVGameplayDataPresenter.CompleteAsync. When you use IProjectVGameplayDataPolicy.CompleteObservedAsync, the SDK builds it for you.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Gameplay
public sealed class ProjectVGameplayCompletionView
Constructors
ProjectVGameplayCompletionView(ProjectVGameplayDataOutcome outcome, long rawSessionExperience, IReadOnlyList<string> defeatedDropIds, ProjectVGameplayTelemetryView telemetry, long? enemiesDefeated, IReadOnlyList<ProjectVGameplayClientRewardView>? clientRewards)
Creates a run result. The lists are copied.
public ProjectVGameplayCompletionView(ProjectVGameplayDataOutcome outcome, long rawSessionExperience, IReadOnlyList<string> defeatedDropIds, ProjectVGameplayTelemetryView telemetry, long? enemiesDefeated = null, IReadOnlyList<ProjectVGameplayClientRewardView>? clientRewards = null);
Parameters
| Name | Type | Description |
|---|---|---|
outcome | ProjectVGameplayDataOutcome | How the run ended. |
rawSessionExperience | long | Experience earned in the run before any bonus; 0 or more. |
defeatedDropIds | IReadOnlyList<string> | Slot IDs of the reward enemies defeated. Empty for a win: the server grants every drop. |
telemetry | ProjectVGameplayTelemetryView | Health and armor at the end of the run. |
enemiesDefeated | long? | How many enemies the run defeated, from 0 to 1024; null when not counted. |
clientRewards | IReadOnlyList<ProjectVGameplayClientRewardView>? | The picked-up rewards when trust client rewards is on; null when it is off. An empty list means no rewards. |
Exceptions
| Exception | When |
|---|---|
ArgumentNullException | defeatedDropIds or telemetry is null. |
ArgumentException | clientRewards contains a null entry. |
Properties
| Property | Type | Description |
|---|---|---|
Outcome | ProjectVGameplayDataOutcome | How the run ended. |
RawSessionExperience | long | Experience earned in the run before any bonus. |
DefeatedDropIds | IReadOnlyList<string> | Slot IDs of the reward enemies defeated before the run ended; empty for a win. |
Telemetry | ProjectVGameplayTelemetryView | Health and armor at the end of the run. |
EnemiesDefeated | long? | How many enemies the run defeated; used only for star objectives. Null when not counted, which fails star objectives that need a kill count. |
ClientRewards | IReadOnlyList<ProjectVGameplayClientRewardView>? | The picked-up rewards for trust client rewards; null when not used. An empty list means no rewards. |