| 35 | public: |
| 36 | void AddCallback(std::string type, EventCallbackType callback) { listeners_[type].push_back(callback); } |
| 37 | void AddRetCallback(std::string type, EventRetCallbackType callback) { retListeners_[type].push_back(callback); } |
| 38 | |
| 39 | void RemoveCallback(std::string type) { listeners_.erase(type); } |
| 40 | void RemoveRetCallback(std::string type) { retListeners_.erase(type); } |