bool CEventHandler::AddConsoleLine(const string& msg, CLogSubsystem& subsystem) { const int count = listAddConsoleLine.size(); for (int i = 0; i < count; i++) { CEventClient* ec = listAddConsoleLine[i]; ec->AddConsoleLine(msg, subsystem); } return true; }
bool CEventHandler::AddConsoleLine(const std::string& msg, const std::string& section, int level) { EVENTHANDLER_CHECK(AddConsoleLine, false); for (int i = 0; i < count; i++) { CEventClient* ec = listAddConsoleLine[i]; ec->AddConsoleLine(msg, section, level); } return true; }