getMarkerForCluster
Definition
-- @/lua/ge/extensions/gameplay/playmodeMarkers.lua:105
local function getMarkerForCluster(cluster)
checkGeneration()
if not markersByClusterId[cluster.id] then
local marker = cluster.create()
marker:createObjects()
marker:setup(cluster)
markersByClusterId[cluster.id] = marker
end
return markersByClusterId[cluster.id]
end
Callers
@/lua/ge/extensions/gameplay/markerInteraction.lua
for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
local marker = gameplay_playmodeMarkers.getMarkerForCluster(cluster)
if nearbyIds[cluster.id] or marker.focus then
@/lua/ge/extensions/ui/apps/minimap/minimap.lua
for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
local marker = gameplay_playmodeMarkers.getMarkerForCluster(cluster)
if (nearbyIds[cluster.id] or marker.focus) then
@/lua/ge/extensions/freeroam/bigMapMode.lua
for i, cluster in ipairs(gameplay_playmodeMarkers.getPlaymodeClusters()) do
local marker = gameplay_playmodeMarkers.getMarkerForCluster(cluster)
if cluster.containedIdsLookup and cluster.containedIdsLookup[poiId] then