X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_entity.h;h=c954052a4149ff924c0ddef42588e723c8630dac;hb=72f789aa46c913ec2ffa10907b2124f8d09670e5;hp=f9a3ec9447212b8428b743dd7e1fb681432636a3;hpb=1a194c3888293733939b2dd944251ae1b6c398ce;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_entity.h b/world_entity.h index f9a3ec9..c954052 100644 --- a/world_entity.h +++ b/world_entity.h @@ -4,6 +4,14 @@ #include "vg/vg_bvh.h" #include "vg/vg_msg.h" +typedef struct ent_focus_context ent_focus_context; +struct ent_focus_context +{ + world_instance *world; + u32 index; /* Array index of the focused entity */ + bool active; +}; + void world_gen_entities_init( world_instance *world ); ent_spawn *world_find_spawn_by_name( world_instance *world, const char *name ); @@ -13,9 +21,9 @@ void world_default_spawn_pos( world_instance *world, v3f pos ); void world_entity_start( world_instance *world, vg_msg *sav ); void world_entity_serialize( world_instance *world, vg_msg *sav ); -void ent_volume_call( world_instance *world, ent_call *call ); -void ent_audio_call( world_instance *world, ent_call *call ); -void ent_ccmd_call( world_instance *world, ent_call *call ); +entity_call_result ent_volume_call( world_instance *world, ent_call *call ); +entity_call_result ent_audio_call( world_instance *world, ent_call *call ); +entity_call_result ent_ccmd_call( world_instance *world, ent_call *call ); void entity_bh_expand_bound( void *user, boxf bound, u32 item_index ); float entity_bh_centroid( void *user, u32 item_index, int axis );