2011-06-01 12:20:56 +00:00
|
|
|
//
|
|
|
|
// fields are needed for spawning from the entity string
|
|
|
|
//
|
|
|
|
typedef enum {
|
|
|
|
F_INT,
|
|
|
|
F_FLOAT,
|
|
|
|
F_LSTRING, // string on disk, pointer in memory, TAG_LEVEL
|
|
|
|
F_GSTRING, // string on disk, pointer in memory, TAG_GAME
|
|
|
|
F_VECTOR,
|
2011-12-05 10:07:34 +00:00
|
|
|
F_VECTOR4,
|
2011-06-01 12:20:56 +00:00
|
|
|
F_ANGLEHACK,
|
|
|
|
F_ENTITY, // index on disk, pointer in memory
|
|
|
|
F_ITEM, // index on disk, pointer in memory
|
|
|
|
F_CLIENT, // index on disk, pointer in memory
|
|
|
|
F_IGNORE
|
|
|
|
} fieldtype_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
int ofs;
|
|
|
|
fieldtype_t type;
|
|
|
|
int flags;
|
|
|
|
} field_t;
|
|
|
|
|