mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement CGangZonePool ctor
This commit is contained in:
parent
87f94769e8
commit
efa55de427
@ -36,6 +36,7 @@ typedef struct _GAME_SETTINGS {
|
||||
#include "net/vehiclepool.h"
|
||||
#include "net/pickuppool.h"
|
||||
#include "net/objectpool.h"
|
||||
#include "net/gangzonepool.h"
|
||||
#include "net/menupool.h"
|
||||
#include "net/textdrawpool.h"
|
||||
#include "net/labelpool.h"
|
||||
|
14
saco/net/gangzonepool.cpp
Normal file
14
saco/net/gangzonepool.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
#include "../main.h"
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
CGangZonePool::CGangZonePool()
|
||||
{
|
||||
for (WORD i = 0; i < 1024; i++)
|
||||
{
|
||||
field_0[i] = 0;
|
||||
field_1000[i] = 0;
|
||||
}
|
||||
}
|
||||
|
13
saco/net/gangzonepool.h
Normal file
13
saco/net/gangzonepool.h
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
class CGangZonePool
|
||||
{
|
||||
private:
|
||||
int field_0[1024];
|
||||
int field_1000[1024];
|
||||
public:
|
||||
CGangZonePool();
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
@ -39,6 +39,7 @@ void CNetGame::InitPools()
|
||||
m_pPools->pMenuPool = new CMenuPool();
|
||||
m_pPools->pLabelPool = new CLabelPool();
|
||||
m_pPools->pTextDrawPool = new CTextDrawPool();
|
||||
m_pPools->pGangZonePool = new CGangZonePool();
|
||||
m_pPools->pPlayerPool = new CPlayerPool();
|
||||
m_pPools->pVehiclePool = new CVehiclePool();
|
||||
m_pPools->pPickupPool = new CPickupPool();
|
||||
|
@ -31,7 +31,7 @@ typedef struct _NETGAME_POOLS {
|
||||
CPickupPool *pPickupPool;
|
||||
CObjectPool *pObjectPool;
|
||||
CActorPool *pActorPool;
|
||||
char _gap0[4];
|
||||
CGangZonePool *pGangZonePool;
|
||||
CLabelPool *pLabelPool;
|
||||
CTextDrawPool *pTextDrawPool;
|
||||
CMenuPool *pMenuPool;
|
||||
|
@ -261,6 +261,12 @@
|
||||
<File
|
||||
RelativePath=".\net\actorpool.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\net\gangzonepool.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\net\gangzonepool.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\net\labelpool.cpp">
|
||||
</File>
|
||||
|
Loading…
Reference in New Issue
Block a user