mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-06 21:20:07 +00:00
71196fedf6
visibility (ie, global functions must have a prototype)
64 lines
1.6 KiB
C
64 lines
1.6 KiB
C
/*
|
|
entities.h
|
|
|
|
(description)
|
|
|
|
Copyright (C) 1996-1997 Id Software, Inc.
|
|
Copyright (C) 2002 Colin Thompson
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to:
|
|
|
|
Free Software Foundation, Inc.
|
|
59 Temple Place - Suite 330
|
|
Boston, MA 02111-1307, USA
|
|
|
|
$Id$
|
|
*/
|
|
|
|
#ifndef __entities_h
|
|
#define __entities_h
|
|
|
|
#define DEFAULTLIGHTLEVEL 300
|
|
|
|
typedef struct epair_s {
|
|
struct epair_s *next;
|
|
char key[MAX_KEY];
|
|
char value[MAX_VALUE];
|
|
} epair_t;
|
|
|
|
typedef struct entity_s {
|
|
char classname[64];
|
|
vec3_t origin;
|
|
float angle;
|
|
int light;
|
|
int style;
|
|
char target[32];
|
|
char targetname[32];
|
|
struct epair_s *epairs;
|
|
struct entity_s *targetent;
|
|
} entity_t;
|
|
|
|
extern entity_t entities[MAX_MAP_ENTITIES];
|
|
extern int num_entities;
|
|
|
|
const char *ValueForKey (entity_t *ent, const char *key);
|
|
void SetKeyValue (entity_t *ent, const char *key, const char *value);
|
|
float FloatForKey (entity_t *ent, const char *key);
|
|
void GetVectorForKey (entity_t *ent, const char *key, vec3_t vec);
|
|
|
|
void LoadEntities (void);
|
|
void WriteEntitiesToString (void);
|
|
|
|
#endif// __entities_h
|