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

Developer

API Reference

ITRIGPLAYEREX_GETELEMENTMETADATABYNAME()

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

Interface
  • ITRIGPLAYEREX
Prototype
  •    const TrigmlElementMetadata* ITRIGPLAYEREX_GetElementMetadataByName(ITrigplayerEx* po, const char* name);
    
Return
  •    A pointer to the element identified by the classId and id parameters.
       NULL if no such element 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 the element are unknown until runtime (e.g. when creating an element from LUA script).