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