private void button1_Click(object sender, EventArgs e) { WGame Game = new WGame(); Game.SetLogCallback(LogCallback); //Game.SetScriptCompilerCallback(CompilerErrorCallback); /* * WFrame Frame = new WFrame(Game); * Frame.Events.Add("aaa"); * Frame.Events.Add("bbb"); * Frame.Events.Add("ccc"); * * MessageBox.Show(Frame.Events.IndexOf("bbb").ToString()); * * foreach(String S in Frame.Events) * { * MessageBox.Show(S); * } * Frame.Events.Clear(); */ Game.InitializeWindowed(this, true, @"C:\Program Files\WME DevKit\projects\wme_demo\wme_demo.wpr"); Game.FrameInit(); Game.FrameFinish(); //WAdScene Scene; Game.Dispose(); }
private void button1_Click(object sender, EventArgs e) { WGame Game = new WGame(); Game.SetLogCallback(LogCallback); //Game.SetScriptCompilerCallback(CompilerErrorCallback); /* WFrame Frame = new WFrame(Game); Frame.Events.Add("aaa"); Frame.Events.Add("bbb"); Frame.Events.Add("ccc"); MessageBox.Show(Frame.Events.IndexOf("bbb").ToString()); foreach(String S in Frame.Events) { MessageBox.Show(S); } Frame.Events.Clear(); */ Game.InitializeWindowed(this, true, @"C:\Program Files\WME DevKit\projects\wme_demo\wme_demo.wpr"); Game.FrameInit(); Game.FrameFinish(); //WAdScene Scene; Game.Dispose(); }
////////////////////////////////////////////////////////////////////////// public void Process() { Game = new WGame(); Game.InitializeSimple(ProjectFile); string rootDir = Path.GetDirectoryName(ProjectFile); ProcessDir(rootDir); Game.Dispose(); AddLog(string.Format("Finished. Saved {0} pixels in total (that's approximately {1} MB of video memory).", TotalSavedPixels, TotalSavedPixels * 4 / 1024 / 1024)); }