Exemple #1
0
        public AIInvoker Clone()
        {
            var invoker = new AIInvoker(this.descriptionFile, this.dllFile);

            invoker.Load();
            return(invoker);
        }
Exemple #2
0
 public void Run()
 {
     this.invokerObjects.Clear();
     string[] directorys = Directory.GetDirectories(this.loadingPath);
     foreach (string subDirecotry in directorys)
     {
         string[] files = Directory.GetFiles(subDirecotry, "*.xml");
         foreach (string file in files)
         {
             var invokerObj = new AIInvoker(Path.GetFullPath(file), Path.GetFullPath(file.Replace(".xml", ".dll")));
             invokerObj.Load();
             invokerObjects.Add(invokerObj);
         }
     }
 }