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); }
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); }