Method FinalizePreview
FinalizePreview(string, CharacterClass)
Turns the preview into a real hero: charges the class price, names it, plays the sit animation, adds it to the party and fires HeroCreated.
public HeroController FinalizePreview(string heroName, CharacterClass characterClass)
Parameters
heroNamestringcharacterClassCharacterClass
Returns
- HeroController
The hero, or null when there was no preview to finalize.