private static int CreateInstance(IntPtr luaState) { _instancesDict[_currentIndex] = new T(); XLLuaRuntime.XLLRT_PushXLObject(luaState, _typeFullName, new IntPtr(_currentIndex)); _currentIndex++; return(1); }
public static void PushXLObjectList(this IntPtr L, string typeName, IEnumerable <int> handles) { XLLuaRuntime.lua_newtable(L); int i = 1; foreach (var handle in handles) { XLLuaRuntime.XLLRT_PushXLObject(L, typeName, new IntPtr(handle)); XLLuaRuntime.lua_rawseti(L, -2, i++); } }
public static void PushXLObject(this IntPtr L, string typeName, int handle) { XLLuaRuntime.XLLRT_PushXLObject(L, typeName, new IntPtr(handle)); }
public static void PushXLObject(this IntPtr L, string typeName, IntPtr handle) { XLLuaRuntime.XLLRT_PushXLObject(L, typeName, handle); }