| 264 | } |
| 265 | |
| 266 | void 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 | |
| 282 | void CGameObjectSystem::RegisterEvent(uint32 id, const char* name) |
| 283 | { |
no test coverage detected