a mess but stable
[carveJwlIkooP6JGAAIwe30JlM.git] / player.h
index 69da5094133bfcaff8afec76f7962d8d141ffccc..ff8c2e1ed653047b4c5828ebbebf740e4b04df49 100644 (file)
--- a/player.h
+++ b/player.h
@@ -28,13 +28,14 @@ struct player_cam_controller {
 #include "player_model.h"
 #include "player_render.h"
 
-struct player_subsystem_interface{
+struct player_subsystem_interface
+{
    void(*system_register)(void);
    void(*bind)(void);
    void(*pre_update)(void);
    void(*update)(void);
    void(*post_update)(void);
-   void(*im_gui)(void);
+   void(*im_gui)( ui_context *ctx );
    void(*animate)(void);
    void(*pose)( void *animator, player_pose *pose );
    void(*effects)( void *animator, m4x3f *final_mtx, struct player_board *board,
@@ -63,7 +64,7 @@ struct localplayer
    rigidbody rb;
    v3f angles;
 
-   bool have_glider, glider_orphan;
+   bool have_glider, glider_orphan, drowned;
 
    /*
     * Camera management
@@ -168,7 +169,7 @@ extern struct player_subsystem_interface *player_subsystems[];
  */
 
 void player_init(void);
-void player__debugtext( int size, const char *fmt, ... );
+void player__debugtext( ui_context *ctx, int size, const char *fmt, ... );
 void player__use_mesh( glmesh *mesh );
 void player__use_model( u16 reg_id );
 
@@ -178,7 +179,7 @@ void player__update(void);
 void player__post_update(void);
 
 void player__pass_gate( u32 id );
-void player__im_gui(void);
+void player__im_gui( ui_context *ctx );
 void player__setpos( v3f pos );
 void player__spawn( ent_spawn *rp );
 void player__clean_refs(void);