| 3723 | } |
| 3724 | |
| 3725 | BZF_API bool bz_callbackExists(const char* name) { |
| 3726 | if (!name) { |
| 3727 | return false; |
| 3728 | } |
| 3729 | |
| 3730 | std::string callbackName = name; |
| 3731 | |
| 3732 | std::map<std::string, bz_GenericCallback*>::iterator classItr = callbackClasses.find(callbackName); |
| 3733 | if (classItr != callbackClasses.end()) { |
| 3734 | return true; |
| 3735 | } |
| 3736 | |
| 3737 | std::map<std::string, bz_GenericCallbackFunc>::iterator funcItr = callbackFunctions.find(callbackName); |
| 3738 | if (funcItr != callbackFunctions.end()) { |
| 3739 | return true; |
| 3740 | } |
| 3741 | return false; |
| 3742 | } |
| 3743 | |
| 3744 | // team info |
| 3745 | BZF_API int bz_getTeamCount(bz_eTeamType _team) { |