xLua icon indicating copy to clipboard operation
xLua copied to clipboard

怎么生成 Native 方式调用的函数的绑定?

Open DragoonKiller opened this issue 1 year ago • 0 comments

[LuaCallCSharp]
public class Data
{
      public static int Query(IntPtr L)
      {
          // ...
          return 1;
      }
}

这个会被生成为

System.IntPtr _L = LuaAPI.lua_touserdata(L, 1);
var gen_ret = Data.Query( _L );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;

DragoonKiller avatar Jan 18 '25 12:01 DragoonKiller