From efa55de427fb90c5a955dcf77845d0eaa1e270be Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 18 Feb 2024 21:21:09 +0800 Subject: [PATCH] [saco] Implement CGangZonePool ctor --- saco/main.h | 1 + saco/net/gangzonepool.cpp | 14 ++++++++++++++ saco/net/gangzonepool.h | 13 +++++++++++++ saco/net/netgame.cpp | 1 + saco/net/netgame.h | 2 +- saco/saco.vcproj | 6 ++++++ 6 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 saco/net/gangzonepool.cpp create mode 100644 saco/net/gangzonepool.h diff --git a/saco/main.h b/saco/main.h index cb8c960..fa776ee 100644 --- a/saco/main.h +++ b/saco/main.h @@ -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" diff --git a/saco/net/gangzonepool.cpp b/saco/net/gangzonepool.cpp new file mode 100644 index 0000000..cdce044 --- /dev/null +++ b/saco/net/gangzonepool.cpp @@ -0,0 +1,14 @@ + +#include "../main.h" + +//---------------------------------------------------- + +CGangZonePool::CGangZonePool() +{ + for (WORD i = 0; i < 1024; i++) + { + field_0[i] = 0; + field_1000[i] = 0; + } +} + diff --git a/saco/net/gangzonepool.h b/saco/net/gangzonepool.h new file mode 100644 index 0000000..75692e6 --- /dev/null +++ b/saco/net/gangzonepool.h @@ -0,0 +1,13 @@ + +#pragma once + +class CGangZonePool +{ +private: + int field_0[1024]; + int field_1000[1024]; +public: + CGangZonePool(); +}; + +//---------------------------------------------------- diff --git a/saco/net/netgame.cpp b/saco/net/netgame.cpp index 755b2f0..3bf5ece 100644 --- a/saco/net/netgame.cpp +++ b/saco/net/netgame.cpp @@ -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(); diff --git a/saco/net/netgame.h b/saco/net/netgame.h index b0f0fce..8da107a 100644 --- a/saco/net/netgame.h +++ b/saco/net/netgame.h @@ -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; diff --git a/saco/saco.vcproj b/saco/saco.vcproj index 0f3faaa..153b943 100644 --- a/saco/saco.vcproj +++ b/saco/saco.vcproj @@ -261,6 +261,12 @@ + + + +