3 entity_call_result
ent_relay_call( world_instance
*world
, ent_call
*call
)
5 u32 index
= mdl_entity_id_id( call
->id
);
6 ent_relay
*relay
= mdl_arritm( &world
->ent_relay
, index
);
8 if( call
->function
== 0 )
10 for( u32 i
=0; i
<vg_list_size(relay
->targets
); i
++ )
12 if( relay
->targets
[i
][0] )
16 call
.function
= relay
->targets
[i
][1];
17 call
.id
= relay
->targets
[i
][0];
18 entity_call( world
, &call
);
21 return k_entity_call_result_OK
;
24 return k_entity_call_result_unhandled
;