[Request] Extend information available from API
esotericist opened this issue ยท 4 comments
I'm working on a compatibility mod to make Antique Atlas aware of Lost Cities, but in the process of working on that, I realized there are some unexpected gaps in the API.
The biggest is that there doesn't seem to be any events to notify of the existence of things like highways, bridges, and subways. (not that I care about subways for my purposes, but it seems like it should be there anyway)
It also doesn't seem currently possible to identify parks. It seems like streets have a type, but the only way we have of determining if a city chunk is a street is if the building type is null, and there's no further obvious way via the API to query street type.
If we do get the ability to be notified of highways and bridges, it'd also be helpful to be able to determine through the API east/west versus north/south, if possible. (I know we can already query the highest highway level)
I know you're currently busy with your newest (and very awesome looking) mod, but it'd be nice if these functions could be added at some point.
Further note: while you can get some useful information about rail chunks with the current API, you cannot get at information like the rail direction (which is useful for things like identifying which way each ramp is for a subway station).
No hurries! Vacations are important!
I'll just keep hammering at what I can in the meantime. :)
Also, if you'd like to see a WIP here's an image.
Since my original post I realized I misunderstood what the pre-explosion event does -- I interpreted it as "this fires for potentially all of both city and non-city chunks, but only for the ones an explosion is about to happen in", so it didn't sound as useful as it actually is. That description might could be a little more explicit that it is for literally every chunk period, since it seems unlikely that I'm the only one who made that mistake.
Not that I'm entirely sure anyone else is trying to use this stuff. :)
I should have highway and bridge support soon, although I'm still having to reach into BuildingParts in order to get the data I need (since the API isn't exposing everything).