You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
/*** |
|
* |
|
* Copyright (c) 1996-2002, Valve LLC. All rights reserved. |
|
* |
|
* This product contains software technology licensed from Id |
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. |
|
* All Rights Reserved. |
|
* |
|
* Use, distribution, and modification of this source code and/or resulting |
|
* object code is restricted to non-commercial enhancements to products from |
|
* Valve LLC. All other use, distribution, or modification is prohibited |
|
* without written permission from Valve LLC. |
|
* |
|
****/ |
|
|
|
#ifndef EDICT_H |
|
#define EDICT_H |
|
|
|
#ifdef SUPPORT_BSP2_FORMAT |
|
#define MAX_ENT_LEAFS 24 // Orignally was 16 |
|
#else |
|
#define MAX_ENT_LEAFS 48 |
|
#endif |
|
|
|
#include "progdefs.h" |
|
|
|
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; |
|
#ifdef SUPPORT_BSP2_FORMAT |
|
int leafnums[MAX_ENT_LEAFS]; |
|
#else |
|
short leafnums[MAX_ENT_LEAFS]; |
|
#endif |
|
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//EDICT_H
|