#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,
rigidbody rb;
v3f angles;
- bool have_glider, glider_orphan;
+ bool have_glider, glider_orphan, drowned;
/*
* Camera management
*/
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 );
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);