X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_dead.h;h=94241b96c019658b188f62398f8c0af8a9c38a8a;hb=4eccfd7252f8ff165670842df537441afae5458b;hp=19d6e5900c3eaa96cd664cf39d0746edce9e6a06;hpb=ce0205fd929e5fb1446f8c52fcab344884d82569;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_dead.h b/player_dead.h index 19d6e59..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,30 +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); -static void player__dead_animator_exchange( bitpack_ctx *ctx, void *data ); - -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), - .network_animator_exchange = player__dead_animator_exchange, - .name = "Dead" -}; +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 */