3 #include "player_glide.h"
5 entity_call_result
ent_glider_call( world_instance
*world
, ent_call
*call
)
7 u32 index
= mdl_entity_id_id( call
->id
);
8 ent_glider
*glider
= mdl_arritm( &world
->ent_glider
, index
);
10 if( call
->function
== 0 )
13 return k_entity_call_result_OK
;
15 else if( call
->function
== 1 )
17 if( glider
->flags
& 0x1 )
19 player_glide_equip_glider();
21 return k_entity_call_result_OK
;
24 return k_entity_call_result_unhandled
;