dusting
[carveJwlIkooP6JGAAIwe30JlM.git] / player.h
index 3e23d1713b963e6fae24355209db4568c5210816..38e01ad2865bf73d72b12e64e43c433b007ef3e8 100644 (file)
--- a/player.h
+++ b/player.h
@@ -10,6 +10,7 @@
 #include "player_drive.h"
 
 #define PLAYER_REWIND_FRAMES 60*4
+#define RESET_MAX_TIME 45.0
 
 struct player_instance
 {
@@ -136,6 +137,15 @@ struct player_instance
  * ---------------------------------------------------------
  */
 
+VG_STATIC
+void (*_player_system_register[])(void) =
+{
+   player__walk_register,
+   player__skate_register,
+   NULL,
+   NULL
+};
+
 VG_STATIC
 void (*_player_bind[])( player_instance *player ) =
 {
@@ -217,6 +227,14 @@ void( *_player_restore[] )( player_instance *player ) =
    NULL
 };
 
+VG_STATIC void player_init(void)
+{
+   for( u32 i=0; i<vg_list_size(_player_system_register); i++ ){
+      if( _player_system_register[i] )
+         _player_system_register[i]();
+   }
+}
+
 /* implementation */
 
 #include "player.c"