Referência

Referência de funções

Callbacks das condições personalizadas

Uma condição personalizada é um conjunto de corpos de função Lua. Cada um recebe estes argumentos; addon e L estão disponíveis em todos eles.

evaluate(value, cache, evalStart)

Decide se esta condição corresponde no momento.

valuetableOs valores armazenados desta condição.
cachetableDados compartilhados deste ciclo de avaliação.
evalStartnumberMomento de início da avaliação, em segundos a partir de GetTime().
Retornosboolean | nilVerdadeiro corresponde; falso ou nil não corresponde.

valid(spec, value)

Verifica se os valores armazenados da condição estão completos e são válidos.

specnumberEscopo de especialização da rotação.
valuetableOs valores armazenados desta condição.
RetornosbooleanVerdadeiro quando a condição pode ser avaliada.

print(spec, value)

Descreve a condição em palavras legíveis.

specnumberEscopo de especialização da rotação.
valuetableOs valores armazenados desta condição.
Retornosstring | RMConditionPhraseUm texto legível ou uma frase nomeada transitória de Functions.presentation.phrase. Valores nomeados permanecem literais; predicados tipados escolhem a redação positiva ou negativa. O formato de texto antigo continua compatível.

widget(parent, spec, value)

Cria os controles usados para editar esta condição.

parentRMConditionGroupO contêiner de campos da condição fornecido pelo adaptador de interface.
specnumberEscopo de especialização da rotação.
valuetableOs valores armazenados desta condição.
RetornosnilAdiciona controles ao contêiner fornecido.

help(frame)

Cria o conteúdo de ajuda desta condição.

frameRMConditionGroupO contêiner de ajuda fornecido pelo adaptador de interface.
RetornosnilAdiciona conteúdo de ajuda ao contêiner fornecido.

on_register(tag)

Inicializa recursos quando a condição é registrada.

tagstringO identificador da condição.
RetornosnilNenhum valor de retorno é usado.

on_unregister(tag)

Libera recursos quando a condição é removida ou substituída.

tagstringO identificador da condição.
RetornosnilNenhum valor de retorno é usado.

Valores que seu código pode usar

addonRMAddonInstância do addon Rotation Master. As funções auxiliares públicas estão documentadas em Funções.
LtableTexto localizado do Rotation Master, indexado pela chave em inglês.
addon.unitstable<string, string>Tabela de consulta de token de unidade para nome de unidade localizado. Use value.unit como chave; por exemplo, addon.units[value.unit]. Os tokens disponíveis variam conforme o cliente.
addon.unitsPossessivetable<string, string>Tabela de consulta de token de unidade para nome possessivo localizado da unidade, como "do seu alvo".
addon.PlatformRMPlatformAdaptador de compatibilidade com o cliente do Rotation Master. Os métodos dele retornam resultados legíveis comuns, ou nil com um motivo quando uma observação está indisponível. Use uma chamada com dois-pontos ou passe addon.Platform explicitamente como self com uma referência com ponto.
addon.SpellCatalogRMSpellCatalogCatálogo de feitiços do Rotation Master para resolver IDs, graus, nomes, ícones e links de feitiços específicos de cada cliente.
functionstable<string, function>Funções utilitárias vinculadas explicitamente a esta condição ou função. Escolha um preenchimento automático para vincular uma função personalizada disponível antes de inserir a referência a ela.

API do WoW para código personalizado

Funções auxiliares integradas

As funções auxiliares que a aba Funções do jogo lista como Integradas. As públicas são chamadas pelo nome; as outras são vinculadas como dependência (escolha o preenchimento automático ou adicione-a em Dependências) e chamadas pelo nome qualificado.

240 de 240 funções auxiliares.

Conditions.bossmod.encounterNote dependênciaBuilds the status line the boss-mod condition editors show about the current encounter.
Conditions.bossmod.idEditor dependênciaBuilds a full-width edit box for an optional boss-mod ID (such as the encounter ID) and adds it to parent.
Conditions.bossmod.note dependênciaAdds a full-width text label to a boss-mod condition editor; used for the encounter and timer status lines.
Conditions.bossmod.timerNote dependênciaBuilds the status line the boss-mod condition editors show about running boss-mod timers.
Conditions.bossmod.validCompare dependênciaValidation 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 dependênciaTrue 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 dependênciaReads 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 dependênciaFormats 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 dependênciaTrue when value is a positive, finite whole number; SET_PIECES uses it to validate the saved item set ID.
Conditions.common.Widget_GetSpellId públicaResolve o identificador de feitiço armazenado por uma condição.
Conditions.common.Widget_SpellWidget públicaCria uma entrada de feitiço com sugestões, validação e suporte a links de feitiço para widgets de condições personalizadas.
Conditions.common.Widget_UnitWidget públicaCria um seletor de unidade configurado vinculado a um registro de valores de condição.
Conditions.edition_state.eclipseMeasures dependênciaLists the two measures of the Eclipse condition with their editor labels.
Conditions.edition_state.validCompare dependênciaChecks that a condition value carries a known comparison operator and a finite, non-negative number to compare against.
Conditions.encounter_state.validCompare dependênciaChecks that a condition value carries a known comparison operator and a finite, non-negative number to compare against.
Conditions.encounter_state.validNumber dependênciaChecks that a value is a finite number of zero or more (not NaN, not infinite).
Conditions.engraving.identifier dependênciaTrue when value is a positive whole number below 2^31; RUNE_ENGRAVED uses it to validate a saved rune ID.
Conditions.engraving.runeLabel dependênciaNames 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 dependênciaTests 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 dependênciaTrue when value is a whole number from 0 to 31, the range of weapon subclass IDs WEAPON_TYPE accepts.
Conditions.equipment.subclassName dependênciaNames 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 dependênciaLists what the Group Count condition can count, with the editor label of each.
Conditions.group_state.validCompare dependênciaChecks 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 dependênciaReturns 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 dependênciaNames 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 dependênciaChecks that a value can be a hero talent tree ID: a positive whole number below 2^31.
Conditions.item.get_item_desc dependênciaDescribes 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 dependênciaAdds 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 dependênciaTrue when value is a positive, finite whole number; SPELL_KNOWN uses it to validate the saved spell ID.
Conditions.misc.difficultyKind dependênciaNames the kind of group a difficulty is for, from the group GetDifficultyInfo reports.
Conditions.misc.difficultyName dependênciaThe 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 dependênciaChecks that a value can be a difficulty or instance ID: a whole number from 0 up to 2^31.
Conditions.player_state.stateNames dependênciaLists the states the Player State condition offers, with the editor label of each.
Conditions.player_state.statePhrase dependênciaThe 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 dependênciaFormats a valid list of markers in priority order.
Conditions.raid_marks.markName dependênciaReturns the game's localized name for a raid marker, falling back to its English name.
Conditions.raid_marks.modeNames dependênciaReturns the localized labels for the any, none and selected-mark modes.
Conditions.raid_marks.validMark dependênciaChecks a saved marker mode or a comma-separated list of distinct marker names.
Conditions.spatial_stats.aggregate dependênciaReduces the per-unit readings a PROXIMITY_* condition collected to one statistic: their average, minimum or maximum.
Conditions.spatial_stats.observation dependênciaReads one health or mana number for a PROXIMITY_* condition through the evaluation cache, protected against errors.
Conditions.spatial_stats.statistic dependênciaReads 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 dependênciaCalls a yes/no game API through the evaluation cache, protected against errors, for the distance conditions.
Conditions.spatial.combatFilter dependênciaApplies 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 dependênciaTrue when value is a number that is neither NaN nor infinite.
Conditions.spatial.nameplateDistanceCount dependênciaCounts 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 dependênciaFunção auxiliar incluída de Conditions/spatial.lua.
Conditions.spatial.rangeMember dependênciaDecides 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 dependênciaReturns the LibRangeCheck-3.0 range estimate for a unit as minimum and maximum yards.
Conditions.specialization.classChoices dependênciaBuilds the specialization choices for one class in the SPECIALIZATION editor.
Conditions.specialization.playerClass dependênciaReturns 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 dependênciaLooks 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 dependênciaTrue when value is a positive, finite whole number, the accepted shape of a saved specialization ID.
Conditions.specialization.specName dependênciaNames a specialization for SPECIALIZATION descriptions: the platform's display name and icon, else the built-in localized name, else "specialization N".
Conditions.talent.block dependênciaAdds 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 dependênciaLists 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 dependênciaCreates 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 dependênciaBuilds 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 dependênciaReturns 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 dependênciaThe 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 dependênciaCreates 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 dependênciaLooks 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 dependênciaTrue when value is a whole number between minimum and maximum, inclusive.
Conditions.talent.legacySlot dependênciaTrue 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 dependênciaWhether 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 dependênciaAdds a full-width explanatory label to a talent condition editor.
Conditions.talent.traitFamily dependênciaTrue when the client uses trait talents, that is the retail or forever client families.
Conditions.talent.traitShape dependênciaTrue when value.layout is "traits", meaning the TALENT condition names a trait node.
Conditions.talent.traitsWidget dependênciaBuilds 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 dependênciaChecks that a talent condition's tree index exists on this client, using the cached platform talent tree count.
Conditions.talent.treeName dependênciaNames 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 dependênciaBuilds 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 dependênciaTrue when a TALENT condition uses the tree layout (layout nil or "tree") with both tree and talent set.
Conditions.talent.treeWidget dependênciaBuilds 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 dependênciaTrue 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 dependênciaTrue 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 dependênciaSearches 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 dependênciaCalls a totem platform method through the evaluation cache, passing the platform as its self argument.
Conditions.totem.remaining dependênciaSeconds left on a totem slot record at time start (or now): zero when the totem is inactive, and never negative.
Conditions.totem.specific dependênciaTrue when a totem spell condition names a valid spell ID and value.ranked is nil or a boolean.
Conditions.weapon.enchantObservation dependênciaReads 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 dependênciaAccepts a readable, nonnegative, finite number from a weapon observation and returns it unchanged; anything else becomes nil with a reason.
Conditions.weapon.swingSpeed dependênciaReads 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 públicaConta os tokens de classe correspondentes na lista fixa atual.
Core.creature_conditions.configuredID dependênciaMaps a stored CREATURE condition key to its numeric creature type, from BEAST (1) to GAS_CLUUD (13).
Core.creature_conditions.GetConditionCreatureTypeMatch públicaCompara o ID de criatura da unidade selecionada com uma chave de tipo de criatura salva existente.
Core.health_forecast_conditions.finite dependênciaChecks that a health-forecast number is readable and finite.
Core.health_forecast_conditions.GetConditionHealthForecast públicaEstima o tempo até a vida selecionada.
Core.health_forecast_conditions.nativeValue dependênciaReads 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 dependênciaReads 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 públicaResolve um nível de unidade bruto legível para avaliar condições.
Core.point_conditions.editionPointResource dependênciaSelects 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 públicaResolve o seletor de recurso de pontos da unidade selecionada usando o mapa de classe para recurso ao vivo e a alternativa ComboPoints.
Core.point_conditions.GetConditionPointResourceV2 públicaResolve recursos de pontos usando o mapeamento de classe ao vivo original e o cache de identidade, com uma política explícita de transporte alternativo de ComboPoints para o jogador do TBC.
Core.point_conditions.pointIdentity dependênciaObserves whether unit exists and, if so, its class, for the point-resource selectors.
Core.threat_count_conditions.finite dependênciaChecks that a threat-count number is readable and finite.
Core.threat_count_conditions.GetConditionThreatCount públicaConta apenas as unidades indexadas por GUID que já estão no instantâneo de participação observado.
Core.threat_count_conditions.readField dependênciaReads object[key] for the threat-count conditions without letting a restricted value, a non-table object or an index error escape.
Functions.cache.getCached públicaChama uma observação uma vez por cache e tupla exata de argumentos, incluindo resultados nil.
Functions.cache.getRetryCached públicaGuarda uma observação em cache depois que ela retorna um valor não nil; tenta de novo as observações cuja tupla de retorno inteira é nil.
Functions.collections.cleanArray públicaRemove entradas no próprio lugar, preservando por padrão apenas as chaves listadas entre os valores de except.
Functions.collections.compareArray públicaPercorre as entradas das duas tabelas e compara cada valor com o valor indexado na outra tabela usando a igualdade do Lua.
Functions.collections.deepcopy públicaCria uma cópia filtrada rasa, apesar do nome histórico deepcopy.
Functions.collections.index públicaRetorna a primeira chave cujo valor é igual ao valor fornecido durante o percurso de pairs.
Functions.collections.keys públicaColeta as chaves de uma tabela e as ordena pelos valores associados usando a comparação menor que do Lua.
Functions.collections.multiinsert públicaInsere cada valor percorrido por ipairs no índice inicial correspondente do array de destino.
Functions.collections.spairs públicaCria um iterador sobre um instantâneo ordenado das chaves de uma tabela.
Functions.collections.tablelength públicaConta todas as entradas percorridas por pairs, incluindo valores false e chaves numéricas esparsas ou não numéricas.
Functions.collections.tomap públicaCopia uma tabela usando tostring de cada chave original como chave de destino.
Functions.forecast.calculate públicaCalcula uma taxa verificada do histórico de vida usando uma janela e um relógio finitos explícitos.
Functions.forecast.finite dependênciaChecks that a number used by Functions.forecast.calculate is readable and finite.
Functions.forecast.readField dependênciaReads object[key] for Functions.forecast.calculate without letting a restricted value, a non-table object or an index error escape.
Functions.presentation.compareString públicaFormata a redação da comparação com alternativas booleanas nomeadas quando o operador tem forma negativa.
Functions.presentation.nullable públicaRetorna um valor presente sem alteração, ou um marcador vermelho para nil.
Functions.presentation.nullable_value públicaConsulta uma chave de tabela para exibição, preservando resultados não nil; tabelas inválidas, chaves ausentes e chaves nil usam um texto de marcador nullable.
Functions.presentation.phrase públicaCria um resumo de condição nomeado transitório.
Functions.presentation.playerize públicaEscolhe o valor de jogador fornecido apenas para o token de unidade literal player; qualquer outra unidade seleciona o valor de não jogador.
Functions.presentation.predicate públicaCria um predicado de comparação tipado para uma frase de condição nomeada.
Functions.text.ends_with públicaTesta um sufixo literal de bytes usando um recorte de texto do Lua.
Functions.text.split públicaDivide um texto em trechos não vazios entre caracteres separadores.
Functions.text.starts_with públicaTesta um prefixo literal de bytes usando um recorte de texto do Lua.
Functions.text.trim públicaRemove os espaços em branco iniciais e finais de um texto conforme os padrões do Lua.
Functions.text.wrap públicaQuebra o texto nos limites de espaços perto de uma quantidade de colunas desejada.
Functions.trends.calculate públicaEstima a variação de vida com sinal a partir do histórico ponderado de dano e cura.
Functions.trends.calculateOld públicaExecuta a fórmula histórica de tendência de instantâneos de vida usando a janela de histórico do perfil ao vivo, o relógio e o serviço de arredondamento antigo.
Functions.values.compare públicaCompara dois valores usando um identificador de operador do RM: LESSTHAN, LESSTHANOREQUALS, GREATERTHAN, GREATERTHANOREQUALS, EQUALS, NOTEQUALS ou DIVISIBLE.
Functions.values.isin públicaVerifica se uma tabela tem um valor não nil em uma chave.
Functions.values.isint públicaAplica o teste antigo de inteiro ou de grafia canônica de texto numérico.
Functions.values.round públicaArredonda com a fórmula existente floor(num * 10^places + 0.5) / 10^places.
Platform.actions.call dependênciaCalls a native API function in protected mode and returns its first result only when Rotation Master can read it.
Platform.actions.findSlot dependênciaFinds the spell-book slot of a spell with FindSpellBookSlotBySpellID.
Platform.actions.GetSpellRangeState públicaLê o alcance específico de um feitiço para uma unidade usando a API do cliente apropriada ou o espaço do grimório.
Platform.actions.spellID dependênciaValidates a spell ID argument.
Platform.announcement_recipient.GetAnnouncementRecipientGroupMembership públicaResolve o nome exato do destinatário de um lançamento na lista limitada atual do grupo ou da raide e depois observa a participação por meio de um token de unidade.
Platform.casting.durationSeconds dependênciaComputes 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 dependênciaReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.casting.GetUnitCastObservation públicaObserva uma unidade lançando ou canalizando em clientes com política de sondagem ou restrita.
Platform.casting.interruptibility dependênciaConverts the native notInterruptible flag of a cast or channel into an interruptible Boolean (its inverse).
Platform.casting.remainingSeconds dependênciaConverts 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 dependênciaValidates the spell ID field of a cast or channel result.
Platform.creature_type.GetUnitCreatureTypeID públicaObserva a identidade da criatura a partir do segundo retorno nativo de UnitCreatureType em clientes com política de sondagem ou restrita.
Platform.form.GetPlayerFormObservation públicaObserva a forma atual do jogador com uma única chamada protegida a GetShapeshiftForm sem argumentos.
Platform.glyphs.GetGlyphItemInfo públicaClassifica um item numérico como glifo da classe solicitada, usando metadados de item nativos protegidos.
Platform.glyphs.GetGlyphSocketSnapshot públicaObserva os encaixes de glifos nos layouts de cliente verificados do Wrath, Cata e Mists.
Platform.glyphs.integer dependênciaReturns true when value is a finite whole number no smaller than minimum, and false for anything else (including NaN and infinity).
Platform.glyphs.layout dependênciaMaps client information to the position in the GetGlyphSocketInfo result that holds the glyph spell ID.
Platform.glyphs.socket dependênciaReads one glyph socket by calling fn(index) in protected mode and always returns a slot record with slot=index.
Platform.groups.GetGroupMembership públicaLê a participação pública em grupo em famílias de cliente identificadas.
Platform.groups.GetUnitGroupMembership públicaLê a participação de uma unidade especificada no grupo ou na raide do jogador.
Platform.health_forecast.finite dependênciaReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.health_forecast.GetHealthForecastIdentityObservation públicaEm clientes com política de sondagem ou restrita, observa exatamente UnitExists(unit) e depois UnitGUID(unit) apenas para uma unidade presente.
Platform.health_forecast.GetHealthForecastProviderObservation públicaLê o RealMobHealth opcional usando a chamada com ponto exata de um argumento.
Platform.health_forecast.GetHealthForecastTimeObservation públicaObserva um GetTime novo, protegido e sem argumentos para uma previsão de vida necessária.
Platform.health_forecast.GetHealthForecastValueObservation públicaLê um valor escalar de vida preguiçoso após uma verificação de identidade separada.
Platform.health_forecast.providerValue dependênciaNormalizes one health figure returned by the RealMobHealth provider.
Platform.health_forecast.readField dependênciaReads object[key] in protected mode.
Platform.instance.GetInstanceObservation públicaObserva uma única tupla protegida de IsInInstance sem argumentos.
Platform.items.finite dependênciaReturns true when value is a finite, nonnegative number (not NaN or infinity), and false for anything else.
Platform.items.GetItemInfoInstant públicaLê os metadados nativos normalizados de classificação de item.
Platform.items.identifier dependênciaValidates an item argument.
Platform.loss_of_control.GetLossOfControlCount públicaLê a contagem documentada de perdas de controle ativas com uma chamada com ponto protegida e sem argumentos.
Platform.loss_of_control.GetLossOfControlEvent públicaLê uma linha documentada de perda de controle ativa pelo índice nativo e pelo tipo de assunto solicitado.
Platform.mobinfo2.finite dependênciaChecks that a value is a readable finite number.
Platform.mobinfo2.GetMobInfo2Observation públicaLê as observações históricas opcionais do MobInfo2 em clientes com política de sondagem ou restrita.
Platform.mobinfo2.hitCount dependênciaReads the hit count for a spell school from a MobInfo2 resists table (the field named school.."Hits").
Platform.mobinfo2.presence dependênciaChecks whether a unit exists with one protected UnitExists call.
Platform.mobinfo2.readField dependênciaReads object[key] in protected mode for MobInfo2 data.
Platform.pet.GetPetObservation públicaObserva a existência exata do ajudante e, opcionalmente, o nome de exibição formatado de GetUnitName.
Platform.player_flags.GetPlayerFlagObservation públicaObserva um único indicador independente do jogador sem argumentos: stealthed usa IsStealthed, control usa HasFullControl e outdoors usa IsOutdoors.
Platform.player_movement.GetPlayerMovementObservation públicaObserva a velocidade de movimento atual do jogador em clientes legíveis suportados.
Platform.points.GetPlayerComboPointObservation públicaObserva o transporte de combo do jogador do TBC selecionado explicitamente.
Platform.points.GetUnitPointFragmentObservation públicaObserva um recurso de pontos que o cliente informa em fragmentos (Brasas Ardentes do Mists of Pandaria).
Platform.points.GetUnitPointIdentityObservation públicaObserva a existência exata da unidade selecionada e, opcionalmente, o nome de arquivo da classe dela para condições de recursos de pontos.
Platform.points.GetUnitPointPowerObservation públicaLê uma quantidade de um recurso de pontos selecionado explicitamente com uma consulta exata de dois argumentos a UnitPower ou UnitPowerMax.
Platform.range.GetNameplateMaxDistance públicaLê a distância de visibilidade positiva atual das placas de identificação usando a API de CVar suportada.
Platform.range.GetRangeCheckBounds públicaLê o intervalo público da LibRangeCheck para uma unidade.
Platform.role.GetInspectRoleObservation públicaObserva a função de uma unidade selecionada em clientes com política de sondagem ou restrita sem emitir solicitações de inspeção.
Platform.role.GetTalentGroupRoleObservation públicaObserva o primeiro resultado de função da chamada com ponto exata e antiga GetTalentGroupRole(group) em clientes com política de sondagem ou restrita.
Platform.role.readField dependênciaReads object[key] in protected mode, used to look up optional APIs.
Platform.role.roleValue dependênciaValidates a role returned by a native API.
Platform.roster_class.GetRosterClassObservation públicaLê a identidade pública da lista do grupo em famílias de cliente identificadas.
Platform.roster_class.rosterUnit dependênciaReturns 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 públicaLê uma observação nova e protegida de UnitClass do jogador para a propriedade de rotações.
Platform.runes.finite dependênciaReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.runes.GetRuneCooldownObservation públicaLê uma tupla protegida de GetRuneCooldown para um espaço nativo exato.
Platform.runes.GetRuneEvaluationTime públicaLê um GetTime novo, protegido e sem argumentos para a aritmética do tempo de recarga das runas.
Platform.runes.GetRuneTypeObservation públicaObserva um único espaço de runa nativo exato usando GetRuneType com o único argumento de índice.
Platform.runes.numberField dependênciaNormalizes one numeric field of a native result.
Platform.runes.validIndex dependênciaValidates a rune slot index.
Platform.spells.cooldownFlags dependênciaExtracts the never-secret isEnabled, isActive and isOnGCD flags from a C_Spell.GetSpellCooldown record whose times are secret.
Platform.spells.cooldownValues dependênciaReads a spell cooldown as separate values for the readiness checks.
Platform.spells.copy dependênciaCopies the expected fields of a native result table into a new table, checking each type.
Platform.spells.finiteNonNegative dependênciaReturns true when value is a nonnegative number that is not NaN or infinity, and false for anything else.
Platform.spells.flagReadiness dependênciaDecides cooldown readiness from the never-secret flags when the cooldown times are hidden.
Platform.spells.gcdRunning dependênciaReports whether the global cooldown is running at time now.
Platform.spells.GetSpellCharges públicaLê um registro de cargas normalizado: currentCharges, maxCharges, cooldownStartTime, cooldownDuration, chargeModRate e isActive.
Platform.spells.GetSpellCooldown públicaLê e normaliza o tempo de recarga de um feitiço nos clientes compatíveis.
Platform.spells.identifier dependênciaValidates a spell argument.
Platform.spells.IsAutoRepeatActive públicaLê o estado de repetição automática do jogador para um feitiço como Atirar ou Disparo Automático.
Platform.spells.IsSpellReady públicaVerifica se um feitiço pode ser recomendado agora, permitindo um feitiço cujo tempo de recarga restante termina junto com o tempo de recarga global atual.
Platform.spells.own dependênciaReturns a record holding only the expected fields, each checked by type.
Platform.threat.GetUnitThreatObservation públicaObserva em ordem a existência da unidade selecionada, a hostilidade a partir do jogador e depois o estado de ameaça do jogador sobre essa unidade.
Platform.unit_attackability.GetUnitAttackabilityObservation públicaObserva se o jogador pode atacar uma unidade selecionada que não esteja morta, usando exatamente os predicados UnitExists, UnitCanAttack e UnitIsDead.
Platform.unit_flags.GetUnitFlagObservation públicaObserva um único indicador atual da unidade: combat usa UnitAffectingCombat, enemy usa UnitIsEnemy com player como primeira unidade e pvp usa UnitIsPVP.
Platform.unit_health.finite dependênciaReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_health.GetUnitHealthObservation públicaObserva a vida atual legível e, opcionalmente, a vida máxima em clientes suportados.
Platform.unit_identity.GetUnitIdentityObservation públicaCompara dois tokens de unidade exatos usando UnitIsUnit após verificar apenas o primeiro token com UnitExists.
Platform.unit_level.finite dependênciaReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_level.GetUnitLevelObservation públicaObserva um nível bruto e legível da unidade em clientes conhecidos.
Platform.unit_metadata.GetUnitMetadataObservation públicaObserva um único campo de metadados nativos da unidade após verificar UnitExists: class usa o segundo retorno de UnitClass, creature usa o nome localizado de UnitCreatureType e classification usa UnitClassification.
Platform.unit_power.finite dependênciaReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_power.GetUnitPowerObservation públicaObserva a mana explícita ou o recurso de poder bruto atual em clientes legíveis suportados.
Platform.unit_presence.GetUnitPresenceObservation públicaObserva a presença da unidade em famílias de cliente identificadas.
Platform.unit_stat.finite dependênciaReturns true when value is a number that is neither NaN nor infinite, and false for anything else.
Platform.unit_stat.GetUnitStatObservation públicaObserva o atributo efetivo apenas a partir do segundo retorno nativo.
Platform.unit_states.GetUnitStateObservation públicaObserva o estado de morte ou fantasma, ou a amizade com o jogador, da unidade selecionada exata em clientes com política de sondagem ou restrita.
Platform.zone_pvp.GetZonePVPObservation públicaObserva o primeiro resultado de classificação JxJ da zona com uma única chamada com ponto protegida e sem argumentos.
UI.checkbox.constructor dependênciaConstructs 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 públicaCria um controle booleano de condição nativo.
UI.condition_display.buttonConstructor dependênciaConstructs 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 públicaCria um botão nativo usando o ciclo de vida compartilhado dos widgets de condição e o tema da bancada.
UI.condition_display.CreateConditionLabel públicaCria texto nativo com quebra de linha que mede a própria altura a partir da largura e da fonte.
UI.condition_display.CreateConditionLink públicaCria texto nativo com quebra de linha, com imagem inicial opcional e callbacks do ponteiro.
UI.condition_display.defaultFont dependênciaReturns 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 dependênciaConstructs 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 dependênciaConstructs 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 públicaCria um controle de imagem nativo usando o ciclo de vida dos widgets de condição.
UI.condition_inputs.constructor dependênciaConstructs 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 públicaCria uma entrada de texto nativa usando o contrato dos widgets de condição.
UI.condition_inputs.CreateConditionSlider públicaCria uma entrada numérica de condição nativa com um controle deslizante e um campo numérico tipado.
UI.condition_inputs.finite dependênciaTrue 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 dependênciaConstructs 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 públicaCria um contêiner de campos de condição com layouts de Lista, Tabela e campo de feitiço responsivo próprios do RM.
UI.condition_layout.layoutIconRows dependênciaLays 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 dependênciaConverts 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 dependênciaConstructs 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 públicaCria um painel de posição nativo usando os controles direcionais compartilhados.
UI.selector.CreateConditionDropdown públicaCria um seletor de condição nativo.
UI.selector.selectorWidget dependênciaConstructs a new RM-Selector dropdown widget: an optional caption over a button that opens the workbench selector popup.
utils.getCachedInternal dependênciaFunção auxiliar incluída de utils.lua.
utils.packResults dependênciaFunção auxiliar incluída de utils.lua.