skateshop basics
[carveJwlIkooP6JGAAIwe30JlM.git] / entity.c
diff --git a/entity.c b/entity.c
new file mode 100644 (file)
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 */