LuaInterface.ObjectTranslator.getRawNetObject C# (CSharp) Method

getRawNetObject() private method

private getRawNetObject ( IntPtr luaState, int index ) : object
luaState IntPtr
index int
return object
        internal object getRawNetObject(IntPtr luaState,int index)
        {
            int udata=LuaDLL.luanet_rawnetobj(luaState,index);
            if(udata!=-1)
            {
                return objects[udata];
            }
            return null;
        }

Usage Example

コード例 #1
0
 public static void dumpStack(ObjectTranslator translator, IntPtr luaState)
 {
     int num = LuaDLL.lua_gettop(luaState);
     for (int i = 1; i <= num; i++)
     {
         LuaTypes type = LuaDLL.lua_type(luaState, i);
         if (type != LuaTypes.LUA_TTABLE)
         {
             LuaDLL.lua_typename(luaState, type);
         }
         LuaDLL.lua_tostring(luaState, i);
         if (type == LuaTypes.LUA_TUSERDATA)
         {
             translator.getRawNetObject(luaState, i).ToString();
         }
     }
 }
All Usage Examples Of LuaInterface.ObjectTranslator::getRawNetObject