protected virtual void LoadManualSkillActivation() { DicManualSkillTarget.Clear(); foreach (KeyValuePair <string, ManualSkillTarget> ActiveManualSkill in ManualSkillTarget.LoadFromAssemblyFiles(Directory.GetFiles("Effects", "*.dll"))) { DicManualSkillTarget.Add(ActiveManualSkill.Key, ActiveManualSkill.Value); } foreach (KeyValuePair <string, ManualSkillTarget> ActiveManualSkill in ManualSkillTarget.LoadFromAssemblyFiles(Directory.GetFiles("Effects/Battle Map", "*.dll"))) { DicManualSkillTarget.Add(ActiveManualSkill.Key, ActiveManualSkill.Value); } List <Assembly> ListAssembly = RoslynWrapper.GetCompiledAssembliesFromFolder("Effects", "*.csx", SearchOption.TopDirectoryOnly); foreach (Assembly ActiveAssembly in ListAssembly) { foreach (KeyValuePair <string, ManualSkillTarget> ActiveManualSkill in ManualSkillTarget.LoadFromAssembly(ActiveAssembly)) { DicManualSkillTarget.Add(ActiveManualSkill.Key, ActiveManualSkill.Value); } } ListAssembly = RoslynWrapper.GetCompiledAssembliesFromFolder("Effects/Battle Map", "*.csx", SearchOption.TopDirectoryOnly); foreach (Assembly ActiveAssembly in ListAssembly) { foreach (KeyValuePair <string, ManualSkillTarget> ActiveManualSkill in ManualSkillTarget.LoadFromAssembly(ActiveAssembly, this)) { DicManualSkillTarget.Add(ActiveManualSkill.Key, ActiveManualSkill.Value); } } }
protected override void LoadManualSkillActivation() { base.LoadManualSkillActivation(); ManualSkillTarget.LoadFromAssemblyFiles(Directory.GetFiles("Effects/Deathmatch Map", "*.dll"), GlobalDeathmatchContext); var ListAssembly = RoslynWrapper.GetCompiledAssembliesFromFolder("Effects/Deathmatch Map", " *.csx", SearchOption.TopDirectoryOnly); foreach (Assembly ActiveAssembly in ListAssembly) { ManualSkillTarget.LoadFromAssembly(ActiveAssembly, GlobalDeathmatchContext); } }
protected virtual void LoadManualSkillActivation() { ManualSkillTarget.DicManualSkillTarget.Clear(); ManualSkillTarget.LoadFromAssemblyFiles(Directory.GetFiles("Effects", "*.dll")); ManualSkillTarget.LoadFromAssemblyFiles(Directory.GetFiles("Effects/Battle Map", "*.dll")); var ListAssembly = RoslynWrapper.GetCompiledAssembliesFromFolder("Effects", "*.csx", SearchOption.TopDirectoryOnly); foreach (Assembly ActiveAssembly in ListAssembly) { ManualSkillTarget.LoadFromAssembly(ActiveAssembly); } ListAssembly = RoslynWrapper.GetCompiledAssembliesFromFolder("Effects/Battle Map", "*.csx", SearchOption.TopDirectoryOnly); foreach (Assembly ActiveAssembly in ListAssembly) { ManualSkillTarget.LoadFromAssembly(ActiveAssembly, this); } }
protected override void LoadManualSkillActivation() { base.LoadManualSkillActivation(); foreach (KeyValuePair <string, ManualSkillTarget> ActiveManualSkill in ManualSkillTarget.LoadFromAssemblyFiles(Directory.GetFiles("Effects/Deathmatch Map", "*.dll"), GlobalDeathmatchContext)) { DicManualSkillTarget.Add(ActiveManualSkill.Key, ActiveManualSkill.Value); } List <Assembly> ListAssembly = RoslynWrapper.GetCompiledAssembliesFromFolder("Effects/Deathmatch Map", " *.csx", SearchOption.TopDirectoryOnly); foreach (Assembly ActiveAssembly in ListAssembly) { foreach (KeyValuePair <string, ManualSkillTarget> ActiveManualSkill in ManualSkillTarget.LoadFromAssembly(ActiveAssembly, GlobalDeathmatchContext)) { DicManualSkillTarget.Add(ActiveManualSkill.Key, ActiveManualSkill.Value); } } }