コード例 #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;
                }
            }
        }
コード例 #2
0
ファイル: PluginSettings.cs プロジェクト: herbfunk/Funky
 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;
         }
     }
 }