GE Lua Documentation

Press F to search!

getPlaymodeClusters

Definition


-- @/lua/ge/extensions/gameplay/playmodeMarkers.lua:80
local function getPlaymodeClusters()
  checkGeneration()
  if not playmodeClusters then
    local pois, rawPoiGeneration = gameplay_rawPois.getRawPoiListByLevel(getCurrentLevelIdentifier())

    playmodeClusters = clusterPlaymodePois(pois)
  end
  return playmodeClusters
end

Callers

@/lua/ge/extensions/ui/apps/minimap/minimap.lua
  local dpi = im.GetWindowDpiScale()
  for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
    local marker = gameplay_playmodeMarkers.getMarkerForCluster(cluster)
@/lua/ge/extensions/freeroam/bigMapMode.lua

  for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
    local marker = gameplay_playmodeMarkers.getMarkerForCluster(cluster)
  -- set target for markerInteraction
  for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
    if cluster.containedIdsLookup and cluster.containedIdsLookup[poiId] then
@/lua/ge/extensions/gameplay/playmodeMarkers.lua
    playmodeKd = kdTree.new()
    for _, cluster in ipairs(getPlaymodeClusters()) do
      playmodeKd:preLoad(cluster.id, cluster.visibilityPos.x-cluster.visibilityRadius, cluster.visibilityPos.y-cluster.visibilityRadius, cluster.visibilityPos.x+cluster.visibilityRadius, cluster.visibilityPos.y+cluster.visibilityRadius)
@/lua/ge/extensions/gameplay/markerInteraction.lua
  local anyMarkerIsInAreaChanged = false
  for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
    local marker = gameplay_playmodeMarkers.getMarkerForCluster(cluster)
  -- Set all markers forceVisible to false
  for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
    if string.startswith(cluster.id, "missionMarker") then