nw::kernel::resolve_modifier

template<typename Callback>
bool nw::kernel::resolve_modifier(const ObjectBase *obj, const Modifier &mod, Callback cb, const ObjectBase *versus = nullptr, int32_t subtype = -1)

Calculates a modifier.

Template Parameters:

CallbackModifier callback function


template<typename Callback>
bool nw::kernel::resolve_modifier(const ObjectBase *obj, const ModifierType type, Callback cb)

Calculates all modifiers of type

Template Parameters:

CallbackModifier callback function


template<typename Callback>
bool nw::kernel::resolve_modifier(const ObjectBase *obj, const ModifierType type, const ObjectBase *versus, Callback cb)

Calculates all modifiers of type versus an object.

Template Parameters:

CallbackModifier callback function


template<typename SubType, typename Callback>
bool nw::kernel::resolve_modifier(const ObjectBase *obj, const ModifierType type, SubType subtype, Callback cb)

Calculates all modifiers of a type and subtype

Template Parameters:
  • U – is some rule subtype

  • CallbackModifier callback function


template<typename SubType, typename Callback>
bool nw::kernel::resolve_modifier(const ObjectBase *obj, const ModifierType type, SubType subtype, const ObjectBase *versus, Callback cb)

Calculates all modifiers of a type and subtype versus another object.

Template Parameters:
  • U – is some rule subtype

  • CallbackModifier callback function