]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.h
doxygen comments and config file
[xonotic/darkplaces.git] / world.h
diff --git a/world.h b/world.h
index cbe9747ffb0b638307dec3283b917bf85ecdac40..b95af6f8d2a3eb8340681b2415d7431720e77e88 100644 (file)
--- a/world.h
+++ b/world.h
@@ -41,6 +41,11 @@ typedef struct link_s
 
 typedef struct world_s
 {
+       // convenient fields
+       char filename[MAX_QPATH];
+       vec3_t mins;
+       vec3_t maxs;
+
        int areagrid_stats_calls;
        int areagrid_stats_nodechecks;
        int areagrid_stats_entitychecks;
@@ -65,19 +70,21 @@ void World_InsertLinkBefore(link_t *l, link_t *before, int entitynumber);
 
 void World_Init(void);
 
-// called after the world model has been loaded, before linking any entities
-void World_Clear(world_t *world);
+/// called after the world model has been loaded, before linking any entities
+void World_SetSize(world_t *world, const char *filename, const vec3_t mins, const vec3_t maxs);
+/// unlinks all entities (used before reallocation of edicts)
+void World_UnlinkAll(world_t *world);
 
 void World_PrintAreaStats(world_t *world, const char *worldname);
 
-// call before removing an entity, and before trying to move one,
-// so it doesn't clip against itself
+/// call before removing an entity, and before trying to move one,
+/// so it doesn't clip against itself
 void World_UnlinkEdict(struct prvm_edict_s *ent);
 
-// Needs to be called any time an entity changes origin, mins, maxs
+/// Needs to be called any time an entity changes origin, mins, maxs
 void World_LinkEdict(world_t *world, struct prvm_edict_s *ent, const vec3_t mins, const vec3_t maxs);
 
-// returns list of entities touching a box
+/// \returns list of entities touching a box
 int World_EntitiesInBox(world_t *world, const vec3_t mins, const vec3_t maxs, int maxlist, struct prvm_edict_s **list);
 
 #endif