X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_dead.h;h=94241b96c019658b188f62398f8c0af8a9c38a8a;hb=5f6a4f9df6c8accc89f1920bfe9ace3cbac4c4b6;hp=f90a3029cb393f45e0dca322c6dd60f0855994fa;hpb=a109f126d8adab622e38fbcc2d4281e75255246a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_dead.h b/player_dead.h index f90a302..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{ @@ -18,31 +17,16 @@ struct player_dead{ struct skeleton_anim *anim_bail; } -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_bind (void); -static void player__dead_transition ( enum player_die_type type ); -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, - .bind = player__dead_bind, - - .animator_data = &player_dead.animator, - .animator_size = sizeof(player_dead.animator), - .network_animator_exchange = player__dead_animator_exchange, - .name = "Dead" -}; +extern player_dead; +extern struct player_subsystem_interface player_subsystem_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 */