mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[bot] Rename CNPCMode to CGameMode
This commit is contained in:
@ -227,18 +227,18 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\bot.rc">
|
RelativePath=".\bot.rc">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\gamemodes.cpp">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\gamemodes.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\main.cpp">
|
RelativePath=".\main.cpp">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\main.h">
|
RelativePath=".\main.h">
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\npcmode.cpp">
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\npcmode.h">
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath=".\resource.h">
|
RelativePath=".\resource.h">
|
||||||
</File>
|
</File>
|
||||||
|
8
bot/gamemodes.cpp
Normal file
8
bot/gamemodes.cpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
CGameMode::CGameMode()
|
||||||
|
{
|
||||||
|
field_68 = 0;
|
||||||
|
field_69 = 0;
|
||||||
|
}
|
18
bot/gamemodes.h
Normal file
18
bot/gamemodes.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
#ifndef SAMPNPC_GAMEMODES_H
|
||||||
|
#define SAMPNPC_GAMEMODES_H
|
||||||
|
|
||||||
|
class CGameMode // size: 110
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
char _gap0[104];
|
||||||
|
char field_68;
|
||||||
|
char field_69;
|
||||||
|
float field_6A;
|
||||||
|
|
||||||
|
public:
|
||||||
|
CGameMode();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -37,7 +37,7 @@ typedef unsigned short PLAYERID;
|
|||||||
typedef unsigned short VEHICLEID;
|
typedef unsigned short VEHICLEID;
|
||||||
|
|
||||||
#include "scrtimers.h"
|
#include "scrtimers.h"
|
||||||
#include "npcmode.h"
|
#include "gamemodes.h"
|
||||||
|
|
||||||
#include "net/netrpc.h"
|
#include "net/netrpc.h"
|
||||||
#include "net/playerpool.h"
|
#include "net/playerpool.h"
|
||||||
|
@ -80,7 +80,7 @@ void CNetGame::Init(PCHAR szHostOrIp, int iPort,
|
|||||||
strncpy(m_szHostOrIp, szHostOrIp, sizeof(m_szHostOrIp));
|
strncpy(m_szHostOrIp, szHostOrIp, sizeof(m_szHostOrIp));
|
||||||
m_iPort = iPort;
|
m_iPort = iPort;
|
||||||
|
|
||||||
m_pNPCMode = new CNPCMode();
|
m_pGameMode = new CGameMode();
|
||||||
m_pScriptTimers = new CScriptTimers();
|
m_pScriptTimers = new CScriptTimers();
|
||||||
|
|
||||||
// Setup player pool
|
// Setup player pool
|
||||||
|
@ -43,7 +43,7 @@ private:
|
|||||||
char m_szHostOrIp[128];
|
char m_szHostOrIp[128];
|
||||||
int m_iPort;
|
int m_iPort;
|
||||||
|
|
||||||
CNPCMode* m_pNPCMode;
|
CGameMode* m_pGameMode;
|
||||||
CScriptTimers* m_pScriptTimers;
|
CScriptTimers* m_pScriptTimers;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
// Now the question is, is this called CGameMode or something else?
|
|
||||||
// It is basically the same as what the server has with minor differences
|
|
||||||
|
|
||||||
#include "npcmode.h"
|
|
||||||
|
|
||||||
CNPCMode::CNPCMode()
|
|
||||||
{
|
|
||||||
// TODO: CNPCMode::CNPCMode W: 0041A9C0 L: 080A940C
|
|
||||||
field_68 = 0;
|
|
||||||
field_69 = 0;
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
class CNPCMode // size: 110
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
char _gap0[104];
|
|
||||||
char field_68;
|
|
||||||
char field_69;
|
|
||||||
float field_6A;
|
|
||||||
|
|
||||||
public:
|
|
||||||
CNPCMode();
|
|
||||||
};
|
|
Reference in New Issue
Block a user