--- /home/yonatyt/simu-git/trunk/script/api/api_map_objects.cc 2020-06-20 06:02:29.099657000 -0400 +++ /home/yonatyt/simu-git/files/api_map_objects.cc 2020-06-21 03:32:28.907309000 -0400 @@ -619,10 +619,15 @@ */ register_method(vm, &weg_t::is_crossing, "is_crossing"); /** + * @returns max speed in way. + */ + register_method(vm, &weg_t::get_max_speed, "get_max_speed"); + /** * Return directions of this way. One-way signs are ignored here. * @returns direction * @typemask dir() */ + register_function_fv(vm, &get_way_ribi, "get_dirs", 1, "x", freevariable(false) ); /** * Return directions of this way. Some signs restrict available directions. --- /home/yonatyt/simu-git/trunk/script/api/squirrel_types_scenario.awk 2020-06-20 06:02:29.095664000 -0400 +++ /home/yonatyt/simu-git/files/squirrel_types_scenario.awk 2020-06-21 03:32:01.839308000 -0400 @@ -234,6 +234,7 @@ export_types["way_x::has_signal"] = "bool()" export_types["way_x::has_wayobj"] = "bool()" export_types["way_x::is_crossing"] = "bool()" + export_types["way_x::get_max_speed"] = "integer()" export_types["way_x::get_desc"] = "way_desc_x()" export_types["label_x::create"] = "string(coord, player_x, string)" export_types["label_x::set_text"] = "string(string)"