X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=entity.c;fp=entity.c;h=1d91c2491a9032181a53189503bf5e30f158d515;hb=872ad3e040f22df357929d3778a955ae8c4ac52b;hp=0000000000000000000000000000000000000000;hpb=926a64f679a23d8b0f3594d73405d2486c398a59;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/entity.c b/entity.c new file mode 100644 index 0000000..1d91c24 --- /dev/null +++ b/entity.c @@ -0,0 +1,22 @@ +#ifndef ENTITY_C +#define ENTITY_C + +#include "entity.h" +#include "world.h" + +#include "ent_skateshop.c" + +VG_STATIC void entity_call( world_instance *world, ent_call *call ) +{ + u32 type = mdl_entity_id_type( call->id ); + + if( type == k_ent_volume ){ + ent_volume_call( world, call ); + } else if( type == k_ent_audio ){ + ent_audio_call( world, call ); + } else if( type == k_ent_skateshop ){ + ent_skateshop_call( world, call ); + } +} + +#endif /* ENTITY_C */