Vixen
c7401864
csharp
public sealed class TalentAllocation

How many ranks of each node somebody has taken. The durable half.

Read the guide page for this →

Remarks

A dictionary of ids rather than an array of indices, because this is what a save holds and a node's index moves when a designer inserts one above it.

Fields and properties (2)

  • public int Count

    How many nodes have any rank.

  • public IReadOnlyDictionary<string, int> Ranks

    Everything taken, by node id.

Methods (4)

  • public int RanksOf(string node)

    How many ranks of one node.

  • public TalentAllocation Set(string node, int count)

    Sets how many ranks of one node.

  • public void Clear()

    Forgets everything. What a respec does before the new allocation arrives.

  • public TalentAllocation Copy()

    A copy, for an editor's undo or a speculative validation.

Used by (6)

  • ProgressionSectionVixen.Live.Gameplay
  • ProgressionSectionTestsVixen.Live.Gameplay.Tests
  • ProgressionStateVixen.Gameplay.Progression
  • ProgressionStateTestsVixen.Gameplay.Progression.Tests
  • TalentTreeVixen.Gameplay.Progression
  • TalentTreeTestsVixen.Gameplay.Progression.Tests