mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[server] Implement CLabelPool ctor/dtor
* Add CLabelPool::Delete() stub
This commit is contained in:
parent
1d1ad883d7
commit
d37d214528
@ -0,0 +1,28 @@
|
||||
|
||||
#include "main.h"
|
||||
|
||||
CLabelPool::CLabelPool()
|
||||
{
|
||||
for(WORD wLabel = 0; wLabel < MAX_LABELS; wLabel++)
|
||||
{
|
||||
memset(field_1000[wLabel], 0, sizeof(struc_24));
|
||||
field_0[wLabel] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
CLabelPool::~CLabelPool()
|
||||
{
|
||||
for (WORD wLabel = 0; wLabel < MAX_LABELS; wLabel++)
|
||||
{
|
||||
if(field_0[wLabel])
|
||||
{
|
||||
Delete(wLabel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BOOL CLabelPool::Delete(WORD wLabel)
|
||||
{
|
||||
// TODO: CLabelPool::Delete W .text:00464210 L .text:0804C150
|
||||
return TRUE;
|
||||
}
|
@ -2,10 +2,21 @@
|
||||
#ifndef SAMPSRV_LABELPOOL_H
|
||||
#define SAMPSRV_LABELPOOL_H
|
||||
|
||||
struct struc_24
|
||||
{
|
||||
char gap0[33];
|
||||
};
|
||||
|
||||
class CLabelPool // size: WL 37888
|
||||
{
|
||||
private:
|
||||
char _gap0[37888];
|
||||
int field_0[1024];
|
||||
struc_24 field_1000[1024];
|
||||
public:
|
||||
CLabelPool();
|
||||
~CLabelPool();
|
||||
|
||||
BOOL Delete(WORD wLabel);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -11,6 +11,7 @@
|
||||
#define MAX_MENUS 128
|
||||
#define MAX_TEXT_DRAWS 2048
|
||||
#define MAX_GANG_ZONES 1024
|
||||
#define MAX_LABELS 1024
|
||||
#define MAX_ACTORS 1000
|
||||
|
||||
#define DEFAULT_MAX_PLAYERS 50
|
||||
|
Loading…
Reference in New Issue
Block a user