Example #1
0
        public void CreateClassSettings(ActorClass actorclass)
        {
            if (actorclass != ActorClass.Invalid)
            {
                switch (actorclass)
                {
                case ActorClass.Barbarian:
                    Barbarian = new SettingBarbarian();
                    break;

                case ActorClass.Crusader:
                    Crusader = new SettingCrusader();
                    break;

                case ActorClass.DemonHunter:
                    DemonHunter = new SettingDemonHunter();
                    break;

                case ActorClass.Monk:
                    Monk = new SettingMonk();
                    break;

                case ActorClass.Witchdoctor:
                    WitchDoctor = new SettingWitchDoctor();
                    break;

                case ActorClass.Wizard:
                    Wizard = new SettingWizard();
                    break;
                }
            }
        }
Example #2
0
 public void CreateClassSettings(ActorClass actorclass)
 {
     if (actorclass != ActorClass.Invalid)
     {
         switch (actorclass)
         {
             case ActorClass.Barbarian:
                 Barbarian = new SettingBarbarian();
                 break;
             case ActorClass.Crusader:
                 Crusader = new SettingCrusader();
                 break;
             case ActorClass.DemonHunter:
                 DemonHunter = new SettingDemonHunter();
                 break;
             case ActorClass.Monk:
                 Monk = new SettingMonk();
                 break;
             case ActorClass.Witchdoctor:
                 WitchDoctor = new SettingWitchDoctor();
                 break;
             case ActorClass.Wizard:
                 Wizard = new SettingWizard();
                 break;
         }
     }
 }