The International Simutrans Forum

Development => Patches & Projects => Topic started by: Yona-TYT on November 10, 2024, 11:39:07 AM

Title: [API Script] Get builds list
Post by: Yona-TYT on November 10, 2024, 11:39:07 AM
This patch is to get a list of all city buildings in a city from city_x.

0001-ADD-get-builds-list-from-city_x.patch
Title: Re: [API Script] Get builds list
Post by: prissi on November 14, 2024, 12:42:13 PM
That seems a little dangerous, as the static vector may change when another tool skript asks for the list for another city. It needs to return a new vector_tpl, not a reference on a copy. I am not sure how those vectors will be destroyed by squirrel.