static void rna_Controller_link(bController *cont, bSensor *sens, bActuator *act) { if(sens) link_logicbricks((void **)&cont, (void ***)&(sens->links), &sens->totlinks, sizeof(bController *)); if(act) link_logicbricks((void **)&act, (void ***)&(cont->links), &cont->totlinks, sizeof(bActuator *)); }
static void rna_Sensor_link(bSensor *sens, bController *cont) { link_logicbricks((void **)&cont, (void ***)&(sens->links), &sens->totlinks, sizeof(bController *)); }
static void rna_Actuator_link(bActuator *act, bController *cont) { link_logicbricks((void **)&act, (void ***)&(cont->links), &cont->totlinks, sizeof(bActuator *)); }