GE Lua Documentation

Press F to search!

getLevel

Definition


-- @/lua/ge/extensions/scenario/quickRaceLoader.lua:162

local function getLevel(levelName)
  local raceList = getQuickraceList()
  if raceList then
    for _,raceLevel in ipairs(raceList) do
      if raceLevel.levelInfo.title == levelName or raceLevel.levelName == levelName then
        return raceLevel
      end
    end
  end

  return nil
end

Callers

@/inspector/Views/TreeOutline.js
        let comparator = (a, b) => {
            function getLevel(treeElement) {
                let level = 0;

            let aLevel = getLevel(a);
            let bLevel = getLevel(b);
            let aLevel = getLevel(a);
            let bLevel = getLevel(b);
            while (aLevel > bLevel) {
@/lua/ge/extensions/scenario/quickRaceLoader.lua
local function getLevelTrack(levelName, trackName)
  local level = getLevel(levelName)
  if level and level.tracks and level.trackCount > 0 then
@/inspector/Views/DOMTreeOutline.js

        function getLevel(treeElement) {
            let level = levelMap.get(treeElement);
        // are removed before their ancestors.
        this._treeElementsToRemove.sort((a, b) => getLevel(b) - getLevel(a));
        // are removed before their ancestors.
        this._treeElementsToRemove.sort((a, b) => getLevel(b) - getLevel(a));
@/lua/ge/extensions/campaign/exploration.lua
    if locationInfo.type == 'race' and locationInfo.subtype == 'timeTrial' then
      local raceLevel = scenario_quickRaceLoader.getLevel(locationInfo.levelName)
      if not raceLevel then