コード例 #1
0
ファイル: ControllTalent.cs プロジェクト: Neburel/DSA_Project
        public void loadTalent <T>(Interface_LoadFile_TalentFile loader, String[] files) where T : InterfaceTalent
        {
            List <InterfaceTalent> list = new List <InterfaceTalent>();
            Type type = typeof(T);

            for (int j = 0; j < files.Count(); j++)
            {
                T talent = loader.loadFile <T>(files[j]);
                list.Add(talent);
            }
            TalentDictonary.Add(type, list);
        }
コード例 #2
0
        public void loadBasicStructurTalentCrafting()
        {
            String file = Path.Combine(ResourcePath, "Basic_Construction_01.xml");

            currentName              = "BasicConstructionTalent01";
            currentComplexeName      = "BasicConstructionTalent01";
            currentProbeStringOne    = "-";
            currentProbeStringTwo    = "";
            currentBE                = "-";
            currentDeviate           = "-";
            currentTAW               = "-";
            currentTAWBonus          = "0";
            currentProbeCount        = 0;
            currentRequirementString = "-";

            InterfaceTalent talent = loader.loadFile <TalentCrafting>(file);

            currentType = typeof(TalentCrafting);

            controllInterfaceTalent(talent);
            controllTalentGeneral((TalentCrafting)talent);
        }