static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); GameWindow g = new GameWindow(); Story s = new Story(g, "res"); s.LoadNew(); //Scene s = new Scene(null); //g.Scene = s; //NarrationDialog d = new NarrationDialog(50, 400, 700, 200); //d.ResetAnimation(); //s.AddLayer(d); //s.KeyDown += new EventHandler<KeyEventArgs>((o, e) => //{ // d.Visible = true; // string[] lines = new string[] { "Hello", "I am a narration dialog", "wahaha", "こんにちは","私は今日あなたのゲームのナレータです。ここから私の声だけを聞こえます。","ご協力してくれてありがとうございました" }; // d.SetNarration(lines); //}); Application.Run(g); }
public void Execute(Story state) { Type t = asm.GetType("EmeraldDream." + name); MethodInfo mi = t.GetMethod("Main"); mi.Invoke(null, new object[] { state }); }