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

Method BroadcastEvent

Code/CryEngine/CryAction/GameObjects/GameObjectSystem.cpp:266–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266void CGameObjectSystem::BroadcastEvent(const SGameObjectEvent& evt)
267{
268 FUNCTION_PROFILER(GetISystem(), PROFILE_ACTION);
269
270 //CryLog("BroadcastEvent called");
271
272 IEntityItPtr pEntIt = gEnv->pEntitySystem->GetEntityIterator();
273 while (IEntity* pEntity = pEntIt->Next())
274 {
275 if (CGameObject* pGameObject = (CGameObject*)pEntity->GetProxy(ENTITY_PROXY_USER))
276 {
277 pGameObject->SendEvent(evt);
278 }
279 }
280}
281
282void CGameObjectSystem::RegisterEvent(uint32 id, const char* name)
283{

Callers 2

PauseGameMethod · 0.80
ProcessEventMethod · 0.80

Calls 5

GetISystemFunction · 0.85
GetEntityIteratorMethod · 0.80
NextMethod · 0.45
GetProxyMethod · 0.45
SendEventMethod · 0.45

Tested by

no test coverage detected