public SetLines ( string spellName, int lines ) : void | ||
spellName | string | |
lines | int | |
return | void |
ComputedSpellLines CalculateLines(StaffMetadata staff) { var staffSpellLines = new ComputedSpellLines(); foreach (var spell in SpellMetadataManager.Instance.Spells) { var lines = CalculateLinesForSpell(staff, spell); staffSpellLines.SetLines(spell.Name, lines); } return(staffSpellLines); }
public void RecalculateSpell(StaffMetadata staff, SpellMetadata spell) { ComputedSpellLines allLines = null; var lines = CalculateLinesForSpell(staff, spell); if (!computedLines.TryGetValue(staff.Name, out allLines)) { allLines = CalculateLines(staff); computedLines[staff.Name] = allLines; } allLines.SetLines(spell.Name, lines); }
ComputedSpellLines CalculateLines(StaffMetadata staff) { var staffSpellLines = new ComputedSpellLines(); foreach (var spell in SpellMetadataManager.Instance.Spells) { var lines = CalculateLinesForSpell(staff, spell); staffSpellLines.SetLines(spell.Name, lines); } return staffSpellLines; }