예제 #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);
 }