Пользовательские дополнения
На главную
astral.GetSectorInfoById( astralSectorId )
Возвращает информацию об астральном секторе по его идентификатору.
-- библиотека:
astral
-- объявление:
function GetSectorInfoById( astralSectorId )
-- параметры:
astralSectorId: AstralSectorId - идентификатор сектора
-- возвращаемые значения:
table or nil - если информация доступна, то таблица с полями:
id: ObjectId - идентификатор сектора
addonId: ObjectId or nil - идентификатор астрального аддона, если такая информация имеется
name: WString or nil - название сектора
description: ValuedText or nil - описание
techLevel: number (integer) - уровень сектора
requiredUnlock: number - требуемый анлок астрала
ticketsCount: number - количество необходимых ключей для посещения острова
maxServerProgress: number - значение серверного анлока, выше которого ключи перестают требоваться
number: number (integer) - порядковый номер сектора в астральном аддоне
x: number - координата X расположения сектора в аддоне
y: number - координата Y расположения сектора в аддоне
regionId: AstralRegionId или nil - nil если нет информации, иначе идентификатор астрального региона, к которому относится сектор
astrolabeVisible: boolean - true если сектор виден в астролябии
mapVisible: boolean - true если сектор виден на карте
allowChoiceLoot: boolean - true если в секторе можно выбирать лут
-- пример:
local sectors = mwar.GetSectors()
if sectors and sectors[0] then
local sectorInfo = astral.GetSectorInfoById( sectors[0] )
if sectorInfo then
LogInfo( sectorInfo.name )
end
end
См. также
Связанные страницы: "CategoryLuaApi" "CategoryAstralLua"
EnumFailType
EventAstralHubChanged
EventAstralIslandChanged
EventAstralIslandTimeChanged
EventAstralObjectEnabledChanged
EventAstralPoisChanged
EventAstralSectorChanged
EventAstralSectorCheckJumpResult
EventAstralWreckLootTaken
EventAstrolabeInfoChanged
EventAstrolabeSpellChanged
EventAstrolabeSpellEffect
EventIslandDeathLimitChanged
EventPlayerAstralUnlockChanged
EventScannedHubObjectsChanged
FunctionAstralAstrolabeJump
FunctionAstralCheckJump
FunctionAstralGetAddonInfo
FunctionAstralGetAddons
FunctionAstralGetAddonSectors
FunctionAstralGetAllPOIs
FunctionAstralGetAllSectorsObsolete
FunctionAstralGetAllTLsObsolete
FunctionAstralGetAstrolabeDeniedPlayers
FunctionAstralGetAstrolabeInfo
FunctionAstralGetAstrolabeInfoEx
FunctionAstralGetAstrolabeTarget
FunctionAstralGetCurrentSector
FunctionAstralGetHubCenter
FunctionAstralGetHubRadius
FunctionAstralGetIslandCollapseTime
FunctionAstralGetIslandDeathLimit
FunctionAstralGetObjectInfo
FunctionAstralGetObjects
FunctionAstralGetPlayerUnlockLevel
FunctionAstralGetPOIInfo
FunctionAstralGetPOITradeInfo
FunctionAstralGetScannedObjects
FunctionAstralGetSectorAstrolabeInfo
FunctionAstralGetSectorDirectPOI
FunctionAstralGetSectorEdges
FunctionAstralGetSectorEdgesById
FunctionAstralGetSectorEdgesObsolete
FunctionAstralGetSectorInfo
FunctionAstralGetSectorInfoById
FunctionAstralGetSectorPOIs
FunctionAstralGetSectorRelatedQuests
FunctionAstralGetUnits
FunctionAstralIsSectorKnownForGroup
FunctionAstralIsSectorKnownForPlayer
CategoryLuaApi
CategoryFunction
CategoryAstralLua
CategoryMWar
На главную