[saco] Implement CUnkClass10 constructor

This commit is contained in:
RD42 2024-03-28 23:32:21 +08:00
parent efb3a5a812
commit 04a2af446a
5 changed files with 65 additions and 0 deletions

View File

@ -38,6 +38,7 @@ CUnkClass3 *pUnkClass3=NULL;
CUnkClass4 *pUnkClass4=NULL; CUnkClass4 *pUnkClass4=NULL;
CUnkClass5 *pUnkClass5=NULL; CUnkClass5 *pUnkClass5=NULL;
CUnkClass9 *pUnkClass9=NULL; CUnkClass9 *pUnkClass9=NULL;
CUnkClass10 *pUnkClass10=NULL;
CUnkClass6 *pUnkClass6=NULL; CUnkClass6 *pUnkClass6=NULL;
CSvrNetStats *pSvrNetStats=NULL; CSvrNetStats *pSvrNetStats=NULL;
CUnkClass7 *pUnkClass7=NULL; CUnkClass7 *pUnkClass7=NULL;
@ -358,6 +359,7 @@ void DoInitStuff()
} }
pUnkClass9 = new CUnkClass9(pD3DDevice); pUnkClass9 = new CUnkClass9(pD3DDevice);
pUnkClass10 = new CUnkClass10(pD3DDevice);
// TODO: DoInitStuff // TODO: DoInitStuff

View File

@ -71,6 +71,7 @@ typedef struct _GAME_SETTINGS {
#include "unkclass7.h" #include "unkclass7.h"
#include "unkclass8.h" #include "unkclass8.h"
#include "unkclass9.h" #include "unkclass9.h"
#include "unkclass10.h"
void SetStringFromCommandLine(char *szCmdLine, char *szString); void SetStringFromCommandLine(char *szCmdLine, char *szString);
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString); void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);

View File

@ -555,6 +555,12 @@
<File <File
RelativePath=".\unkclass1.h"> RelativePath=".\unkclass1.h">
</File> </File>
<File
RelativePath=".\unkclass10.cpp">
</File>
<File
RelativePath=".\unkclass10.h">
</File>
<File <File
RelativePath=".\unkclass2.cpp"> RelativePath=".\unkclass2.cpp">
</File> </File>

26
saco/unkclass10.cpp Normal file
View File

@ -0,0 +1,26 @@
#include "main.h"
CUnkClass10::CUnkClass10(IDirect3DDevice9 *pD3DDevice)
{
m_pD3DDevice = pD3DDevice;
field_7C = 0;
field_113 = -1;
field_80 = 0;
field_84 = 0;
field_78 = 0;
field_A3 = 0;
field_A4 = 0;
field_A5 = 0;
field_A6 = 0;
field_A2 = 0;
field_88 = -1;
field_9E = GetTickCount();
D3DXCreateLine(pD3DDevice, &m_pD3DLine);
D3DXCreateFont(m_pD3DDevice, 22, 0, FW_NORMAL, 1, FALSE,
SYMBOL_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, "SAMPAUX3", &m_pD3DFont1);
D3DXCreateFont(m_pD3DDevice, 28, 0, FW_NORMAL, 1, FALSE,
SYMBOL_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, "SAMPAUX3", &m_pD3DFont2);
}

30
saco/unkclass10.h Normal file
View File

@ -0,0 +1,30 @@
#pragma once
class CUnkClass10
{
private:
char _gap0[120];
int field_78;
int field_7C;
int field_80;
int field_84;
WORD field_88;
char _gap8A[20];
DWORD field_9E;
char field_A2;
char field_A3;
char field_A4;
char field_A5;
char field_A6;
char _gapA7[92];
IDirect3DDevice9 *m_pD3DDevice;
ID3DXLine *m_pD3DLine;
ID3DXFont *m_pD3DFont1;
ID3DXFont *m_pD3DFont2;
int field_113;
public:
CUnkClass10(IDirect3DDevice9 *pD3DDevice);
};