static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //这个Class是等会要注册到Lua环境里的,这里演示了一下这个对象的主要接口的功能 MyClass theClass = new MyClass(); AddOb theOb = new AddOb(); theClass.OnAddFinish += theOb.OnAddFinish; theClass.Add(100, 200); BoltWarper.Instance().InitBolt(""); LuaMyClass.RegisterClass(); string searPath = System.Windows.Forms.Application.StartupPath + "\\..\\samples\\HelloBolt\\XAR\\"; BoltWarper.Instance().AddXARSearchPath(searPath); BoltWarper.Instance().LoadXAR("HelloBolt7"); Application.Run(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //这个Class是等会要注册到Lua环境里的,这里演示了一下这个对象的主要接口的功能 MyClass theClass = new MyClass(); AddOb theOb = new AddOb(); theClass.OnAddFinish += theOb.OnAddFinish; theClass.Add(100, 200); BoltWarper.Instance().InitBolt(""); LuaMyClass.RegisterClass(); string searPath = System.Windows.Forms.Application.StartupPath + "\\..\\samples\\HelloBolt\\XAR\\"; BoltWarper.Instance().AddXARSearchPath(searPath); BoltWarper.Instance().LoadXAR("HelloBolt7"); Application.Run(); }