ProjectVGameplayTelemetryView class
The character's health and armor at the end of a run, sent with the result.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Gameplay
public sealed class ProjectVGameplayTelemetryView
Constructors
ProjectVGameplayTelemetryView(int health, int startingMaximumHealth, int armor, int startingMaximumArmor, long damageTaken, int shieldActivations, long shieldAbsorptions)
Creates the end-of-run statistics. All values must be 0 or more.
public ProjectVGameplayTelemetryView(int health, int startingMaximumHealth, int armor, int startingMaximumArmor, long damageTaken, int shieldActivations, long shieldAbsorptions);
Parameters
| Name | Type | Description |
|---|---|---|
health | int | Health left at the end, from 0 to startingMaximumHealth. |
startingMaximumHealth | int | Maximum health at the start; use ProjectVGameplayStartingDataView.MaximumHealth. Must be above 0. |
armor | int | Armor left at the end, from 0 to startingMaximumArmor. |
startingMaximumArmor | int | Maximum armor at the start; use ProjectVGameplayStartingDataView.MaximumArmor. |
damageTaken | long | Total damage taken during the run. |
shieldActivations | int | How many times a shield was activated; 0 if the game has no shields. |
shieldAbsorptions | long | Total damage shields absorbed; 0 if the game has no shields. |
Properties
| Property | Type | Description |
|---|---|---|
Health | int | Health left at the end of the run. |
StartingMaximumHealth | int | Maximum health at the start of the run. |
Armor | int | Armor left at the end of the run. |
StartingMaximumArmor | int | Maximum armor at the start of the run. |
DamageTaken | long | Total damage taken during the run. |
ShieldActivations | int | How many times a shield was activated. |
ShieldAbsorptions | long | Total damage shields absorbed. |