Chuyển tới nội dung chính

ProjectVGameplayStartingDataView class

Everything the mission scene needs to start the run: the character, its stats and skills, allies and reward enemies. Fixed by the server when the run started; later Character screen changes do not affect it.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Gameplay

public sealed class ProjectVGameplayStartingDataView

Properties​

PropertyTypeDescription
ActiveCharacterIdstringThe character the run started with (the loadout's active character). Spawn this one, not a locally selected one.
ActiveCharacterLevelintThe level of ActiveCharacterId, 1 or higher. If you rebuild stats yourself, use this level instead of the level in your local assets.
StatsProjectVCharacterStatsEvery stat of ActiveCharacterId for this run. Apply these to the spawned character instead of local asset formulas; MaximumHealth and MaximumArmor are the same health and armor.
SkillsIReadOnlyList<ProjectVGameplaySkillRankView>The skill-tree ranks of ActiveCharacterId for this run.
CastSkillsIReadOnlyList<ProjectVGameplayCastSkillView>The active skills of ActiveCharacterId: at most one per slot. Check that your skill asset for each slot has exactly this level and skill ID before the run starts.
AlliesIReadOnlyList<ProjectVGameplayAllyView>The teammates that join the run; empty when there are none.
MaximumHealthintThe starting maximum health of the character.
MaximumArmorintThe starting maximum armor of the character.
SkillCatalogIdsIReadOnlyList<ProjectVGameplaySkillId>The skill IDs of the character's skill tree, for mapping to your skill assets.
DropsIReadOnlyList<ProjectVGameplayDropView>The reward-carrying enemies of this run, keyed by the slot ID you placed on them in the scene.