This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
2010-08-15 22:00:00 +02:00
|
|
|
|
//=======================================================================
|
|
|
|
|
// Copyright XashXT Group 2010 <20>
|
|
|
|
|
// edict.h - server edicts
|
|
|
|
|
//=======================================================================
|
|
|
|
|
#ifndef EDICT_H
|
|
|
|
|
#define EDICT_H
|
|
|
|
|
|
|
|
|
|
#include "progdefs.h"
|
|
|
|
|
|
2010-08-18 22:00:00 +02:00
|
|
|
|
#define MAX_ENT_LEAFS 48
|
|
|
|
|
|
2010-08-15 22:00:00 +02:00
|
|
|
|
struct edict_s
|
|
|
|
|
{
|
|
|
|
|
int free; // unused entity when true
|
|
|
|
|
int serialnumber; // must match with entity num
|
|
|
|
|
|
2010-08-18 22:00:00 +02:00
|
|
|
|
link_t area; // linked to a division node or leaf
|
|
|
|
|
int headnode; // -1 to use normal leaf check
|
|
|
|
|
|
|
|
|
|
int num_leafs;
|
|
|
|
|
short leafnums[MAX_ENT_LEAFS];
|
|
|
|
|
|
|
|
|
|
float freetime; // sv.time when the object was freed
|
|
|
|
|
|
2010-08-15 22:00:00 +02:00
|
|
|
|
void *pvPrivateData; // alloced and freed by engine, used by DLLs
|
|
|
|
|
entvars_t v; // C exported fields from progs
|
|
|
|
|
|
|
|
|
|
// other fields from progs come immediately after
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif//EDICT_H
|