[saco] Implement cmdDefaultCmdProc(...)

* Adds ` CLocalPlayer::Say(...)` stub
This commit is contained in:
RD42 2024-02-16 22:15:16 +08:00
parent 3b45f9932c
commit 0bd8c87f21
5 changed files with 20 additions and 1 deletions

View File

@ -4,12 +4,17 @@
extern CChatWindow *pChatWindow;
extern CCmdWindow *pCmdWindow;
extern CDeathWindow *pDeathWindow;
extern CNetGame *pNetGame;
extern GAME_SETTINGS tSettings;
void cmdDefaultCmdProc(PCHAR szCmd)
{
// TODO: cmdDefaultCmdProc
if(pNetGame) {
CLocalPlayer *pLocalPlayer;
pLocalPlayer = pNetGame->GetPlayerPool()->GetLocalPlayer();
pLocalPlayer->Say(szCmd);
}
}
void cmdTestDeathWindow(PCHAR szCmd)

View File

@ -77,3 +77,10 @@ void CLocalPlayer::ResetAllSyncAttributes()
//----------------------------------------------------------
void CLocalPlayer::Say(PCHAR szText)
{
// TODO: CLocalPlayer::Say .text:10005A10
}
//----------------------------------------------------------

View File

@ -92,6 +92,8 @@ public:
void ResetAllSyncAttributes();
void Say(PCHAR szText);
};
//----------------------------------------------------------

View File

@ -67,4 +67,6 @@ public:
DWORD GetTime();
CPlayerPool * GetPlayerPool() { return m_pPools->pPlayerPool; };
};

View File

@ -21,6 +21,9 @@ private:
int field_2F3A;
public:
CLocalPlayer * GetLocalPlayer() { return m_pLocalPlayer; };
CPlayerPool();
};