revision 2
[carveJwlIkooP6JGAAIwe30JlM.git] / player_dead.h
index f90a3029cb393f45e0dca322c6dd60f0855994fa..94241b96c019658b188f62398f8c0af8a9c38a8a 100644 (file)
@@ -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 */