[saco] Implement CGangZonePool ctor

This commit is contained in:
RD42 2024-02-18 21:21:09 +08:00
parent 87f94769e8
commit efa55de427
6 changed files with 36 additions and 1 deletions

View File

@ -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
View 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
View File

@ -0,0 +1,13 @@
#pragma once
class CGangZonePool
{
private:
int field_0[1024];
int field_1000[1024];
public:
CGangZonePool();
};
//----------------------------------------------------

View File

@ -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();

View File

@ -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;

View File

@ -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>