Reference › Function reference › Conditions

Conditions.totem.observe

dependency

Call as

Conditions.totem.observe(cache, method, ...)

Record the dependency Conditions.totem.observe, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.

What it does

Calls a totem platform method through the evaluation cache, passing the platform as its self argument.

Arguments

NameTypeWhat it does
cachetable | nilEvaluation-pass cache passed to getCached, or nil to read directly.
methodfunctionPlatform method, such as platform.GetTotemInfo.
...anyArguments forwarded after the platform.

Returns

1anyWhatever the method returns, typically a record or nil and a reason.

Editions

Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.

It reads no game API directly.

How the addon calls it

Dependencies

Source

Conditions/totem.lua, line 54. Read only in game; Duplicate makes an editable copy.

Conditions.totem.observe(cache, method, ...)
    return addon.getCached(cache,method,platform,...)

Back to Function reference