achievements
[carveJwlIkooP6JGAAIwe30JlM.git] / entity.c
1 #ifndef ENTITY_C
2 #define ENTITY_C
3
4 #include "world.h"
5 #include "entity.h"
6 #include "world_entity.h"
7
8 #include "ent_skateshop.c"
9
10 VG_STATIC void entity_call( world_instance *world, ent_call *call )
11 {
12 u32 type = mdl_entity_id_type( call->id );
13
14 if( type == k_ent_volume ){
15 ent_volume_call( world, call );
16 } else if( type == k_ent_audio ){
17 ent_audio_call( world, call );
18 } else if( type == k_ent_skateshop ){
19 ent_skateshop_call( world, call );
20 } else if( type == k_ent_ccmd ){
21 ent_ccmd_call( world, call );
22 }
23 }
24
25 #endif /* ENTITY_C */