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;
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);
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
-int World_EntitiesInBox(world_t *world, vec3_t mins, vec3_t maxs, int maxlist, struct prvm_edict_s **list);
+int World_EntitiesInBox(world_t *world, const vec3_t mins, const vec3_t maxs, int maxlist, struct prvm_edict_s **list);
#endif