XLLRT_PushXLObject() private method

private XLLRT_PushXLObject ( IntPtr luaState, string className, IntPtr pRealObj ) : UInt32
luaState System.IntPtr
className string
pRealObj System.IntPtr
return System.UInt32
Beispiel #1
0
 private static int CreateInstance(IntPtr luaState)
 {
     _instancesDict[_currentIndex] = new T();
     XLLuaRuntime.XLLRT_PushXLObject(luaState, _typeFullName, new IntPtr(_currentIndex));
     _currentIndex++;
     return(1);
 }
Beispiel #2
0
        public static void PushXLObjectList(this IntPtr L, string typeName, IEnumerable <int> handles)
        {
            Lua.lua_newtable(L);
            int i = 1;

            foreach (var handle in handles)
            {
                XLLuaRuntime.XLLRT_PushXLObject(L, typeName, new IntPtr(handle));
                Lua.lua_rawseti(L, -2, i++);
            }
        }
Beispiel #3
0
 public static void PushXLObject(this IntPtr L, string typeName, int handle)
 {
     XLLuaRuntime.XLLRT_PushXLObject(L, typeName, new IntPtr(handle));
 }
Beispiel #4
0
 public static void PushXLObject(this IntPtr L, string typeName, IntPtr handle)
 {
     XLLuaRuntime.XLLRT_PushXLObject(L, typeName, handle);
 }