]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.h
csqc packet log code (for entityframedatabase 5 only, i.e. DP5 and higher)
[xonotic/darkplaces.git] / world.h
diff --git a/world.h b/world.h
index cbe9747ffb0b638307dec3283b917bf85ecdac40..216e67c9c4e7e9a90d587319dec910b7035ed3a4 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;
@@ -66,7 +71,9 @@ 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);
+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);