/// <summary> /// Function called by the injected DLL, all the functions you want to add to the LUA state go here. /// Init of LuaBridge happens in here. /// </summary> /// <param name="state"></param> /// <returns></returns> static public int LuaCallHandler(IntPtr state) { TimeStampedTrace("Lua Handler called"); s_luaBridge = new LuaBridge(state); s_luaBridge.RegisterLuaFunction(LuaTest, "CopeLua_Test"); return(1); }
/// <summary> /// Function called by the injected DLL, all the functions you want to add to the LUA state go here. /// Init of LuaBridge happens in here. /// </summary> /// <param name="state"></param> /// <returns></returns> static public int LuaCallHandler(IntPtr state) { TimeStampedTrace("Lua Handler called"); s_luaBridge = new LuaBridge(state); s_luaBridge.RegisterLuaFunction(LuaTest, "CopeLua_Test"); return 1; }