ui frosting info
[carveJwlIkooP6JGAAIwe30JlM.git] / player_dead.h
1 #ifndef PLAYER_DEAD_H
2 #define PLAYER_DEAD_H
3
4 #include "player.h"
5 #include "player_api.h"
6
7 struct player_dead{
8 v3f co_lpf, v_lpf, w_lpf;
9
10 struct player_dead_animator{
11 struct {
12 v3f co;
13 v4f q;
14 }
15 transforms[ 32 ];
16 }
17 animator;
18
19 struct skeleton_anim *anim_bail;
20 }
21 static player_dead;
22
23 static void player__dead_update (void);
24 static void player__dead_post_update (void);
25 static void player__dead_animate (void);
26 static void player__dead_pose (void *animator, player_pose *pose);
27 static void player__dead_post_animate(void);
28 static void player__dead_im_gui (void);
29 static void player__dead_bind (void);
30 static void player__dead_transition ( enum player_die_type type );
31 static void player__dead_animator_exchange( bitpack_ctx *ctx, void *data );
32
33 struct player_subsystem_interface static player_subsystem_dead = {
34 .update = player__dead_update,
35 .post_update = player__dead_post_update,
36 .animate = player__dead_animate,
37 .pose = player__dead_pose,
38 .post_animate = player__dead_post_animate,
39 .im_gui = player__dead_im_gui,
40 .bind = player__dead_bind,
41
42 .animator_data = &player_dead.animator,
43 .animator_size = sizeof(player_dead.animator),
44 .network_animator_exchange = player__dead_animator_exchange,
45 .name = "Dead"
46 };
47
48 #endif /* PLAYER_DEAD_H */