X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.h;h=38e01ad2865bf73d72b12e64e43c433b007ef3e8;hb=f99902f513b0ad606437bf32de47405dd4ea5f98;hp=3e23d1713b963e6fae24355209db4568c5210816;hpb=01e2535f8daaab0e3d46dcc61a08a9268babd47c;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.h b/player.h index 3e23d17..38e01ad 100644 --- 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