X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_entity.h;h=ba58df8f60d27793c960c3518a9ca88999554804;hb=dbbdf411d1aaf70cb995c3371cfae37fd0b7dbcc;hp=bbcfbe20dbb651d1d1a7076cd8e9771f67503504;hpb=844527ec68c063d78d4993bd8e4053f9ddc47b78;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_entity.h b/world_entity.h index bbcfbe2..ba58df8 100644 --- a/world_entity.h +++ b/world_entity.h @@ -4,12 +4,16 @@ #include "world.h" #include "entity.h" #include "bvh.h" +#include "save.h" +#include "vg/vg_msg.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, vg_msg *sav ); +VG_STATIC void world_entity_serialize( world_instance *world, vg_msg *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 ); @@ -22,6 +26,11 @@ 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 ); +VG_STATIC void world_entity_focus( u32 entity_id ); +VG_STATIC void world_entity_focus_preupdate(void); +VG_STATIC void world_entity_focus_render(void); +VG_STATIC void world_entity_unfocus(); + static bh_system bh_system_entity_list = { .expand_bound = entity_bh_expand_bound, .item_centroid = entity_bh_centroid,