exposed the message interface

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40571
This commit is contained in:
Borja Ferrer 2007-03-03 00:56:01 +00:00
parent 52e8a1fa76
commit 4499f4df75
2 changed files with 7 additions and 2 deletions

View File

@ -36,6 +36,11 @@ CUserMessages::~CUserMessages()
sm_trie_destroy(m_Names);
}
void CUserMessages::OnSourceModAllInitialized()
{
g_ShareSys.AddInterface(NULL, this);
}
void CUserMessages::OnSourceModAllShutdown()
{
if (m_HookCount)

View File

@ -15,9 +15,8 @@
#ifndef _INCLUDE_SOURCEMOD_CUSERMESSAGES_H_
#define _INCLUDE_SOURCEMOD_CUSERMESSAGES_H_
#include "sm_globals.h"
#include "ShareSys.h"
#include <IUserMessages.h>
#include <sh_list.h>
#include "sourcemm_api.h"
#include "sm_trie.h"
#include "CellRecipientFilter.h"
@ -37,6 +36,7 @@ public:
CUserMessages();
~CUserMessages();
public: //SMGlobalClass
void OnSourceModAllInitialized();
void OnSourceModAllShutdown();
public: //IUserMessages
int GetMessageIndex(const char *msg);