bool CEventHandler::MapDrawCmd(int playerID, int type, const float3* pos0, const float3* pos1, const string* label) { // reverse order, user has the override const int count = listMapDrawCmd.size(); for (int i = (count - 1); i >= 0; i--) { CEventClient* ec = listMapDrawCmd[i]; if (ec->MapDrawCmd(playerID, type, pos0, pos1, label)) { return true; } } return false; }
bool CEventHandler::MapDrawCmd(int playerID, int type, const float3* pos0, const float3* pos1, const string* label) { EVENTHANDLER_CHECK(MapDrawCmd, false); // reverse order, user has the override for (int i = (count - 1); i >= 0; i--) { CEventClient* ec = listMapDrawCmd[i]; if (ec->MapDrawCmd(playerID, type, pos0, pos1, label)) { return true; } } return false; }