X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=world.h;h=216e67c9c4e7e9a90d587319dec910b7035ed3a4;hb=85ff1e4d0bb64c1f3d856d5ed661cc18c453db75;hp=cbe9747ffb0b638307dec3283b917bf85ecdac40;hpb=da678034f2cd88eff4b8f5c98ca628cd23893fe3;p=xonotic%2Fdarkplaces.git diff --git a/world.h b/world.h index cbe9747f..216e67c9 100644 --- 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);