diff --git a/server/actorpool.cpp b/server/actorpool.cpp index e69de29..c86ad7f 100644 --- a/server/actorpool.cpp +++ b/server/actorpool.cpp @@ -0,0 +1,27 @@ + +#include "main.h" + +CActorPool::CActorPool() +{ + for(ACTORID ActorID = 0; ActorID != MAX_ACTORS; ActorID++) + { + field_0[ActorID] = 0; + field_FA0[ActorID] = 0; + field_1F40[ActorID] = 0; + } + field_2EE0 = 0; +} + +CActorPool::~CActorPool() +{ + for(ACTORID ActorID = 0; ActorID != MAX_ACTORS; ActorID++) { + Delete(ActorID); + } +} + +BOOL CActorPool::Delete(ACTORID ActorID) +{ + // TODO: CActorPool::Delete W .text:00464800 L .text:08094B80 + return FALSE; +} + diff --git a/server/actorpool.h b/server/actorpool.h index 1211ebe..f9c7c4a 100644 --- a/server/actorpool.h +++ b/server/actorpool.h @@ -5,7 +5,15 @@ class CActorPool // size: WL 12004 { private: - char _gap0[12004]; + int field_0[1000]; + int field_FA0[1000]; + int field_1F40[1000]; + int field_2EE0; +public: + CActorPool(); + ~CActorPool(); + + BOOL Delete(ACTORID ActorID); }; #endif diff --git a/server/main.h b/server/main.h index 15254b0..6209811 100644 --- a/server/main.h +++ b/server/main.h @@ -11,6 +11,7 @@ #define MAX_MENUS 128 #define MAX_TEXT_DRAWS 2048 #define MAX_GANG_ZONES 1024 +#define MAX_ACTORS 1000 #define DEFAULT_MAX_PLAYERS 50 #define DEFAULT_LISTEN_PORT 8192 @@ -65,6 +66,7 @@ // SA-MP typedef unsigned short PLAYERID; +typedef unsigned short ACTORID; typedef unsigned short VEHICLEID; #include "console.h"