private static int CanJump(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 1); RoleAction roleAction = (RoleAction)ToLua.CheckObject(L, 1, typeof(RoleAction)); bool value = roleAction.CanJump(); LuaDLL.lua_pushboolean(L, value); result = 1; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }