/* * Gets a field of the table corresponding to the provided reference * using rawget (do not use metatables) */ internal object RawGetObject(int reference, string field) { int oldTop = _luaState.GetTop(); _luaState.GetRef(reference); _luaState.PushString(field); _luaState.RawGet(-2); object obj = _translator.GetObject(_luaState, -1); _luaState.SetTop(oldTop); return(obj); }