Skip to content

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

Open
@DragoonKiller

Description

@DragoonKiller
[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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions