Пользовательские дополнения

На главную


cartographer.GetMarkerInfo( markerId )

Возвращает описание типа маркера, которым помечаются перманентные объекты на интерфейсной карте.

-- система:
GameState

-- библиотека:
cartographer

-- объявление:
function GetMarkerInfo( markerId )

-- параметры:
markerId: InterfaceMapMarkerId - идентификатор ресурса маркера

-- возвращаемые значения
table or nil - если такой тип маркера найден, то таблица с полями:
  name: WString - название типа маркера
  syaName: string - системное имя типа маркера, для специальной обработки в скриптах
  description: WString - описание типа маркера
  priority: number (integer) - приоритет такого маркера. Используется, если для одного объекта обнаружено несколько типов маркеров. Минимальный приоритет 0.
  image: TextureId - идентификатор текстуры иконки типа маркера

Пример:

local markers = cartographer.GetMapMarkers( zonesMapId )
for i, markerId in pairs( markers ) do
  local markerInfo = cartographer.GetMarkerInfo( markerId )
  local markerObjects = cartographer.GetMapMarkerObjects( zonesMapId, markerId )
end

Search: "CategoryLuaApi" "CategoryCartographer"

CategoryCartographer
EventAvatarClientZoneChanged
EventAvatarMapModifiersChanged
EventAvatarZoneChanged
EventNavigateEnabledChanged
EventSosFinished
EventSosStarted
FunctionCartographerCanNavigateToPoint
FunctionCartographerGetCurrentMapInfo
FunctionCartographerGetCurrentMapModifiers
FunctionCartographerGetCurrentZoneAttributes
FunctionCartographerGetCurrentZoneInfo
FunctionCartographerGetMapBlockInfo
FunctionCartographerGetMapBlocks
FunctionCartographerGetMapGeodata
FunctionCartographerGetMapMarkerObjects
FunctionCartographerGetMapMarkers
FunctionCartographerGetMapModifierInfo
FunctionCartographerGetMapModifierValuedObject
FunctionCartographerGetMarkerInfo
FunctionCartographerGetObjectGeodata
FunctionCartographerGetQuestGeodata
FunctionCartographerGetQuestObjectiveGeodata
FunctionCartographerGetSosInfo
FunctionCartographerGetSosObjects
FunctionCartographerGetZonesMapId
FunctionCartographerGetZonesMapInfo
FunctionCartographerGetZonesMapLowQuests
FunctionCartographerGetZonesMapQuests
FunctionCartographerIsCurrentZoneAnonymizedMap
FunctionCartographerIsCurrentZoneRiftMap
FunctionCartographerIsFinalQuestCompleted
FunctionCartographerIsOnCommon
FunctionRulesGetZonesMaps
FunctionUnitGetZonesMapId
Geodata
MapModifierId


CategoryLuaApi CategoryFunction CategoryCartographer

На главную