Справочник

Справочник функций

Обратные вызовы пользовательского условия

Пользовательское условие — это набор тел функций на Lua. Каждое получает эти аргументы; addon и L доступны во всех.

evaluate(value, cache, evalStart)

Определить, выполняется ли это условие сейчас.

valuetableСохранённые значения этого условия.
cachetableОбщие данные для этого цикла вычисления.
evalStartnumberВремя начала вычисления в секундах по GetTime().
Возвращаетboolean | niltrue — совпадение; false или nil — нет.

valid(spec, value)

Проверить, полны и корректны ли сохранённые значения условия.

specnumberОбласть специализации ротации.
valuetableСохранённые значения этого условия.
Возвращаетbooleantrue, если условие можно вычислить.

print(spec, value)

Описать условие понятными словами.

specnumberОбласть специализации ротации.
valuetableСохранённые значения этого условия.
Возвращаетstring | RMConditionPhraseЧитаемая строка или временная именованная фраза из Functions.presentation.phrase. Именованные значения остаются буквальными; типизированные предикаты выбирают положительную или отрицательную формулировку. Старый строковый формат по-прежнему поддерживается.

widget(parent, spec, value)

Построить элементы управления для правки этого условия.

parentRMConditionGroupКонтейнер полей условия, предоставляемый адаптером интерфейса.
specnumberОбласть специализации ротации.
valuetableСохранённые значения этого условия.
ВозвращаетnilДобавить элементы управления в предоставленный контейнер.

help(frame)

Построить справку для этого условия.

frameRMConditionGroupКонтейнер справки, предоставляемый адаптером интерфейса.
ВозвращаетnilДобавить справку в предоставленный контейнер.

on_register(tag)

Инициализировать ресурсы при регистрации условия.

tagstringИдентификатор условия.
ВозвращаетnilВозвращаемое значение не используется.

on_unregister(tag)

Освободить ресурсы при удалении или замене условия.

tagstringИдентификатор условия.
ВозвращаетnilВозвращаемое значение не используется.

Значения, доступные вашему коду

addonRMAddonЭкземпляр аддона Rotation Master. Общедоступные вспомогательные функции описаны в Functions.
LtableЛокализованный текст Rotation Master, индексированный по английскому ключу.
addon.unitstable<string, string>Таблица соответствия поддерживаемых токенов юнитов и их локализованных названий. Используйте value.unit как ключ, например addon.units[value.unit]. Доступные токены зависят от клиента.
addon.unitsPossessivetable<string, string>Таблица соответствия поддерживаемых токенов юнитов и их локализованных притяжательных названий, например «вашей цели».
addon.PlatformRMPlatformАдаптер совместимости клиентов Rotation Master. Его методы возвращают обычные читаемые результаты или nil с причиной, если наблюдение недоступно. Вызывайте через двоеточие или явно передавайте addon.Platform как self при обращении через точку.
addon.SpellCatalogRMSpellCatalogКаталог заклинаний Rotation Master для определения зависящих от клиента ID заклинаний, рангов, названий, иконок и ссылок.
functionstable<string, function>Вспомогательные функции, явно привязанные к этому условию или функции. Выберите вариант автодополнения, чтобы привязать доступную пользовательскую функцию перед вставкой ссылки на неё.

WoW API для своего кода

Встроенные помощники

Помощники, которые вкладка «Функции» в игре показывает как встроенные. Общедоступные вызываются по имени; остальные подключаются как зависимость (примите автодополнение или добавьте её в разделе «Зависимости») и вызываются по полному имени.

Помощников: 240 из 240.

Conditions.bossmod.encounterNote зависимостьBuilds the status line the boss-mod condition editors show about the current encounter.
Conditions.bossmod.idEditor зависимостьBuilds a full-width edit box for an optional boss-mod ID (such as the encounter ID) and adds it to parent.
Conditions.bossmod.note зависимостьAdds a full-width text label to a boss-mod condition editor; used for the encounter and timer status lines.
Conditions.bossmod.timerNote зависимостьBuilds the status line the boss-mod condition editors show about running boss-mod timers.
Conditions.bossmod.validCompare зависимостьValidation check for a boss-mod condition's comparison: true when value.operator is one of addon.operators and value.value is a finite number of zero or more.
Conditions.bossmod.validID зависимостьTrue when value is a positive whole number below 2^31, the accepted shape of a saved boss-mod encounter or spell ID.
Conditions.build.imbueObservation зависимостьReads the temporary enchant ID on the main hand, or the off hand when value.offhand is set, for the WEAPON_IMBUE condition.
Conditions.build.setLabel зависимостьFormats an item set ID for the SET_PIECES description: the set name with its ID when addon:GetItemSetName knows it, otherwise "item set N".
Conditions.build.wholeNumber зависимостьTrue when value is a positive, finite whole number; SET_PIECES uses it to validate the saved item set ID.
Conditions.common.Widget_GetSpellId общедоступныйОпределить идентификатор заклинания, сохранённый условием.
Conditions.common.Widget_SpellWidget общедоступныйСоздать поле ввода заклинания с подсказками, проверкой и поддержкой ссылок на заклинания для виджетов пользовательских условий.
Conditions.common.Widget_UnitWidget общедоступныйСоздать настроенный выбор юнита, привязанный к записи значения условия.
Conditions.edition_state.eclipseMeasures зависимостьLists the two measures of the Eclipse condition with their editor labels.
Conditions.edition_state.validCompare зависимостьChecks that a condition value carries a known comparison operator and a finite, non-negative number to compare against.
Conditions.encounter_state.validCompare зависимостьChecks that a condition value carries a known comparison operator and a finite, non-negative number to compare against.
Conditions.encounter_state.validNumber зависимостьChecks that a value is a finite number of zero or more (not NaN, not infinite).
Conditions.engraving.identifier зависимостьTrue when value is a positive whole number below 2^31; RUNE_ENGRAVED uses it to validate a saved rune ID.
Conditions.engraving.runeLabel зависимостьNames the rune selected in a RUNE_ENGRAVED condition: the known rune's name when the platform finds it, else the rune spell's name, else "rune spell N" or "rune N".
Conditions.equipment.matches зависимостьTests one equipment slot record against a WEAPON_TYPE condition: empty slot, shield, any weapon, holdable, one-hand, two-hand, ranged, or a specific weapon subclass.
Conditions.equipment.subclassID зависимостьTrue when value is a whole number from 0 to 31, the range of weapon subclass IDs WEAPON_TYPE accepts.
Conditions.equipment.subclassName зависимостьNames a weapon subclass for WEAPON_TYPE descriptions, using the client's GetItemSubClassInfo when it returns a readable name, else the addon's built-in name, else "weapon type N".
Conditions.group_state.measureNames зависимостьLists what the Group Count condition can count, with the editor label of each.
Conditions.group_state.validCompare зависимостьChecks that a Group Count value carries a known operator and a finite, non-negative number, which is at most 100 when the count is a percent of the group.
Conditions.hero_talent.listedSpec зависимостьReturns the specialization ID when it is one of the player's own class's specializations, which are the only ones whose hero talent trees the game can list.
Conditions.hero_talent.treeName зависимостьNames a hero talent tree: the game's own name for it when Platform:GetHeroTreeName can read one, else "hero talent tree" followed by the ID.
Conditions.hero_talent.validTree зависимостьChecks that a value can be a hero talent tree ID: a positive whole number below 2^31.
Conditions.item.get_item_desc зависимостьDescribes an item reference for the item condition descriptions: an item set name (white for a profile set, cyan for a global one), or the first item's link or name followed by how many others are listed.
Conditions.item.itemHelp зависимостьAdds the item condition editors' help text to frame: the shared item widget help, a gap, and a note on how item sets, bag counts and restricted observations are evaluated.
Conditions.known_spell.validID зависимостьTrue when value is a positive, finite whole number; SPELL_KNOWN uses it to validate the saved spell ID.
Conditions.misc.difficultyKind зависимостьNames the kind of group a difficulty is for, from the group GetDifficultyInfo reports.
Conditions.misc.difficultyName зависимостьThe display name of an instance difficulty ID: the game's name for it (GetDifficultyInfo) with the kind of group in parentheses when the game gives one.
Conditions.misc.validWhole зависимостьChecks that a value can be a difficulty or instance ID: a whole number from 0 up to 2^31.
Conditions.player_state.stateNames зависимостьLists the states the Player State condition offers, with the editor label of each.
Conditions.player_state.statePhrase зависимостьThe readable sentence for one Player State, such as "you are mounted", worded so a Not flips it to "you are not mounted".
Conditions.raid_marks.markListText зависимостьFormats a valid list of markers in priority order.
Conditions.raid_marks.markName зависимостьReturns the game's localized name for a raid marker, falling back to its English name.
Conditions.raid_marks.modeNames зависимостьReturns the localized labels for the any, none and selected-mark modes.
Conditions.raid_marks.validMark зависимостьChecks a saved marker mode or a comma-separated list of distinct marker names.
Conditions.spatial_stats.aggregate зависимостьReduces the per-unit readings a PROXIMITY_* condition collected to one statistic: their average, minimum or maximum.
Conditions.spatial_stats.observation зависимостьReads one health or mana number for a PROXIMITY_* condition through the evaluation cache, protected against errors.
Conditions.spatial_stats.statistic зависимостьReads one unit's health or mana for the PROXIMITY_* conditions as an absolute value, a percentage of the maximum, or the deficit below the maximum.
Conditions.spatial.booleanRead зависимостьCalls a yes/no game API through the evaluation cache, protected against errors, for the distance conditions.
Conditions.spatial.combatFilter зависимостьApplies the In Combat option of Distance Count to one unit: with the option off every unit passes, with it on the unit must be in combat (UnitAffectingCombat).
Conditions.spatial.finite зависимостьTrue when value is a number that is neither NaN nor infinite.
Conditions.spatial.nameplateDistanceCount зависимостьCounts units for DISTANCE_COUNT from a nameplate unit snapshot: units that exist, whose hostility matches value.enemy, and that are definitely within value.distance yards.
Conditions.spatial.protectedRead зависимостьПоставляемый помощник из Conditions/spatial.lua.
Conditions.spatial.rangeMember зависимостьDecides whether unit is within distance yards from the platform's cached range-check bounds: true when the maximum bound is at or inside distance, false when the minimum bound is beyond it (or equals a nonzero distance), otherwise unavailable.
Conditions.spatial.rcf зависимостьReturns the LibRangeCheck-3.0 range estimate for a unit as minimum and maximum yards.
Conditions.specialization.classChoices зависимостьBuilds the specialization choices for one class in the SPECIALIZATION editor.
Conditions.specialization.playerClass зависимостьReturns the player's class file token (such as "MAGE") from UnitClass, or nil when the call fails or the value is restricted.
Conditions.specialization.specClass зависимостьLooks up which class a specialization ID belongs to, from the built-in specialization table or else the platform's specialization display data.
Conditions.specialization.specID зависимостьTrue when value is a positive, finite whole number, the accepted shape of a saved specialization ID.
Conditions.specialization.specName зависимостьNames a specialization for SPECIALIZATION descriptions: the platform's display name and icon, else the built-in localized name, else "specialization N".
Conditions.talent.block зависимостьAdds a full-width group laid out as icon rows (the icon on the left, the picker rows beside it) to a condition widget.
Conditions.talent.classSpecs зависимостьLists the specializations of the player's class for the Talent condition's Specialization picker, so a rotation can pick the talents of a specialization other than the one being played.
Conditions.talent.dropdown зависимостьCreates a full-width condition dropdown labeled title for the talent condition editors, forwards each selection to changed, and adds it to parent.
Conditions.talent.gridWidget зависимостьBuilds the TALENT editor controls for the tier-and-column grid talent layout: a talent icon and a dropdown of the client's grid talents (up to 18).
Conditions.talent.group зависимостьReturns the talent group to query for spec: spec itself on progression clients when it is a whole number from 1 to 4, otherwise nil so the platform uses its default group.
Conditions.talent.groupLabel зависимостьThe heading above one group of talents in the Retail and Forever talent list: class talents, specialization talents, both, one hero tree, or a plain name.
Conditions.talent.icon зависимостьCreates the 44-pixel talent icon for the TALENT editors, showing the referenced talent's icon and, on hover, its spell tooltip (or its name), and adds it to parent.
Conditions.talent.info зависимостьLooks up the talent a TALENT condition refers to, according to its layout: a trait node and entry, a grid index, or a tree and talent index.
Conditions.talent.integer зависимостьTrue when value is a whole number between minimum and maximum, inclusive.
Conditions.talent.legacySlot зависимостьTrue when a TALENT condition still uses the historical single-number layout: no layout, tree or talent field, and value.value a whole number from 1 to 21.
Conditions.talent.ownTrees зависимостьWhether the talent trees shown are the player's own class's, so the game can name them, rather than another class's trees from the addon's shipped list.
Conditions.talent.text зависимостьAdds a full-width explanatory label to a talent condition editor.
Conditions.talent.traitFamily зависимостьTrue when the client uses trait talents, that is the retail or forever client families.
Conditions.talent.traitShape зависимостьTrue when value.layout is "traits", meaning the TALENT condition names a trait node.
Conditions.talent.traitsWidget зависимостьBuilds the TALENT editor controls for trait talents: a talent tree dropdown when there are several, a talent dropdown, Talent Node ID and Choice Entry ID edit boxes, and a Rank comparison.
Conditions.talent.treeExists зависимостьChecks that a talent condition's tree index exists on this client, using the cached platform talent tree count.
Conditions.talent.treeName зависимостьNames the talent tree in a talent tree condition's description: the client's tree name, else "Talent tree N", else "<talent tree>" when no tree is set.
Conditions.talent.treePicker зависимостьBuilds the Talent tree dropdown for the TALENT_TREE_POINTS and PRIMARY_TALENT_TREE editors, listing the client's talent trees, storing the selection in value.tree and calling update.
Conditions.talent.treeShape зависимостьTrue when a TALENT condition uses the tree layout (layout nil or "tree") with both tree and talent set.
Conditions.talent.treeWidget зависимостьBuilds the TALENT editor controls for Classic talent trees: a tree dropdown, a talent icon, a talent dropdown for the chosen tree, and a Points comparison.
Conditions.totem.amount зависимостьTrue when a totem condition's comparison is usable: value.value is a nonnegative finite number and value.operator is one of addon.operators.
Conditions.totem.element зависимостьTrue when value.spell is a valid spell ID of 4 or less, meaning the condition names a totem element slot rather than a totem spell.
Conditions.totem.findSpecific зависимостьSearches the totem slots for an active totem matching value.spell, by spell ID or name (only the exact spell ID when value.ranked is set).
Conditions.totem.observe зависимостьCalls a totem platform method through the evaluation cache, passing the platform as its self argument.
Conditions.totem.remaining зависимостьSeconds left on a totem slot record at time start (or now): zero when the totem is inactive, and never negative.
Conditions.totem.specific зависимостьTrue when a totem spell condition names a valid spell ID and value.ranked is nil or a boolean.
Conditions.weapon.enchantObservation зависимостьReads whether the main hand, or the off hand when value.offhand is set, has a temporary weapon enchant for the weapon conditions, with its expiration and charges.
Conditions.weapon.numericObservation зависимостьAccepts a readable, nonnegative, finite number from a weapon observation and returns it unchanged; anything else becomes nil with a reason.
Conditions.weapon.swingSpeed зависимостьReads the player's main-hand, or off-hand when value.offhand is set, attack speed from the cached UnitAttackSpeed for the swing timer conditions.
Core.class_group_conditions.GetClassGroupCount общедоступныйПосчитать совпадающие токены классов в текущем фиксированном составе.
Core.creature_conditions.configuredID зависимостьMaps a stored CREATURE condition key to its numeric creature type, from BEAST (1) to GAS_CLUUD (13).
Core.creature_conditions.GetConditionCreatureTypeMatch общедоступныйСравнить ID существа выбранного юнита с одним существующим сохранённым ключом типа существа.
Core.health_forecast_conditions.finite зависимостьChecks that a health-forecast number is readable and finite.
Core.health_forecast_conditions.GetConditionHealthForecast общедоступныйОценить время до выбранного уровня здоровья.
Core.health_forecast_conditions.nativeValue зависимостьReads a unit's current or maximum health through the platform's health-forecast observer and the evaluation cache, rejecting restricted, missing, nonfinite or negative values.
Core.health_forecast_conditions.readField зависимостьReads object[key] for the health-forecast conditions without letting a restricted value, a non-table object or an index error escape.
Core.level_conditions.GetConditionUnitLevel общедоступныйОпределить читаемый исходный уровень юнита для вычисления условия.
Core.point_conditions.editionPointResource зависимостьSelects the point resource for era and progression clients from the addon's per-edition map (combo points, Holy Power, Soul Shards, Chi, Shadow Orbs and similar).
Core.point_conditions.GetConditionPointResource общедоступныйОпределить выбор очков ресурса выбранного юнита по действующей таблице «класс — ресурс» и запасному варианту ComboPoints.
Core.point_conditions.GetConditionPointResourceV2 общедоступныйОпределить очки ресурса по исходному действующему соответствию классов и кэшу идентичности, с явной политикой передачи для запасного варианта ComboPoints игрока TBC.
Core.point_conditions.pointIdentity зависимостьObserves whether unit exists and, if so, its class, for the point-resource selectors.
Core.threat_count_conditions.finite зависимостьChecks that a threat-count number is readable and finite.
Core.threat_count_conditions.GetConditionThreatCount общедоступныйУчитывать только юниты с ключом GUID, уже входящие в наблюдаемый снимок состава.
Core.threat_count_conditions.readField зависимостьReads object[key] for the threat-count conditions without letting a restricted value, a non-table object or an index error escape.
Functions.cache.getCached общедоступныйВызвать наблюдение один раз на кэш и точный кортеж аргументов, включая результаты nil.
Functions.cache.getRetryCached общедоступныйКэшировать наблюдение после того, как оно вернуло значение не nil; повторять наблюдения, весь кортеж результатов которых равен nil.
Functions.collections.cleanArray общедоступныйУдалить записи на месте, по умолчанию оставляя только ключи, перечисленные в значениях except.
Functions.collections.compareArray общедоступныйОбойти записи обеих таблиц и сравнить каждое значение со значением по тому же индексу в другой таблице через равенство Lua.
Functions.collections.deepcopy общедоступныйСоздать неглубокую отфильтрованную копию, несмотря на историческое название deepcopy.
Functions.collections.index общедоступныйВернуть первый ключ, значение которого равно переданному, при обходе pairs.
Functions.collections.keys общедоступныйСобрать ключи таблицы и отсортировать их по связанным значениям через сравнение Lua «меньше».
Functions.collections.multiinsert общедоступныйВставить каждое значение, обходимое ipairs, по соответствующему начальному индексу в массив назначения.
Functions.collections.spairs общедоступныйСоздать итератор по отсортированному снимку ключей таблицы.
Functions.collections.tablelength общедоступныйПосчитать все записи, обходимые pairs, включая значения false и разреженные числовые или нечисловые ключи.
Functions.collections.tomap общедоступныйСкопировать таблицу, используя tostring каждого исходного ключа как ключ назначения.
Functions.forecast.calculate общедоступныйВычислить проверенную скорость изменения здоровья по истории с явными конечными окном и часами.
Functions.forecast.finite зависимостьChecks that a number used by Functions.forecast.calculate is readable and finite.
Functions.forecast.readField зависимостьReads object[key] for Functions.forecast.calculate without letting a restricted value, a non-table object or an index error escape.
Functions.presentation.compareString общедоступныйСформировать текст сравнения с именованными логическими вариантами, если у оператора есть отрицательная форма.
Functions.presentation.nullable общедоступныйВернуть присутствующее значение без изменений или красный заполнитель для nil.
Functions.presentation.nullable_value общедоступныйНайти ключ таблицы для отображения, сохраняя результаты не nil; для некорректных таблиц, отсутствующих ключей и ключей nil используется текст-заполнитель.
Functions.presentation.phrase общедоступныйСоздать временную именованную сводку условия.
Functions.presentation.playerize общедоступныйВыбрать переданное значение для игрока только для буквального токена юнита player; любой другой юнит выбирает значение не для игрока.
Functions.presentation.predicate общедоступныйСоздать типизированный предикат сравнения для именованной фразы условия.
Functions.text.ends_with общедоступныйПроверить буквальный байтовый суффикс через срез строки Lua.
Functions.text.split общедоступныйРазбить строку на непустые фрагменты между символами-разделителями.
Functions.text.starts_with общедоступныйПроверить буквальный байтовый префикс через срез строки Lua.
Functions.text.trim общедоступныйУдалить начальные и конечные пробельные символы (по шаблону Lua) из строки.
Functions.text.wrap общедоступныйПереносить текст по пробельным символам около целевого числа столбцов.
Functions.trends.calculate общедоступныйОценить знаковое изменение здоровья по взвешенной истории урона и исцеления.
Functions.trends.calculateOld общедоступныйВыполнить историческую формулу тренда снимков здоровья с действующим окном истории профиля, часами и старой службой округления.
Functions.values.compare общедоступныйСравнить два значения с помощью идентификатора оператора RM: LESSTHAN, LESSTHANOREQUALS, GREATERTHAN, GREATERTHANOREQUALS, EQUALS, NOTEQUALS или DIVISIBLE.
Functions.values.isin общедоступныйПроверить, есть ли в таблице значение не nil по ключу.
Functions.values.isint общедоступныйПрименить старую проверку записи целого числа или канонической числовой строки.
Functions.values.round общедоступныйОкруглить по существующей формуле floor(num * 10^places + 0.5) / 10^places.
Platform.actions.call зависимостьCalls a native API function in protected mode and returns its first result only when Rotation Master can read it.
Platform.actions.findSlot зависимостьFinds the spell-book slot of a spell with FindSpellBookSlotBySpellID.
Platform.actions.GetSpellRangeState общедоступныйПрочитать дальность конкретного заклинания для юнита через подходящий API клиента или ячейку книги заклинаний.
Platform.actions.spellID зависимостьValidates a spell ID argument.
Platform.announcement_recipient.GetAnnouncementRecipientGroupMembership общедоступныйСопоставить точное имя получателя применения с текущим ограниченным составом группы или рейда, затем наблюдать членство через токен юнита.
Platform.casting.durationSeconds зависимостьComputes the total length of a cast or channel in seconds from the millisecond start and end times in a UnitCastingInfo or UnitChannelInfo result.
Platform.casting.finite зависимостьReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.casting.GetUnitCastObservation общедоступныйНаблюдать произнесение или поддержание заклинания юнитом на клиентах с политикой проверки или ограничения.
Platform.casting.interruptibility зависимостьConverts the native notInterruptible flag of a cast or channel into an interruptible Boolean (its inverse).
Platform.casting.remainingSeconds зависимостьConverts the millisecond end time of a cast or channel into the seconds left, measured against a fresh GetTime() and clamped at zero.
Platform.casting.spellIdentity зависимостьValidates the spell ID field of a cast or channel result.
Platform.creature_type.GetUnitCreatureTypeID общедоступныйНаблюдать идентичность существа по второму возвращаемому значению встроенного UnitCreatureType на клиентах с политикой проверки или ограничения.
Platform.form.GetPlayerFormObservation общедоступныйНаблюдать текущий облик игрока одним защищённым вызовом GetShapeshiftForm без аргументов.
Platform.glyphs.GetGlyphItemInfo общедоступныйОпределить, является ли числовой предмет символом для запрошенного класса, используя защищённые встроенные метаданные предмета.
Platform.glyphs.GetGlyphSocketSnapshot общедоступныйНаблюдать гнёзда символов на проверенных раскладках клиентов Wrath, Cata и Mists.
Platform.glyphs.integer зависимостьReturns true when value is a finite whole number no smaller than minimum, and false for anything else (including NaN and infinity).
Platform.glyphs.layout зависимостьMaps client information to the position in the GetGlyphSocketInfo result that holds the glyph spell ID.
Platform.glyphs.socket зависимостьReads one glyph socket by calling fn(index) in protected mode and always returns a slot record with slot=index.
Platform.groups.GetGroupMembership общедоступныйПрочитать общедоступное членство в группе на определённых семействах клиентов.
Platform.groups.GetUnitGroupMembership общедоступныйПрочитать членство указанного юнита в группе или рейде игрока.
Platform.health_forecast.finite зависимостьReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.health_forecast.GetHealthForecastIdentityObservation общедоступныйНа клиентах с политикой проверки или ограничения наблюдать точный UnitExists(unit), затем UnitGUID(unit) только для присутствующего юнита.
Platform.health_forecast.GetHealthForecastProviderObservation общедоступныйПрочитать необязательный RealMobHealth точным вызовом через точку с одним аргументом.
Platform.health_forecast.GetHealthForecastTimeObservation общедоступныйПолучить свежее значение защищённого вызова GetTime без аргументов для нужного прогноза здоровья.
Platform.health_forecast.GetHealthForecastValueObservation общедоступныйПрочитать ленивое скалярное значение здоровья после отдельной проверки идентичности.
Platform.health_forecast.providerValue зависимостьNormalizes one health figure returned by the RealMobHealth provider.
Platform.health_forecast.readField зависимостьReads object[key] in protected mode.
Platform.instance.GetInstanceObservation общедоступныйНаблюдать один защищённый кортеж IsInInstance без аргументов.
Platform.items.finite зависимостьReturns true when value is a finite, nonnegative number (not NaN or infinity), and false for anything else.
Platform.items.GetItemInfoInstant общедоступныйПрочитать нормализованные встроенные метаданные классификации предмета.
Platform.items.identifier зависимостьValidates an item argument.
Platform.loss_of_control.GetLossOfControlCount общедоступныйПрочитать документированное число активных потерь контроля защищённым вызовом через точку без аргументов.
Platform.loss_of_control.GetLossOfControlEvent общедоступныйПрочитать одну документированную строку активной потери контроля по её встроенному индексу и запрошенному виду субъекта.
Platform.mobinfo2.finite зависимостьChecks that a value is a readable finite number.
Platform.mobinfo2.GetMobInfo2Observation общедоступныйПрочитать необязательные исторические наблюдения MobInfo2 на клиентах с политикой проверки или ограничения.
Platform.mobinfo2.hitCount зависимостьReads the hit count for a spell school from a MobInfo2 resists table (the field named school.."Hits").
Platform.mobinfo2.presence зависимостьChecks whether a unit exists with one protected UnitExists call.
Platform.mobinfo2.readField зависимостьReads object[key] in protected mode for MobInfo2 data.
Platform.pet.GetPetObservation общедоступныйНаблюдать точное существование питомца и, при необходимости, его отформатированное отображаемое имя через GetUnitName.
Platform.player_flags.GetPlayerFlagObservation общедоступныйНаблюдать один независимый флаг игрока без аргументов: stealthed — IsStealthed, control — HasFullControl, outdoors — IsOutdoors.
Platform.player_movement.GetPlayerMovementObservation общедоступныйНаблюдать текущую скорость передвижения игрока на поддерживаемых читаемых клиентах.
Platform.points.GetPlayerComboPointObservation общедоступныйНаблюдать явно выбранную передачу очков серии игрока в TBC.
Platform.points.GetUnitPointFragmentObservation общедоступныйНаблюдать очки ресурса, которые клиент сообщает частями (Раскаленные угли в Mists of Pandaria).
Platform.points.GetUnitPointIdentityObservation общедоступныйНаблюдать точное существование выбранного юнита и, при необходимости, имя файла его класса для условий по очкам ресурса.
Platform.points.GetUnitPointPowerObservation общедоступныйПрочитать одно явно выбранное количество очков ресурса точным запросом UnitPower или UnitPowerMax с двумя аргументами.
Platform.range.GetNameplateMaxDistance общедоступныйПрочитать текущую положительную дальность видимости индикаторов здоровья через поддерживаемый API CVar.
Platform.range.GetRangeCheckBounds общедоступныйПрочитать общедоступный интервал LibRangeCheck для юнита.
Platform.role.GetInspectRoleObservation общедоступныйНаблюдать роль выбранного юнита на клиентах с политикой проверки или ограничения без запросов осмотра.
Platform.role.GetTalentGroupRoleObservation общедоступныйНаблюдать первый результат роли точного старого вызова GetTalentGroupRole(group) через точку на клиентах с политикой проверки или ограничения.
Platform.role.readField зависимостьReads object[key] in protected mode, used to look up optional APIs.
Platform.role.roleValue зависимостьValidates a role returned by a native API.
Platform.roster_class.GetRosterClassObservation общедоступныйПрочитать общедоступную идентичность состава на определённых семействах клиентов.
Platform.roster_class.rosterUnit зависимостьReturns true when unit is exactly player, party1 through party4, or raid1 through raid40 (no leading zeros), and false for any other string.
Platform.rotation_owner.GetPlayerOwnerClassObservation общедоступныйПрочитать свежее защищённое наблюдение UnitClass для player, чтобы определить владельца ротации.
Platform.runes.finite зависимостьReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.runes.GetRuneCooldownObservation общедоступныйПрочитать один защищённый кортеж GetRuneCooldown для точной встроенной ячейки.
Platform.runes.GetRuneEvaluationTime общедоступныйПрочитать свежее значение защищённого GetTime без аргументов для расчёта восстановления рун.
Platform.runes.GetRuneTypeObservation общедоступныйНаблюдать одну точную встроенную ячейку руны через GetRuneType с единственным аргументом-индексом.
Platform.runes.numberField зависимостьNormalizes one numeric field of a native result.
Platform.runes.validIndex зависимостьValidates a rune slot index.
Platform.spells.cooldownFlags зависимостьExtracts the never-secret isEnabled, isActive and isOnGCD flags from a C_Spell.GetSpellCooldown record whose times are secret.
Platform.spells.cooldownValues зависимостьReads a spell cooldown as separate values for the readiness checks.
Platform.spells.copy зависимостьCopies the expected fields of a native result table into a new table, checking each type.
Platform.spells.finiteNonNegative зависимостьReturns true when value is a nonnegative number that is not NaN or infinity, and false for anything else.
Platform.spells.flagReadiness зависимостьDecides cooldown readiness from the never-secret flags when the cooldown times are hidden.
Platform.spells.gcdRunning зависимостьReports whether the global cooldown is running at time now.
Platform.spells.GetSpellCharges общедоступныйПрочитать нормализованную запись зарядов: currentCharges, maxCharges, cooldownStartTime, cooldownDuration, chargeModRate и isActive.
Platform.spells.GetSpellCooldown общедоступныйСчитывает и нормализует время восстановления заклинания во всех поддерживаемых клиентах.
Platform.spells.identifier зависимостьValidates a spell argument.
Platform.spells.IsAutoRepeatActive общедоступныйПрочитать состояние автоповтора игрока для заклинания вроде «Выстрела» или «Автоматической стрельбы».
Platform.spells.IsSpellReady общедоступныйПроверяет, можно ли рекомендовать заклинание сейчас, допуская заклинание, оставшееся восстановление которого заканчивается вместе с текущим общим временем восстановления.
Platform.spells.own зависимостьReturns a record holding only the expected fields, each checked by type.
Platform.threat.GetUnitThreatObservation общедоступныйНаблюдать по порядку существование выбранного юнита, враждебность к игроку, затем статус угрозы игрока по этому юниту.
Platform.unit_attackability.GetUnitAttackabilityObservation общедоступныйНаблюдать, может ли игрок атаковать выбранный юнит, который не мёртв, с помощью точных предикатов UnitExists, UnitCanAttack и UnitIsDead.
Platform.unit_flags.GetUnitFlagObservation общедоступныйНаблюдать один текущий флаг юнита: combat — UnitAffectingCombat, enemy — UnitIsEnemy с player первым юнитом, pvp — UnitIsPVP.
Platform.unit_health.finite зависимостьReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_health.GetUnitHealthObservation общедоступныйНаблюдать читаемое текущее и, при необходимости, максимальное здоровье на поддерживаемых клиентах.
Platform.unit_identity.GetUnitIdentityObservation общедоступныйСравнить два точных токена юнитов через UnitIsUnit после проверки только первого токена через UnitExists.
Platform.unit_level.finite зависимостьReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_level.GetUnitLevelObservation общедоступныйНаблюдать читаемый исходный уровень юнита на известных клиентах.
Platform.unit_metadata.GetUnitMetadataObservation общедоступныйНаблюдать одно используемое поле встроенных метаданных юнита после проверки UnitExists: class — второе значение UnitClass, creature — локализованное название UnitCreatureType, classification — UnitClassification.
Platform.unit_power.finite зависимостьReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_power.GetUnitPowerObservation общедоступныйНаблюдать явно ману или текущий исходный ресурс на поддерживаемых читаемых клиентах.
Platform.unit_presence.GetUnitPresenceObservation общедоступныйНаблюдать присутствие юнита на определённых семействах клиентов.
Platform.unit_stat.finite зависимостьReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_stat.GetUnitStatObservation общедоступныйНаблюдать эффективную характеристику только по второму встроенному возвращаемому значению.
Platform.unit_states.GetUnitStateObservation общедоступныйНаблюдать состояние смерти или призрака либо дружелюбие к игроку для точного выбранного юнита на клиентах с политикой проверки или ограничения.
Platform.zone_pvp.GetZonePVPObservation общедоступныйНаблюдать первый результат классификации PvP зоны одним защищённым вызовом через точку без аргументов.
UI.checkbox.constructor зависимостьConstructs a new RM-CheckBox condition widget: a 180 by 24 frame holding a workbench check box, with SetLabel, SetValue, GetValue and SetDisabled, firing OnValueChanged when clicked.
UI.checkbox.CreateConditionCheckBox общедоступныйСоздать встроенный логический элемент условия.
UI.condition_display.buttonConstructor зависимостьConstructs a new RM-ConditionButton widget around a 200-pixel workbench button, with SetText, SetAutoWidth and SetDisabled, firing OnClick (with the mouse button), OnEnter and OnLeave only while its lease is live.
UI.condition_display.CreateConditionButton общедоступныйСоздать встроенную кнопку с общим жизненным циклом виджетов условий и темой рабочего окна.
UI.condition_display.CreateConditionLabel общедоступныйСоздать встроенный переносимый текст, высота которого измеряется по ширине и шрифту.
UI.condition_display.CreateConditionLink общедоступныйСоздать встроенный переносимый текст с необязательным изображением в начале и обратными вызовами указателя.
UI.condition_display.defaultFont зависимостьReturns the default font for condition labels and buttons: the GameFontHighlightSmall font object, or its name when the object is not defined.
UI.condition_display.labelConstructor зависимостьConstructs a new condition text widget: a plain wrapping RM-ConditionLabel, or with interactive set an RM-ConditionLink button that adds a leading image and OnEnter, OnLeave and OnClick callbacks.
UI.condition_icon.constructor зависимостьConstructs a new RM-ConditionIcon widget: a clickable image with an optional caption below it, with SetImage, SetImageByAtlas, SetImageSize, SetLabel and SetDisabled, firing OnClick, OnEnter and OnLeave while its lease is live.
UI.condition_icon.CreateConditionIcon общедоступныйСоздать встроенный элемент изображения с жизненным циклом виджетов условий.
UI.condition_inputs.constructor зависимостьConstructs a new condition input widget: an RM-ConditionEditBox text box, or with numeric set an RM-ConditionSlider pairing a slider with a numeric box (with range, step and percent display).
UI.condition_inputs.CreateConditionEditBox общедоступныйСоздать встроенный текстовый ввод по контракту виджетов условий.
UI.condition_inputs.CreateConditionSlider общедоступныйСоздать встроенный числовой ввод условия с ползунком и полем для числа.
UI.condition_inputs.finite зависимостьTrue when value is a number that is neither NaN nor infinite; the condition inputs use it to validate entered and slider values.
UI.condition_layout.constructor зависимостьConstructs a new RM-ConditionGroup container that stacks condition widgets in List, Table or RM-SpellField layout, resizing itself to its contents and relaying out its parent.
UI.condition_layout.CreateConditionGroup общедоступныйСоздать контейнер полей условия с принадлежащими RM раскладками List, Table и адаптивной раскладкой полей заклинаний.
UI.condition_layout.layoutIconRows зависимостьLays out the "RM-IconRows" container: an icon on the left, vertically centered beside the rows of fields, and an optional side widget (marked with the side user data) that sits beside the last row when there is room and below the rows when there is not.
UI.condition_layout.verticalAlignment зависимостьConverts a table cell's alignV setting to a vertical offset fraction for the condition group's Table layout: 0 for nil, start or top, 0.5 for middle or center, and 1 for end or bottom (case-insensitive prefixes).
UI.condition_position.constructor зависимостьConstructs a new RM-ConditionPositionPad widget around the shared workbench directional pad, with SetDisabled, firing OnOffsetChanged (horizontal and vertical direction, whether Center was pressed, and the step) only while its lease is live and it is enabled.
UI.condition_position.CreateConditionPositionPad общедоступныйСоздать встроенную панель положения с общими кнопками направлений.
UI.selector.CreateConditionDropdown общедоступныйСоздать встроенный список выбора условия.
UI.selector.selectorWidget зависимостьConstructs a new RM-Selector dropdown widget: an optional caption over a button that opens the workbench selector popup.
utils.getCachedInternal зависимостьПоставляемый помощник из utils.lua.
utils.packResults зависимостьПоставляемый помощник из utils.lua.