[saco] Implement cmdDefaultCmdProc(...)

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

No files matched your search

+6 -1
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)
+7
View File
@@ -77,3 +77,10 @@ void CLocalPlayer::ResetAllSyncAttributes()
//----------------------------------------------------------
void CLocalPlayer::Say(PCHAR szText)
{
// TODO: CLocalPlayer::Say .text:10005A10
}
//----------------------------------------------------------
+2
View File
@@ -92,6 +92,8 @@ public:
void ResetAllSyncAttributes();
void Say(PCHAR szText);
};
//----------------------------------------------------------
+2
View File
@@ -67,4 +67,6 @@ public:
DWORD GetTime();
CPlayerPool * GetPlayerPool() { return m_pPools->pPlayerPool; };
};
+3
View File
@@ -21,6 +21,9 @@ private:
int field_2F3A;
public:
CLocalPlayer * GetLocalPlayer() { return m_pLocalPlayer; };
CPlayerPool();
};