X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_entity.h;h=c954052a4149ff924c0ddef42588e723c8630dac;hb=HEAD;hp=63cab47673e075f9c237c9032d36303abf414d91;hpb=2329044d44a5aff035b01926f7901d9e89ad284e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_entity.h b/world_entity.h deleted file mode 100644 index 63cab47..0000000 --- a/world_entity.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef WORLD_ENTITY_H -#define WORLD_ENTITY_H - -#include "world.h" -#include "entity.h" -#include "bvh.h" -#include "save.h" - -VG_STATIC void world_gen_entities_init( world_instance *world ); -VG_STATIC ent_spawn *world_find_spawn_by_name( world_instance *world, - const char *name ); -VG_STATIC ent_spawn *world_find_closest_spawn( world_instance *world, - v3f position ); -VG_STATIC void world_entity_start( world_instance *world, - struct savedata *sav ); - -VG_STATIC void ent_volume_call( world_instance *world, ent_call *call ); -VG_STATIC void ent_audio_call( world_instance *world, ent_call *call ); -VG_STATIC void ent_ccmd_call( world_instance *world, ent_call *call ); - -VG_STATIC void entity_bh_expand_bound( void *user, boxf bound, u32 item_index ); -VG_STATIC float entity_bh_centroid( void *user, u32 item_index, int axis ); -VG_STATIC void entity_bh_swap( void *user, u32 ia, u32 ib ); -VG_STATIC void entity_bh_debug( void *user, u32 item_index ); -VG_STATIC void entity_bh_closest( void *user, u32 item_index, v3f point, - v3f closest ); - -static bh_system bh_system_entity_list = { - .expand_bound = entity_bh_expand_bound, - .item_centroid = entity_bh_centroid, - .item_closest = entity_bh_closest, - .item_swap = entity_bh_swap, - .item_debug = entity_bh_debug, - .cast_ray = NULL -}; - -#endif /* WORLD_ENTITY_H */