Loading

Paste #poiuz4sgm

  1. 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))) {
  2.     0: return slammer_switch_graphics_engine_id_0;
  3. }
  4. 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))) {
  5.     0: return slammer_switch_graphics_engine_id_1;
  6.     return slammer_switch_graphics_engine_id_2;
  7. }
  8. 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))) {
  9.     0: return slammer_switch_graphics_engine_id_1;
  10.     1: return slammer_switch_graphics_engine_id_3;
  11.     return slammer_switch_graphics_engine_id_2;
  12. }
  13. 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))) {
  14.     0: return slammer_switch_graphics_engine_id_1;
  15.     1: return slammer_switch_graphics_engine_id_2;
  16.     2: return slammer_switch_graphics_engine_id_1;
  17.     return slammer_switch_graphics_engine_id_2;
  18. }
  19. 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))) {
  20.     0: return slammer_switch_graphics_engine_id_1;
  21.     1: return slammer_switch_graphics_engine_id_3;
  22.     2: return slammer_switch_graphics_engine_id_2;
  23.     3: return slammer_switch_graphics_engine_id_1;
  24.     return slammer_switch_graphics_engine_id_2;
  25. }
  26. 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))) {
  27.     0: return slammer_switch_graphics_engine_id_1;
  28.     1: return slammer_switch_graphics_engine_id_3;
  29.     2: return slammer_switch_graphics_engine_id_2;
  30.     3: return slammer_switch_graphics_engine_id_1;
  31.     4: return slammer_switch_graphics_engine_id_3;
  32.     return slammer_switch_graphics_engine_id_2;
  33. }
  34. switch (FEAT_TRAINS, SELF, slammer_switch_graphics_less_than_6_remaining_DFLT, num_vehs_in_vehid_chain % 6) {
  35.     1: return slammer_switch_graphics_modulo_num_units_in_consist_1_DFLT;
  36.     2: return slammer_switch_graphics_modulo_num_units_in_consist_2_DFLT;
  37.     3: return slammer_switch_graphics_modulo_num_units_in_consist_3_DFLT;
  38.     4: return slammer_switch_graphics_modulo_num_units_in_consist_4_DFLT;
  39.     5: return slammer_switch_graphics_modulo_num_units_in_consist_5_DFLT;
  40.     return slammer_switch_graphics_modulo_num_units_in_consist_6_DFLT;
  41. }
  42. 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))) {
  43.     1: return slammer_switch_graphics_less_than_6_remaining_DFLT;
  44.     return slammer_switch_graphics_modulo_num_units_in_consist_6_DFLT;
  45. }

Comments