X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=entity.c;h=59e9219abcfe58a7baaab9a574b19c5b83091b16;hb=e311bbe2fa903a7e2a922f202f389b799193195d;hp=82c3ecde18601037942289e3a9dcb4f02f5091b1;hpb=6190deb68aa1c9e92ede62ea05c2a755bf5516de;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/entity.c b/entity.c index 82c3ecd..59e9219 100644 --- a/entity.c +++ b/entity.c @@ -9,10 +9,14 @@ #include "ent_objective.c" #include "ent_challenge.c" #include "ent_relay.c" +#include "ent_route.c" +#include "ent_portal.c" +#include "ent_miniworld.c" +#include "ent_region.c" typedef void (*fn_entity_call_handler)( world_instance *, ent_call *); -VG_STATIC void entity_call( world_instance *world, ent_call *call ){ +static void entity_call( world_instance *world, ent_call *call ){ u32 type = mdl_entity_id_type( call->id ); fn_entity_call_handler table[] = { @@ -23,7 +27,10 @@ VG_STATIC void entity_call( world_instance *world, ent_call *call ){ [k_ent_ccmd] = ent_ccmd_call, [k_ent_gate] = ent_gate_call, [k_ent_relay] = ent_relay_call, - [k_ent_challenge] = ent_challenge_call + [k_ent_challenge] = ent_challenge_call, + [k_ent_route] = ent_route_call, + [k_ent_miniworld] = ent_miniworld_call, + [k_ent_region] = ent_region_call }; if( type >= vg_list_size(table) ){