mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
29 lines
602 B
C++
29 lines
602 B
C++
|
|
#include "main.h"
|
|
|
|
CCmdWindow::CCmdWindow()
|
|
{
|
|
// TODO: CCmdWindow::CCmdWindow() .text:100693D0
|
|
}
|
|
|
|
//----------------------------------------------------
|
|
|
|
void CCmdWindow::AddDefaultCmdProc(CMDPROC cmdDefault)
|
|
{
|
|
m_pDefaultCmd = cmdDefault;
|
|
}
|
|
|
|
//----------------------------------------------------
|
|
|
|
void CCmdWindow::AddCmdProc(PCHAR szCmdName, CMDPROC cmdHandler)
|
|
{
|
|
if(m_iCmdCount < MAX_CMDS && (strlen(szCmdName) < MAX_CMD_STRLEN)) {
|
|
m_pCmds[m_iCmdCount] = cmdHandler;
|
|
strcpy(m_szCmdNames[m_iCmdCount],szCmdName);
|
|
m_iCmdCount++;
|
|
}
|
|
}
|
|
|
|
//----------------------------------------------------
|
|
|