Example #1
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     Benchmark mark = new Benchmark();
     mark.Begin();
     FileStream mapFile = new FileStream(filename1, FileMode.Create);
     using (mapFile)
     {
         Compiler compiler = new Compiler(mapFile);
         compiler.CompileFromScenario(@"scenarios\multi\headlong\headlong.scnr");
     }
     mark.End();
     MessageBox.Show(string.Format("Done: {0}", mark.Result));
 }
Example #2
0
 public void Compile()
 {
     Compiler c = new Compiler(File.Create(Path.Combine(BinDirectory, Path.ChangeExtension(Name, Map.Extension))));
     c.SetTagsDirectory(SourceDirectory);
     c.CompileFromScenario(this.Scenario);
 }