Exemplo n.º 1
0
        private void saveCurrentPage()
        {
            switch (WM.CurrentState)
            {
            case WizardState.race:
                raceComponent.saveContent();
                alignmentComponent.saveContent();
                break;

            case WizardState.appearance:
                ageComponent.saveContent();
                bodyComponent.saveContent();
                appearanceComponent.saveContent();
                break;

            case WizardState.classBackground:
                classComponent.saveContent();
                backgroundComponent.saveContent();
                break;

            case WizardState.stats:
                abilityComponent.saveContent();
                break;

            case WizardState.languages:
                languageComponent.saveContent();
                break;

            case WizardState.skillEquipment:
                skillComponent.saveContent();
                equipmentComponent.saveContent();
                break;

            case WizardState.spells:
                spellComponent.saveContent();
                break;

            case WizardState.extraRaceChoices:
                extraRaceChoiceComponent.saveContent();
                break;

            case WizardState.extraClassChoices:
                extraClassChoiceComponent.saveContent();
                break;

            case WizardState.extraSubclassChoices:
                extraSubclassChoiceComponent.saveContent();
                break;

            case WizardState.story:
                nameComponent.saveContent();
                storyComponent.saveContent();
                break;

            case WizardState.export:
                exportComponent.saveContent();
                break;

            default:     //WizardState.intro
                introComponent.saveContent();
                break;
            }
        }