GE Lua Documentation

Press F to search!

rawget

Definition


-- @/=[C]:-1
function rawget(...)

Callers

@/lua/vehicle/input.lua
  end
  return rawget(M.keys, key)
end
@/lua/objectpool/main.lua
function __newIndexHandler(t, key, val)
  rawset(rawget(_G, 'objData'), key, val)
end
function __indexHandler(t, key)
  return rawget(rawget(_G, 'objData'), key)
end
function __indexHandler(t, key)
  return rawget(rawget(_G, 'objData'), key)
end
@/lua/common/devUtils.lua
  for _, k in ipairs(keys) do
    local v = rawget(t, k)
    if type(v) == 'table' then
  for _, k in ipairs(keys) do
    local v = rawget(t, k)
    local newPath = path .. '_' .. tostring(v)
  for k, v in pairs(_G) do
    if (type(v) == 'table' and (rawget(v, '___type') or rawget(v, '___getters'))) or type(v) == 'function' or k == '_G' or k == 'extensions' or k == 'package' then goto continue end
    if type(v) == 'table' and k ~= 'math' and k ~= 'ffi' and k ~= 'jit' and k ~= 'mime' and k ~= 'socket' then
  for k, v in pairs(_G) do
    if (type(v) == 'table' and (rawget(v, '___type') or rawget(v, '___getters'))) or type(v) == 'function' or k == '_G' or k == 'extensions' or k == 'package' then goto continue end
    if type(v) == 'table' and k ~= 'math' and k ~= 'ffi' and k ~= 'jit' and k ~= 'mime' and k ~= 'socket' then
    if type(v) == 'table' and k ~= 'math' and k ~= 'ffi' and k ~= 'jit' and k ~= 'mime' and k ~= 'socket' then
      if rawget(v, '__extensionName__') then goto continue end
      local locals = getModuleLocals(v)
@/lua/vehicle/bullettime.lua
    end
    return rawget(tbl, key)
  end
@/lua/common/libs/inspect/inspect.lua
  local len = 1
  local v = rawget(t,len)
  while v ~= nil do
    len = len + 1
    v = rawget(t,len)
  end
@/lua/ge/extensions/scenario/scenarios.lua
        end
        return rawget(tbl, 'vehicleNameToId')
      end

      return rawget(tbl, key)
    end
@/lua/ge/map.lua
    end
    return rawget(tbl, key)
  end
@/lua/ge/extensions/flowgraph/pin.lua
      end
      local val = rawget(tbl, key)
      if val ~= nil then
      else
        return rawget(mt, key)
      end
@/lua/common/libs/LuLPeg/lulpeg.lua
    end
    function getglobal(k) rawget(env, k) end
    function setglobal(k, v) rawset(env, k, v) end
@/lua/common/libs/LuaIRC/init.lua
function meta_preconnect.__index(o, k)
    local v = rawget(meta_preconnect, k)
@/lua/common/extensions.lua
  for _, extName in ipairs(extNames) do
    local m = rawget(M, extName)
  for _, extName in ipairs(extNames) do
    local m = rawget(M, extName)
    -- rawset avoids global setter wrapper detections
      loadedFreshModules[i] = false
      local m = rawget(_G, moduleName)
      if m then
        modulesToInit[i] = false
        local m = rawget(_G, moduleName)
        if m and type(m.onInit) == 'function' then
  --log("W", logTag, "use(extName) is deprecated. Please use the following syntax: core_extensions..doSomething()")
  return rawget(M, key)
end
@/lua/common/luaBinding.lua
  -- log('E', '', '  __index invoked on ' .. tostring(mt.___type))
  local res = rawget(mt, k)
  if res ~= nil then return res end

  local origgetters = rawget(mt, 1) -- 1 = getters
  local getFunc = rawget(origgetters, k)
  local origgetters = rawget(mt, 1) -- 1 = getters
  local getFunc = rawget(origgetters, k)
  if getFunc ~= nil then
  while true do
    mt = rawget(mt, 3) -- 3 = super
    if not mt then
    end
    res = rawget(mt, k)
    if res ~= nil then
    end
    local getters = rawget(mt, 1) -- 1 = getters
    if getters then
    if getters then
      local getFunc = rawget(getters, k)
      if type(getFunc) == 'function' then
  -- log('E', '', '  __index invoked on ' .. tostring(mt.___type))
  local res = rawget(mt, k)
  if res ~= nil then return res end

  local origgetters = rawget(mt, 1) -- 1 = getters
  local getFunc = rawget(origgetters or {}, k)
  local origgetters = rawget(mt, 1) -- 1 = getters
  local getFunc = rawget(origgetters or {}, k)
  if getFunc ~= nil then
  while true do
    mt = rawget(mt, 3) -- 3 = super
    if not mt then
    end
    res = rawget(mt, k)
    if res ~= nil then
    end
    local getters = rawget(mt, 1) -- 1 = getters
    if getters then
    if getters then
      local getFunc = rawget(getters, k)
      if type(getFunc) == 'function' then
  --log('E', '', '__newindex invoked on ' .. tostring(mt.___type))
  local origsetters = rawget(mt, 2) -- 2 = setters
  local setFunc = rawget(origsetters, k)
  local origsetters = rawget(mt, 2) -- 2 = setters
  local setFunc = rawget(origsetters, k)
  if setFunc ~= nil then
  while true do
    mt = rawget(mt, 3) -- 3 = super
    if not mt then
    end
    local setters = rawget(mt, 2) -- 2 = setters
    if setters then
    if setters then
      local setFunc = rawget(setters, k)
      if type(setFunc) == 'function' then
  local mt = getmetatable(t)
  local origsetters = rawget(mt, 2) -- 2 = setters
  local setFunc = rawget(origsetters, k)
  local origsetters = rawget(mt, 2) -- 2 = setters
  local setFunc = rawget(origsetters, k)
  if setFunc ~= nil then
  while true do
    mt = rawget(mt, 3) -- 3 = super
    if not mt then
    end
    local setters = rawget(mt, 2) -- 2 = setters
    if setters then
    if setters then
      local setFunc = rawget(setters, k)
      if type(setFunc) == 'function' then

  local res = rawget(mt, k)
  if res ~= nil then return res end

  local getFunc = rawget(rawget(mt, 1), k) -- 1 = getters
  if getFunc ~= nil then return getFunc(obj) end

  local getFunc = rawget(rawget(mt, 1), k) -- 1 = getters
  if getFunc ~= nil then return getFunc(obj) end
  -- getStaticDataFieldbyName, getDynDataFieldbyName
  local dynField = rawget(mt, 4)(obj, k, 0) or rawget(mt, 5)(obj, k, 0)
  if dynField ~= nil then return dynField end
  -- getStaticDataFieldbyName, getDynDataFieldbyName
  local dynField = rawget(mt, 4)(obj, k, 0) or rawget(mt, 5)(obj, k, 0)
  if dynField ~= nil then return dynField end
  local mt = getmetatable(obj)
  local setFunc = rawget(rawget(mt, 2), k) -- 2 = setters
  if setFunc ~= nil then
  local mt = getmetatable(obj)
  local setFunc = rawget(rawget(mt, 2), k) -- 2 = setters
  if setFunc ~= nil then

  if rawget(mt, 6)(obj, k, 0, v) then return end -- setStaticDataFieldbyName
  if rawget(mt, 7)(obj, k, 0, v) then return end -- setDynDataFieldbyName
  if rawget(mt, 6)(obj, k, 0, v) then return end -- setStaticDataFieldbyName
  if rawget(mt, 7)(obj, k, 0, v) then return end -- setDynDataFieldbyName
end
  local workmt = mt
  local workgetters = rawget(workmt, 1) or {}
  rawset(workmt, 1, workgetters)

  local worksetters = rawget(workmt, 2) or {}
  rawset(workmt, 2, worksetters)
  rawset(workmt, 2, worksetters)
  mt = rawget(mt, 3)
  while mt ~= nil do
  while mt ~= nil do
    for k, v in pairs(rawget(mt, 1)) do
      workgetters[k] = workgetters[k] or v

    for k, v in pairs(rawget(mt, 2)) do
      worksetters[k] = worksetters[k] or v
      if type(k) == "string" then
        rawset(workmt, k, rawget(workmt, k) or v)
      end
    end
    mt = rawget(mt, 3)
  end
        -- create simobject metatable
        rawset(rawget(classtable, 1), "className", classtable.getClassName)
        if next(rawget(classtable, 2)) == nil and rawget(classtable, 3) == nil then
        rawset(rawget(classtable, 1), "className", classtable.getClassName)
        if next(rawget(classtable, 2)) == nil and rawget(classtable, 3) == nil then
          rawset(rawget(classtable, 2), 1, 0)  -- disable newindex optimization when newindex table is empty
        rawset(rawget(classtable, 1), "className", classtable.getClassName)
        if next(rawget(classtable, 2)) == nil and rawget(classtable, 3) == nil then
          rawset(rawget(classtable, 2), 1, 0)  -- disable newindex optimization when newindex table is empty
        if next(rawget(classtable, 2)) == nil and rawget(classtable, 3) == nil then
          rawset(rawget(classtable, 2), 1, 0)  -- disable newindex optimization when newindex table is empty
        end
    -- optimize metatables
    if rawget(v, 3) == nil then -- no super
      if next(rawget(v, 2)) == nil then -- no setters
    if rawget(v, 3) == nil then -- no super
      if next(rawget(v, 2)) == nil then -- no setters
        rawset(v, 2, nil)

      if next(rawget(v, 1)) == nil and rawget(v, '__index') ~= rawget(v, 1) then -- no getters
        local plainGetters = rawget(v, 1)

      if next(rawget(v, 1)) == nil and rawget(v, '__index') ~= rawget(v, 1) then -- no getters
        local plainGetters = rawget(v, 1)

      if next(rawget(v, 1)) == nil and rawget(v, '__index') ~= rawget(v, 1) then -- no getters
        local plainGetters = rawget(v, 1)
      if next(rawget(v, 1)) == nil and rawget(v, '__index') ~= rawget(v, 1) then -- no getters
        local plainGetters = rawget(v, 1)
        if rawget(v, '__newindex') == nil then
        local plainGetters = rawget(v, 1)
        if rawget(v, '__newindex') == nil then
          for f, getter in pairs(v) do
@/lua/ge/extensions/editor/resourceChecker/resourceUtil.lua

local hasBit = rawget(_G, 'bit') or rawget(_G, 'bit32')
local function powerOfTwo(x)

local hasBit = rawget(_G, 'bit') or rawget(_G, 'bit32')
local function powerOfTwo(x)
@/lua/ge/extensions/editor/main.lua
    end
    return rawget(extensions, name)
  end