Dilvish wrote:
"[User] [AI?] need objects to operate with"Although it is true that to get details about the object you need to retrieve that at least initially pull up the object
I want to hide this thing from user.
there are many cases where it seems pretty convenient to me for the AI to organize info as lists of objectIDs
Only thing you can do with it is to iterate over, or pass it as is as argument. List of objects can be filtered and processed in one line (it more readable and need less local vars).
and others where it is very convenient for the AI to index dictionaries of various info by the object ID.
In addition to the turn-to-turn coherence issue mentioned above, it's been my experience that the C++ objects exposed via boost cannot be serialized by python and therefore can't go into the AI savegame state. Also, I seem to recall running into an issue using them as keys for dicts.
It is not trouble for python objects.
Now, probably none of this will reduce your interest in "make auto documentation for API". I agree that extra documentation being available for IDEs would be valuable, but I'm rather wary of adding an extra layer to the interface just for that.
Documentation not for IDE, documentation is for users in html format. It can be extracted via tools.
Do you have any example of the kind of changes you'd be proposing for this?
I will make an example.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0