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

На главную


hangar.GetCustomizationSlotDevices( slotId )

Возвращает список идентификаторов устройств для кастомизации определённого слота корабля, имеющихся в ангаре. Возможно получить только после начала процесса кастомизации.

Информацию по устройствам можно получить в hangar.GetDeviceInfo( deviceId ).

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

-- объявление:
function GetCustomizationSlotDevices( slotId )

-- параметры:
slotId: ObjectId - идентификатор слота для кастомизации

-- возвращаемые значения
table of ObjectId - индексированный с 0 список идентификаторов устройств, находящихся в ангаре

-- пример:
local slots = hangar.GetCustomizationSlots()
if slots then
  for i, slotId in pairs( slots ) do
    local devices = hangar.GetCustomizationSlotDevices( slotId )
    if devices[ 0 ] then
      local firstDeviceInfo = hangar.GetDeviceInfo( devices[ 0 ] )
    end
  end
end

Search: "CategoryLuaApi" "CategoryHangar"

EnumCannonVisualType
EnumShipInfoMarker
EventHangarActiveHullChanged
EventHangarActiveShipChanged
EventHangarActiveShipHullsChanged
EventHangarActiveShipSkinsChanged
EventHangarActiveSkinChanged
EventHangarDevicesReceived
EventHangarRepairQuestion
EventHangarShipsChanged
EventHangarSlotDevicesReceived
EventHangarSpellChanged
EventHangarSpellEffect
EventShipCustomizationChanged
EventShipCustomizationFinished
EventShipCustomizationStarted
EventTransportRenameReply
EventTransportRenameReplyResult
FunctionHangarApplyCustomization
FunctionHangarCanCustomize
FunctionHangarCanLendShip
FunctionHangarCanRemoveDevice
FunctionHangarChangeSlotCustomization
FunctionHangarGetActiveShip
FunctionHangarGetActiveShipHull
FunctionHangarGetActiveShipSkin
FunctionHangarGetAllowedDeviceTypes
FunctionHangarGetAvailableHulls
FunctionHangarGetAvailableSkins
FunctionHangarGetBuildProgress
FunctionHangarGetCustomizationCost
FunctionHangarGetCustomizationCurrency
FunctionHangarGetCustomizationSlotDevices
FunctionHangarGetCustomizationSlotInfo
FunctionHangarGetCustomizationSlots
FunctionHangarGetDeviceInfo
FunctionHangarGetDevices
FunctionHangarGetHullInfo
FunctionHangarGetLendShipSpellId
FunctionHangarGetRandomName
FunctionHangarGetRepairProgress
FunctionHangarGetReturnLendedShipSpellId
FunctionHangarGetShipInfo
FunctionHangarGetShips
FunctionHangarGetSkinInfo
FunctionHangarGetSlotDevices
FunctionHangarGetSummonShipSpellId
FunctionHangarGetSwitchShipMasterHullSpellId
FunctionHangarGetSwitchShipSkinSpellId
FunctionHangarGetTakeAwaySpellId
FunctionHangarGetUnsummonShipSpellId
FunctionHangarLendShip
FunctionHangarPreviewPurchasedDevice
FunctionHangarPurchaseDevice
FunctionHangarRemoveDevice
FunctionHangarRemoveDeviceFromHangar
FunctionHangarRename
FunctionHangarRepairReply
FunctionHangarReplaceDevice
FunctionHangarResetDevicePreview
FunctionHangarRevertCustomization
FunctionHangarSummonShip
FunctionHangarSwitchShipMasterHull
FunctionHangarSwitchShipSkin
FunctionHangarTakeAwayShip
FunctionHangarUnsummonShip
ShipSkinId
VisualShipId


CategoryLuaApi CategoryFunction CategoryHangar

На главную