ent_gate *gate = mdl_arritm( &world->ent_gate, i );
if( !(gate->flags & k_ent_gate_linked) ) continue;
+ if( gate->flags & k_ent_gate_locked ) continue;
if( gate->flags & k_ent_gate_nonlocal ){
if( world_loader.state != k_world_loader_none ){
}
}
+VG_STATIC void ent_gate_call( world_instance *world, ent_call *call ){
+ u32 index = mdl_entity_id_id( call->id );
+ ent_gate *gate = mdl_arritm( &world->ent_gate, index );
+
+ if( call->function == 0 ){ /* unlock() */
+ gate->flags &= ~k_ent_gate_locked;
+ }
+ else {
+ vg_print_backtrace();
+ vg_error( "Unhandled function id: %u\n", call->function );
+ }
+}
+
#endif /* WORLD_GATE_C */