X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=entity.c;h=85557b1763f72d009bc2ce3327e8b9ac9e6e7e26;hb=ca1798f62b65b72703e960d132dd0170728b7709;hp=82c3ecde18601037942289e3a9dcb4f02f5091b1;hpb=6190deb68aa1c9e92ede62ea05c2a755bf5516de;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/entity.c b/entity.c index 82c3ecd..85557b1 100644 --- a/entity.c +++ b/entity.c @@ -9,10 +9,13 @@ #include "ent_objective.c" #include "ent_challenge.c" #include "ent_relay.c" +#include "ent_route.c" +#include "ent_portal.c" +#include "ent_miniworld.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 +26,9 @@ 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 }; if( type >= vg_list_size(table) ){