Skip to main content

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

NameTypeDescription
healthintHealth left at the end, from 0 to startingMaximumHealth.
startingMaximumHealthintMaximum health at the start; use ProjectVGameplayStartingDataView.MaximumHealth. Must be above 0.
armorintArmor left at the end, from 0 to startingMaximumArmor.
startingMaximumArmorintMaximum armor at the start; use ProjectVGameplayStartingDataView.MaximumArmor.
damageTakenlongTotal damage taken during the run.
shieldActivationsintHow many times a shield was activated; 0 if the game has no shields.
shieldAbsorptionslongTotal damage shields absorbed; 0 if the game has no shields.

Properties​

PropertyTypeDescription
HealthintHealth left at the end of the run.
StartingMaximumHealthintMaximum health at the start of the run.
ArmorintArmor left at the end of the run.
StartingMaximumArmorintMaximum armor at the start of the run.
DamageTakenlongTotal damage taken during the run.
ShieldActivationsintHow many times a shield was activated.
ShieldAbsorptionslongTotal damage shields absorbed.