Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andythenorth/cd4b0b218a8bc46a7ac4a8f9159afb2b to your computer and use it in GitHub Desktop.
Save andythenorth/cd4b0b218a8bc46a7ac4a8f9159afb2b to your computer and use it in GitHub Desktop.
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_5, [count_veh_id(5520) > 0]) {
1: return 1;
return 0;
}
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_4, [count_veh_id(5530) > 0]) {
1: return 1;
return switch_is_restaurant_car_in_consist_5;
}
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_3, [count_veh_id(5540) > 0]) {
1: return 1;
return switch_is_restaurant_car_in_consist_4;
}
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_2, [count_veh_id(5550) > 0]) {
1: return 1;
return switch_is_restaurant_car_in_consist_3;
}
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_1, [count_veh_id(5560) > 0]) {
1: return 1;
return switch_is_restaurant_car_in_consist_2;
}
switch (FEAT_TRAINS, PARENT, switch_is_restaurant_car_in_consist_0, [count_veh_id(5570) > 0]) {
1: return 1;
return switch_is_restaurant_car_in_consist_1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment