$$ACTION Custom [e:Enable/Disable] level matcen group A aMatcenGroupASetEnableState Enable/disable matcen Enable or disable a matcen group, so it's capable of producing Parameters: Enable/Disable: whether the matcen is cabable of producing $$END */
| 215 | $$END |
| 216 | */ |
| 217 | void aMatcenGroupASetEnableState(int state) { |
| 218 | int j; |
| 219 | |
| 220 | if (!MatcenInfoInitialized) { |
| 221 | for (j = 0; j < NUM_MATCENS; j++) |
| 222 | matcen_info[j].matcen_id = Scrpt_FindMatcenName(matcen_info[j].matcen_name); |
| 223 | MatcenInfoInitialized = true; |
| 224 | } |
| 225 | |
| 226 | for (j = 0; j < 4; j++) |
| 227 | aMatcenSetEnableState(state, matcen_info[j].matcen_id); |
| 228 | } |
| 229 | |
| 230 | /* |
| 231 | $$ACTION |
nothing calls this directly
no test coverage detected