X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_dead.h;h=94241b96c019658b188f62398f8c0af8a9c38a8a;hb=HEAD;hp=03c932602af117314cc41b31b92d03cb44163a12;hpb=22f62f001f21d1b91fefd9fc495c122d9ddf205a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_dead.h b/player_dead.h index 03c9326..94241b9 100644 --- a/player_dead.h +++ b/player_dead.h @@ -1,10 +1,9 @@ -#ifndef PLAYER_DEAD_H -#define PLAYER_DEAD_H - +#pragma once #include "player.h" #include "player_api.h" -struct player_dead{ +struct player_dead +{ v3f co_lpf, v_lpf, w_lpf; struct player_dead_animator{ @@ -15,27 +14,19 @@ struct player_dead{ transforms[ 32 ]; } animator; -} -static player_dead; -static void player__dead_update (void); -static void player__dead_post_update (void); -static void player__dead_animate (void); -static void player__dead_pose (void *animator, player_pose *pose); -static void player__dead_post_animate(void); -static void player__dead_im_gui (void); -static void player__dead_transition (void); - -struct player_subsystem_interface static player_subsystem_dead = { - .update = player__dead_update, - .post_update = player__dead_post_update, - .animate = player__dead_animate, - .pose = player__dead_pose, - .post_animate = player__dead_post_animate, - .im_gui = player__dead_im_gui, + struct skeleton_anim *anim_bail; +} +extern player_dead; +extern struct player_subsystem_interface player_subsystem_dead; - .animator_data = &player_dead.animator, - .animator_size = sizeof(player_dead.animator) -}; +void player__dead_update (void); +void player__dead_post_update (void); +void player__dead_animate (void); +void player__dead_pose (void *animator, player_pose *pose); +void player__dead_post_animate(void); +void player__dead_im_gui (void); +void player__dead_bind (void); +void player__dead_transition ( enum player_die_type type ); +void player__dead_animator_exchange( bitpack_ctx *ctx, void *data ); -#endif /* PLAYER_DEAD_H */