mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
7a5465b4cf
* Adds `CGame::RestartEverything()` * Adds `CGame::GetWeaponInfo()` * Adds `CGame::SetGravity()` * Adds `CGame::SetWantedLevel()` * Adds `CGame::SetGameTextCount()` * Adds `CGame::DrawGangZone()`
77 lines
1.3 KiB
C++
77 lines
1.3 KiB
C++
|
|
#pragma once
|
|
|
|
#include "address.h"
|
|
#include "common.h"
|
|
#include "audio.h"
|
|
#include "camera.h"
|
|
#include "scripting.h"
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
class CGame // size: 322
|
|
{
|
|
private:
|
|
CAudio *m_pGameAudio;
|
|
CCamera *m_pGameCamera;
|
|
int field_8;
|
|
char gapC[29];
|
|
int field_29;
|
|
char gap2D[4];
|
|
int field_31;
|
|
char gap35[24];
|
|
int field_4D;
|
|
char gap51[4];
|
|
int field_55;
|
|
int field_59;
|
|
int field_5D;
|
|
int field_61;
|
|
int field_65;
|
|
int field_69;
|
|
char field_6D;
|
|
char field_6E[212];
|
|
|
|
public:
|
|
|
|
|
|
void SetGravity(float fGravity);
|
|
|
|
void SetWantedLevel(BYTE byteLevel);
|
|
void SetGameTextCount(WORD wCount);
|
|
void DrawGangZone(float* fPos, DWORD dwColor);
|
|
DWORD GetD3DDevice();
|
|
|
|
HWND GetMainWindowHwnd() { return *(HWND *)ADDR_HWND; };
|
|
|
|
void StartGame();
|
|
void InitGame();
|
|
|
|
DWORD GetWeaponInfo(int iWeapon, int iUnk);
|
|
|
|
|
|
CGame();
|
|
|
|
void sub_100A0010();
|
|
void sub_100A0090(int a1, int a2);
|
|
BYTE sub_100A00C0();
|
|
BYTE sub_100A00F0();
|
|
void sub_100A0110();
|
|
void sub_100A0210();
|
|
void sub_100A0250();
|
|
void sub_100A02E0();
|
|
void sub_100A0310();
|
|
void sub_100A0330();
|
|
void sub_100A03D0();
|
|
void sub_100A03E0();
|
|
void sub_100A0400();
|
|
|
|
|
|
|
|
void sub_100A05D0();
|
|
void sub_100A06F0();
|
|
|
|
void sub_100A1C10();
|
|
};
|
|
|
|
//-----------------------------------------------------------
|