private static void InitGameData() { using (var fs = new WzFileSystem { BaseDir = Constants.GameDataPath }) { fs.Init(Constants.GameDataPath + @"img\Data"); var sw = new Stopwatch(); sw.Start(); Task.WaitAll(Task.Run(() => { StringData = new StringProvider(fs); }), Task.Run(() => { EquipTemplates = new EquipProvider(fs); }), Task.Run(() => { ItemOptionTemplates = new ItemOptionProvider(fs); }), Task.Run(() => { ItemTemplates = new ItemProvider(fs); }), Task.Run(() => { QuestTemplates = new QuestProvider(fs); }), Task.Run(() => { MobSkillTemplates = new MobSkillProvider(fs); }), Task.Run(() => { SkillTemplates = new SkillProvider(fs); }), Task.Run(() => { ItemMakeTemplates = new ItemMakeProvider(fs); }), Task.Run(() => { CommodityProvider = new CashCommodityProvider(fs); }), Task.Run(() => { PackageProvider = new CashPackageProvider(fs); }), Task.Run(() => { NpcTemplates = new NpcProvider(fs); }), Task.Run(() => { ReactorTemplates = new ReactorProvider(fs); }), Task.Run(() => { MapTemplates = new MapProvider(fs); }), Task.Run(() => { MobTemplates = new MobProvider(fs); }) ); sw.Stop(); Log.Info("Startup seconds elapsed: " + sw.ElapsedMilliseconds / 1000); } }
public MemberController( MemberProvider memberProvider, EthnicProvider ethnicProvider, RegionProvider regionProvider, ShrineProvider shrineProvider, JobProvider jobProvider, EducationGradeProvider educationGradeProvider, EducationMajorProvider educationMajorProvider, HobbyProvider hobbyProvider, SkillProvider skillProvider) { this.memberProvider = memberProvider; this.ethnicProvider = ethnicProvider; this.regionProvider = regionProvider; this.shrineProvider = shrineProvider; this.jobProvider = jobProvider; this.educationGradeProvider = educationGradeProvider; this.educationMajorProvider = educationMajorProvider; this.hobbyProvider = hobbyProvider; this.skillProvider = skillProvider; }
public SkillController(SkillProvider skillProvider) { this.skillProvider = skillProvider; }