示例#1
0
 public static ProjectBuilder Create(Project project, string ipcName, string compilerPath)
 {
     if (project is AS2Project)
         return new AS2ProjectBuilder(project as AS2Project, compilerPath);
     else if (project is AS3Project)
         return new AS3ProjectBuilder(project as AS3Project, compilerPath, ipcName);
     else if (project is HaxeProject)
         return new HaxeProjectBuilder(project as HaxeProject, compilerPath);
     else
         throw new Exception("FDBuild doesn't know how to build " + project.GetType().Name);
 }