server/game/src/horsename_manager.h
2022-03-05 12:44:06 +02:00

19 lines
407 B
C++

class CHorseNameManager : public singleton<CHorseNameManager>
{
private :
std::map<DWORD, std::string> m_mapHorseNames;
void BroadcastHorseName(DWORD dwPlayerID, const char* szHorseName);
public :
CHorseNameManager();
const char* GetHorseName(DWORD dwPlayerID);
void UpdateHorseName(DWORD dwPlayerID, const char* szHorseName, bool broadcast=false);
void Validate(LPCHARACTER pChar);
};