05.05.2014, 19:03
You could just pre-compute and store all map objects into a file or a database, so the script can gather object information at runtime, by calculating the position of the data inside the file or send a query to a database engine. If you rather want the information to be accessed faster at runtime, but you don't want to wait minutes to compile your script, you could store the data into dynamicly allocated memory at runtime from a file or database while intializing the script.