MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / GetEventId

Method GetEventId

Code/CryEngine/CryAction/FlashUI/FlashUIEventSystem.cpp:78–88  ·  view source on GitHub ↗

------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

76
77//------------------------------------------------------------------------------------
78uint CFlashUIEventSystem::GetEventId(const char* sEventName)
79{
80 uint res = 0;
81 for (TUIEventsLookup::const_iterator iter = m_eventDescriptions.begin(); iter != m_eventDescriptions.end(); ++iter)
82 {
83 if (strcmp((*iter)->sName, sEventName) == 0)
84 return res;
85 ++res;
86 }
87 return ~0;
88}
89
90//-------------------------------------------------------------------
91void CFlashUIEventSystem::GetMemoryUsage(ICrySizer* s) const

Callers 3

CallFunctionMethod · 0.45

Calls 3

strcmpFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected