示例#1
0
 public static void PushInt32(this IntPtr L, int value)
 {
     XLLuaRuntime.lua_pushinteger(L, value);
 }
示例#2
0
 public static void PushHandle(this IntPtr L, IntPtr handle)
 {
     XLLuaRuntime.lua_pushlightuserdata(L, handle);
 }
示例#3
0
 public static void PushString(this IntPtr L, string str)
 {
     XLLuaRuntime.lua_pushstring(L, str);
 }
示例#4
0
 protected void EndCall()
 {
     XLLuaRuntime.lua_settop(_luaState, _lastTopIndex);
 }
示例#5
0
 public static bool GetBool(this IntPtr L, int index)
 {
     return(XLLuaRuntime.lua_toboolean(L, index));
 }
示例#6
0
 public static void Pop(this IntPtr L, int n)
 {
     XLLuaRuntime.lua_settop(L, 0 - n - 1);
 }
示例#7
0
 public static void PushBool(this IntPtr L, bool value)
 {
     XLLuaRuntime.lua_pushboolean(L, value);
 }
示例#8
0
 public static IntPtr GetHandle(this IntPtr L, int index)
 {
     return(XLLuaRuntime.lua_touserdata(L, index));
 }
示例#9
0
 private static void Push(this IntPtr L, bool value)
 {
     XLLuaRuntime.lua_pushboolean(L, value);
 }
示例#10
0
 public static void PushXLObject(this IntPtr L, string typeName, int handle)
 {
     XLLuaRuntime.XLLRT_PushXLObject(L, typeName, new IntPtr(handle));
 }
示例#11
0
 public static void Call(this IntPtr L, int arg, int ret)
 {
     XLLuaRuntime.XLLRT_LuaCall(L, arg, ret, null);
 }
示例#12
0
 private static void Push(this IntPtr L, double value)
 {
     XLLuaRuntime.lua_pushnumber(L, value);
 }
示例#13
0
 public static void PushXLObject(this IntPtr L, string typeName, IntPtr handle)
 {
     XLLuaRuntime.XLLRT_PushXLObject(L, typeName, handle);
 }
示例#14
0
 private static void Push(this IntPtr L, int value)
 {
     XLLuaRuntime.lua_pushinteger(L, value);
 }
示例#15
0
 public static void PushDouble(this IntPtr L, double value)
 {
     XLLuaRuntime.lua_pushnumber(L, value);
 }
示例#16
0
 public static string GetString(this IntPtr L, int index)
 {
     return(XLLuaRuntime.lua_tostring(L, index));
 }
示例#17
0
 public static int GetFuncRef(this IntPtr L)
 {
     return(XLLuaRuntime.luaL_ref(L, (int)LuaInnerIndex.LUA_REGISTRYINDEX));
 }
示例#18
0
 public static int GetInt32(this IntPtr L, int index)
 {
     return(XLLuaRuntime.lua_tointeger(L, index));
 }
示例#19
0
 public static bool IsLuaFunction(this IntPtr L, int index)
 {
     return(XLLuaRuntime.lua_type(L, index) == (int)LuaTypes.LUA_TFUNCTION);
 }
示例#20
0
 public static double GetDouble(this IntPtr L, int index)
 {
     return(XLLuaRuntime.lua_tonumber(L, index));
 }
示例#21
0
 public static void PushNull(this IntPtr L)
 {
     XLLuaRuntime.lua_pushnil(L);
 }
示例#22
0
 protected void BeginCall()
 {
     _lastTopIndex = XLLuaRuntime.lua_gettop(_luaState);
     XLLuaRuntime.lua_rawgeti(_luaState, (int)LuaInnerIndex.LUA_REGISTRYINDEX, _luaFunctionRefIndex);
 }