Пользовательские дополнения
На главную
lfgLib.GetDepartRequirements( destinationId )
Требования на отправку в локацию.
-- библиотека:
lfgLib
-- объявление:
function GetDepartRequirements( destinationId )
-- параметры:
destinationId: LfgDestinationId - идентификатор целевой локации
-- возвращаемое значение
table or nil, таблица с полями:
requirements: RequirementsTable - список условий
Описание требований: RequirementsTable.
-- пример:
local reqs = lfgLib.GetDepartRequirements( destinationId )
local firstRequirement = nil
if reqs then
local req = reqs.requirements[0]
if req then
if req.type then
req = req.childs[ 0 ]
if req then
firstRequirement = req.sysCause
end
else
firstRequirement = req.sysCause
end
end
end
Search: "CategoryLuaApi" "CategoryLfgLib"
EnumLfgActionFail
EnumLFGEventDifficulty
EnumLfgRole
EnumLfgVoteType
EventLfgActionFail
EventLfgDepartAvailableChanged
EventLfgDestinationAvailableChanged
EventLfgDestinationChanged
EventLfgDestinationsListChanged
EventLfgDestinationVisitsChanged
EventLfgJoin
EventLfgLeave
EventLfgVote
EventLfgVoteTerminate
FunctionLfgLibDepart
FunctionLfgLibEnableReplicateDestinations
FunctionLfgLibGetCurrentDestination
FunctionLfgLibGetDepartRequirements
FunctionLfgLibGetDestinationCategories
FunctionLfgLibGetDestinationRequirements
FunctionLfgLibGetDestinationReward
FunctionLfgLibGetDestinations
FunctionLfgLibGetDestinationsInCategory
FunctionLfgLibGetDestinationTimers
FunctionLfgLibGetDestinationVisits
FunctionLfgLibGetRoles
FunctionLfgLibIsAvailable
FunctionLfgLibIsDepartAvailable
FunctionLfgLibIsDestinationAvailable
FunctionLfgLibIsFreePass
FunctionLfgLibIsRoleAvailable
FunctionLfgLibJoin
FunctionLfgLibLeave
FunctionLfgLibVoteNo
FunctionLfgLibVoteYes
LfgDestinationCategoryId
LfgDestinationId
CategoryLuaApi
CategoryFunction
CategoryLfgLib
На главную