refactor model api
[carveJwlIkooP6JGAAIwe30JlM.git] / entity.c
diff --git a/entity.c b/entity.c
deleted file mode 100644 (file)
index cfc7106..0000000
--- a/entity.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef ENTITY_C
-#define ENTITY_C
-
-#include "world.h"
-#include "entity.h"
-#include "world_entity.h"
-
-#include "ent_skateshop.c"
-#include "ent_challenge.c"
-
-typedef void (*fn_entity_call_handler)( world_instance *, ent_call *);
-
-VG_STATIC void entity_call( world_instance *world, ent_call *call ){
-   u32 type = mdl_entity_id_type( call->id );
-
-   fn_entity_call_handler table[] = {
-      [k_ent_volume]    = ent_volume_call,
-      [k_ent_audio]     = ent_audio_call,
-      [k_ent_skateshop] = ent_skateshop_call,
-      [k_ent_challenge] = ent_challenge_call,
-      [k_ent_ccmd]      = ent_ccmd_call
-   };
-
-   if( type > vg_list_size(table) ){
-      vg_error( "call to entity type: %u is out of range\n", type );
-      return;
-   }
-
-   fn_entity_call_handler fn = table[ type ];
-
-   if( !fn ){
-      vg_error( "call to entity type: %u is undefined\n", type );
-      return;
-   }
-
-   fn( world, call );
-}
-
-#endif /* ENTITY_C */