36typedef struct epair_s {
entity_t entities[MAX_MAP_ENTITIES]
void GetVectorFromString(const char *value, vec3_t vec)
Converts a string into a vec3_t.
const char * UnparseEntities(void)
Generates the curTile->entdata string from all the entities.
void ParseEntities(void)
Parses the curTile->entdata string into entities.
entity_t * FindTargetEntity(const char *target)
Searches the entities array for an entity with the parameter targetname that matches the searched tar...
void GetVectorForKey(const entity_t *ent, const char *key, vec3_t vec)
Converts the value of a entity parameter into a vec3_t.
vec_t FloatForKey(const entity_t *ent, const char *key)
void SetKeyValue(entity_t *ent, const char *key, const char *value)
void PrintBSPFileSizes(void)
Dumps info about current file.
long WriteBSPFile(const char *filename)
Swaps the bsp file in place, so it should not be referenced again.
bool EpairCheckForDuplicate(const entity_t *ent, const epair_t *e)
epair_t * AddEpair(const char *key, const char *value, int entNum)
dMapTile_t * LoadBSPFile(const char *filename)
epair_t * ParseEpair(int entNum)
Parses one key and value for an entity from the current tokens.
const char * ValueForKey(const entity_t *ent, const char *key)
byte * CompressRouting(byte *dataStart, byte *destStart, int l)
Compress the routing data of a map.
Header for various formats like pak, and model formats as well as bsp format.