mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 04:36:01 +08:00
[saco] Implement CGangZonePool ctor
This commit is contained in:
@ -36,6 +36,7 @@ typedef struct _GAME_SETTINGS {
|
|||||||
#include "net/vehiclepool.h"
|
#include "net/vehiclepool.h"
|
||||||
#include "net/pickuppool.h"
|
#include "net/pickuppool.h"
|
||||||
#include "net/objectpool.h"
|
#include "net/objectpool.h"
|
||||||
|
#include "net/gangzonepool.h"
|
||||||
#include "net/menupool.h"
|
#include "net/menupool.h"
|
||||||
#include "net/textdrawpool.h"
|
#include "net/textdrawpool.h"
|
||||||
#include "net/labelpool.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->pMenuPool = new CMenuPool();
|
||||||
m_pPools->pLabelPool = new CLabelPool();
|
m_pPools->pLabelPool = new CLabelPool();
|
||||||
m_pPools->pTextDrawPool = new CTextDrawPool();
|
m_pPools->pTextDrawPool = new CTextDrawPool();
|
||||||
|
m_pPools->pGangZonePool = new CGangZonePool();
|
||||||
m_pPools->pPlayerPool = new CPlayerPool();
|
m_pPools->pPlayerPool = new CPlayerPool();
|
||||||
m_pPools->pVehiclePool = new CVehiclePool();
|
m_pPools->pVehiclePool = new CVehiclePool();
|
||||||
m_pPools->pPickupPool = new CPickupPool();
|
m_pPools->pPickupPool = new CPickupPool();
|
||||||
|
@ -31,7 +31,7 @@ typedef struct _NETGAME_POOLS {
|
|||||||
CPickupPool *pPickupPool;
|
CPickupPool *pPickupPool;
|
||||||
CObjectPool *pObjectPool;
|
CObjectPool *pObjectPool;
|
||||||
CActorPool *pActorPool;
|
CActorPool *pActorPool;
|
||||||
char _gap0[4];
|
CGangZonePool *pGangZonePool;
|
||||||
CLabelPool *pLabelPool;
|
CLabelPool *pLabelPool;
|
||||||
CTextDrawPool *pTextDrawPool;
|
CTextDrawPool *pTextDrawPool;
|
||||||
CMenuPool *pMenuPool;
|
CMenuPool *pMenuPool;
|
||||||
|
@ -261,6 +261,12 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\net\actorpool.h">
|
RelativePath=".\net\actorpool.h">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\net\gangzonepool.cpp">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\net\gangzonepool.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\net\labelpool.cpp">
|
RelativePath=".\net\labelpool.cpp">
|
||||||
</File>
|
</File>
|
||||||
|
Reference in New Issue
Block a user