Esempio n. 1
0
 private static int CreateInstance(IntPtr luaState)
 {
     _instancesDict[_currentIndex] = new T();
     XLLuaRuntime.XLLRT_PushXLObject(luaState, _typeFullName, new IntPtr(_currentIndex));
     _currentIndex++;
     return(1);
 }
Esempio n. 2
0
        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++);
            }
        }
Esempio n. 3
0
 public static void PushXLObject(this IntPtr L, string typeName, int handle)
 {
     XLLuaRuntime.XLLRT_PushXLObject(L, typeName, new IntPtr(handle));
 }
Esempio n. 4
0
 public static void PushXLObject(this IntPtr L, string typeName, IntPtr handle)
 {
     XLLuaRuntime.XLLRT_PushXLObject(L, typeName, handle);
 }