mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[bot] Add few classes
This commit is contained in:
parent
49b2219015
commit
ba1294ad03
BIN
bot/bot.ncb
BIN
bot/bot.ncb
Binary file not shown.
BIN
bot/bot.suo
BIN
bot/bot.suo
Binary file not shown.
@ -119,6 +119,19 @@
|
||||
<File
|
||||
RelativePath=".\net\netgame.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\net\playerpool.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\net\playerpool.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\net\vehiclepool.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\net\vehiclepool.h">
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\bot.rc">
|
||||
@ -129,9 +142,21 @@
|
||||
<File
|
||||
RelativePath=".\main.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\npcmode.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\npcmode.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\resource.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\scrtimers.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\scrtimers.h">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
14
bot/net/playerpool.cpp
Normal file
14
bot/net/playerpool.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
#include "playerpool.h"
|
||||
|
||||
CPlayerPool::CPlayerPool()
|
||||
{
|
||||
// TODO: CPlayerPool::CPlayerPool W: 004196A0 L: 080B1F4E
|
||||
field_7163 = 0;
|
||||
field_8107 = 0;
|
||||
for(unsigned short i = 0; i < 1000; i++) {
|
||||
field_0[i] = 0;
|
||||
field_7167[i] = 0;
|
||||
field_810B[i] = 0;
|
||||
}
|
||||
}
|
15
bot/net/playerpool.h
Normal file
15
bot/net/playerpool.h
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
class CPlayerPool // size: 41035
|
||||
{
|
||||
private:
|
||||
int field_0[1000];
|
||||
char _gapFA0[25027];
|
||||
int field_7163;
|
||||
int field_7167[1000];
|
||||
int field_8107;
|
||||
int field_810B[1000];
|
||||
char gap90AB[4000];
|
||||
|
||||
public:
|
||||
CPlayerPool();
|
||||
};
|
10
bot/net/vehiclepool.cpp
Normal file
10
bot/net/vehiclepool.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
#include "vehiclepool.h"
|
||||
|
||||
CVehiclePool::CVehiclePool()
|
||||
{
|
||||
// TODO: CVehiclePool::CVehiclePool W: 0041A890 L: 080B9408
|
||||
for(unsigned short i = 0; i < 2000; i++) {
|
||||
field_84D0[i] = 0;
|
||||
}
|
||||
}
|
11
bot/net/vehiclepool.h
Normal file
11
bot/net/vehiclepool.h
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
class CVehiclePool // size: 114000
|
||||
{
|
||||
private:
|
||||
char _gap0[34000];
|
||||
int field_84D0[2000];
|
||||
char _gapA410[72000];
|
||||
|
||||
public:
|
||||
CVehiclePool();
|
||||
};
|
12
bot/npcmode.cpp
Normal file
12
bot/npcmode.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
// 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;
|
||||
}
|
12
bot/npcmode.h
Normal file
12
bot/npcmode.h
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
class CNPCMode // size: 110
|
||||
{
|
||||
private:
|
||||
char _gap0[104];
|
||||
char field_68;
|
||||
char field_69;
|
||||
float field_6A;
|
||||
|
||||
public:
|
||||
CNPCMode();
|
||||
};
|
7
bot/scrtimers.cpp
Normal file
7
bot/scrtimers.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
#include "scrtimers.h"
|
||||
|
||||
CScriptTimers::CScriptTimers()
|
||||
{
|
||||
// TODO: CScriptTimers::CScriptTimers W: 0041D700 L: 080B8036
|
||||
}
|
7
bot/scrtimers.h
Normal file
7
bot/scrtimers.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
class CScriptTimers // size W 16/L 25
|
||||
{
|
||||
private:
|
||||
public:
|
||||
CScriptTimers();
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user