API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ITRIGPLAYEREX_GETATTRIBUTEMETADATABYNAME()

Brew Release
Brew MP 1.0.2
Description
Returns the attribute metadata for the given attribute.
Params
po
[]:
A pointer to an ITrigplayerEx object.
name
[]:
The name of the attribute to look up.

Interface
  • ITRIGPLAYEREX
Prototype
  •    const TrigmlAttributeMetadata* ITRIGPLAYEREX_GetAttributeMetadataByName(ITrigplayerEx* po, const char* name);
    
Return
  •    A pointer to the attribute identified by the classId and id parameters.
       NULL if no such attribute exists.
    
Side Effect
  • None
Comments
Search by name is not a free operation and should be avoided if possible. It is usually necessary only when the class ID and ID of an attribute are unknown until runtime, because it is referenced by name (e.g. the element).