News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

[API Script] Get builds list

Started by Yona-TYT, November 10, 2024, 11:39:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

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

prissi

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.