launch option to load world
[carveJwlIkooP6JGAAIwe30JlM.git] / player.h
index 1378ce86ac0e88f3c9acd9790a6ec73a2297d559..18936a7ade2248844468cc7e182299c46ea14042 100644 (file)
--- a/player.h
+++ b/player.h
@@ -4,6 +4,7 @@
 #include "skaterift.h"
 #include "player_common.h"
 #include "network_compression.h"
+#include "player_effects.h"
 
 enum player_subsystem{
    k_player_subsystem_walk = 0,
@@ -43,6 +44,8 @@ struct player_subsystem_interface{
    void(*im_gui)(void);
    void(*animate)(void);
    void(*pose)( void *animator, player_pose *pose );
+   void(*effects)( void *animator, m4x3f *final_mtx, struct player_board *board,
+                   struct player_effects_data *effect_data );
    void(*post_animate)(void);
    void(*network_animator_exchange)( bitpack_ctx *ctx, void *data );
    void(*sfx_oneshot)( u8 id, v3f pos, f32 volume );
@@ -157,6 +160,8 @@ struct {
        id_wheel_r,
        id_board,
        id_eyes;
+
+   struct player_effects_data effect_data;
 }
 static localplayer = {
    .rb = {