- switch (FEAT_TRAINS, SELF, slammer_switch_graphics_modulo_num_units_in_consist_1_DFLT, position_in_vehid_chain - (position_in_vehid_chain - (position_in_vehid_chain % 6))) {
- 0: return slammer_switch_graphics_engine_id_0;
- }
- switch (FEAT_TRAINS, SELF, slammer_switch_graphics_modulo_num_units_in_consist_2_DFLT, position_in_vehid_chain - (position_in_vehid_chain - (position_in_vehid_chain % 6))) {
- 0: return slammer_switch_graphics_engine_id_1;
- return slammer_switch_graphics_engine_id_2;
- }
- switch (FEAT_TRAINS, SELF, slammer_switch_graphics_modulo_num_units_in_consist_3_DFLT, position_in_vehid_chain - (position_in_vehid_chain - (position_in_vehid_chain % 6))) {
- 0: return slammer_switch_graphics_engine_id_1;
- 1: return slammer_switch_graphics_engine_id_3;
- return slammer_switch_graphics_engine_id_2;
- }
- switch (FEAT_TRAINS, SELF, slammer_switch_graphics_modulo_num_units_in_consist_4_DFLT, position_in_vehid_chain - (position_in_vehid_chain - (position_in_vehid_chain % 6))) {
- 0: return slammer_switch_graphics_engine_id_1;
- 1: return slammer_switch_graphics_engine_id_2;
- 2: return slammer_switch_graphics_engine_id_1;
- return slammer_switch_graphics_engine_id_2;
- }
- switch (FEAT_TRAINS, SELF, slammer_switch_graphics_modulo_num_units_in_consist_5_DFLT, position_in_vehid_chain - (position_in_vehid_chain - (position_in_vehid_chain % 6))) {
- 0: return slammer_switch_graphics_engine_id_1;
- 1: return slammer_switch_graphics_engine_id_3;
- 2: return slammer_switch_graphics_engine_id_2;
- 3: return slammer_switch_graphics_engine_id_1;
- return slammer_switch_graphics_engine_id_2;
- }
- switch (FEAT_TRAINS, SELF, slammer_switch_graphics_modulo_num_units_in_consist_6_DFLT, position_in_vehid_chain - (position_in_vehid_chain - (position_in_vehid_chain % 6))) {
- 0: return slammer_switch_graphics_engine_id_1;
- 1: return slammer_switch_graphics_engine_id_3;
- 2: return slammer_switch_graphics_engine_id_2;
- 3: return slammer_switch_graphics_engine_id_1;
- 4: return slammer_switch_graphics_engine_id_3;
- return slammer_switch_graphics_engine_id_2;
- }
- switch (FEAT_TRAINS, SELF, slammer_switch_graphics_less_than_6_remaining_DFLT, num_vehs_in_vehid_chain % 6) {
- 1: return slammer_switch_graphics_modulo_num_units_in_consist_1_DFLT;
- 2: return slammer_switch_graphics_modulo_num_units_in_consist_2_DFLT;
- 3: return slammer_switch_graphics_modulo_num_units_in_consist_3_DFLT;
- 4: return slammer_switch_graphics_modulo_num_units_in_consist_4_DFLT;
- 5: return slammer_switch_graphics_modulo_num_units_in_consist_5_DFLT;
- return slammer_switch_graphics_modulo_num_units_in_consist_6_DFLT;
- }
- switch (FEAT_TRAINS, SELF, slammer_switch_graphics_position_in_consist_entry_point_DFLT, position_in_vehid_chain >= (num_vehs_in_vehid_chain - (num_vehs_in_vehid_chain % 6))) {
- 1: return slammer_switch_graphics_less_than_6_remaining_DFLT;
- return slammer_switch_graphics_modulo_num_units_in_consist_6_DFLT;
- }