2002-12-23 00:00:00 +00:00
|
|
|
|
//========= Copyright <20> 1996-2002, Valve LLC, All rights reserved. ============
|
2001-11-08 00:00:00 +00:00
|
|
|
|
//
|
|
|
|
|
// Purpose:
|
|
|
|
|
//
|
|
|
|
|
// $NoKeywords: $
|
|
|
|
|
//=============================================================================
|
|
|
|
|
|
2000-06-05 00:00:00 +00:00
|
|
|
|
#if !defined EDICT_H
|
|
|
|
|
#define EDICT_H
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
#pragma once
|
|
|
|
|
#endif
|
|
|
|
|
#define MAX_ENT_LEAFS 48
|
|
|
|
|
|
2000-11-07 00:00:00 +00:00
|
|
|
|
#include "progdefs.h"
|
|
|
|
|
|
2000-06-05 00:00:00 +00:00
|
|
|
|
struct edict_s
|
|
|
|
|
{
|
|
|
|
|
qboolean free;
|
|
|
|
|
int serialnumber;
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
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
|