[saco] Add few class stub

+ CChatWindow
+ CCmdWindow
+ CNetGame
+ CFontRender
This commit is contained in:
RD42 2023-11-14 22:58:51 +08:00
parent 1ee87f332b
commit 0fa1ef624a
11 changed files with 156 additions and 1 deletions

7
saco/chatwindow.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "chatwindow.h"
CChatWindow::CChatWindow()
{
// TODO: CChatWindow::CChatWindow() .text:100680F0
}

11
saco/chatwindow.h Normal file
View File

@ -0,0 +1,11 @@
#pragma once
class CChatWindow // size: 25578
{
private:
char _gap0[25578];
public:
CChatWindow();
};

7
saco/cmdwindow.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "cmdwindow.h"
CCmdWindow::CCmdWindow()
{
// TODO: CCmdWindow::CCmdWindow() .text:100693D0
}

11
saco/cmdwindow.h Normal file
View File

@ -0,0 +1,11 @@
#pragma once
class CCmdWindow // size: 6908
{
private:
char _gap0[6908];
public:
CCmdWindow();
};

7
saco/fontrender.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "fontrender.h"
CFontRender::CFontRender()
{
// TODO: CFontRender::CFontRender() .text:1006BAF0
}

11
saco/fontrender.h Normal file
View File

@ -0,0 +1,11 @@
#pragma once
class CFontRender // size: 40
{
private:
char _gap0[40];
public:
CFontRender();
};

View File

@ -1,7 +1,20 @@
#include "main.h"
GAME_SETTINGS tSettings;
GAME_SETTINGS tSettings;
CConfig *pConfig=0;
CChatWindow *pChatWindow=0;
CCmdWindow *pCmdWindow=0;
//DWORD dword_1026EB88=0;
CAudioStream *pAudioStream=0;
//DWORD dword_1026EB90=0;
CNetGame *pNetGame=0;
//DWORD dword_1026EB98=0;
CFontRender *pDefaultFont=0;
//DWORD dword_1026EBA0=0;
//DWORD dword_1026EBA4=0;
//DWORD dword_1026EBA8=0;
HANDLE hInstance=0;
CGame *pGame=0;

View File

@ -20,6 +20,13 @@ typedef struct _GAME_SETTINGS {
#include "game/game.h"
#include "net/netgame.h"
#include "config.h"
#include "fontrender.h"
#include "chatwindow.h"
#include "cmdwindow.h"
#include "audiostream.h"
#include "archive/ArchiveFS.h"
void SetStringFromCommandLine(char *szCmdLine, char *szString);

7
saco/net/netgame.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "netgame.h"
CNetGame::CNetGame(char *a2, int a3, char *a4, char *a5)
{
// TODO: CNetGame::CNetGame(...) .text:1000B930
}

46
saco/net/netgame.h Normal file
View File

@ -0,0 +1,46 @@
struct struc_41
{
char field_0;
int field_1;
char _gap5[17];
float field_16;
char field_1A;
char _gap1B[4];
char field_1F;
char field_20;
char field_21;
char field_22;
int field_23;
float field_27;
char _gap2B;
char field_2C;
char field_2D;
char field_2E;
char field_2F;
char _gap30[10];
};
class CNetGame // size: 994
{
private:
int field_0;
char _gap4[44];
char field_30[257];
char field_131[257];
char field_232;
char field_233;
char field_234;
int field_235;
int field_239;
char field_23D[400];
int field_3CD;
int field_3D1;
struc_41 *field_3D5;
char field_3D9;
char _gap3DA[8];
public:
CNetGame(char *a2, int a3, char *a4, char *a5);
};

View File

@ -233,6 +233,16 @@
RelativePath=".\archive\TinyEncrypt.h">
</File>
</Filter>
<Filter
Name="net"
Filter="">
<File
RelativePath=".\net\netgame.cpp">
</File>
<File
RelativePath=".\net\netgame.h">
</File>
</Filter>
<Filter
Name="ttmath"
Filter="">
@ -252,6 +262,18 @@
<File
RelativePath=".\buildinfo.h">
</File>
<File
RelativePath=".\chatwindow.cpp">
</File>
<File
RelativePath=".\chatwindow.h">
</File>
<File
RelativePath=".\cmdwindow.cpp">
</File>
<File
RelativePath=".\cmdwindow.h">
</File>
<File
RelativePath=".\config.cpp">
</File>
@ -270,6 +292,12 @@
<File
RelativePath=".\filesystem.h">
</File>
<File
RelativePath=".\fontrender.cpp">
</File>
<File
RelativePath=".\fontrender.h">
</File>
<File
RelativePath=".\httpclient.cpp">
</File>