AI:APISuggestions

From OpenTTD

Jump to: navigation, search


Here is a list of suggestions to extend/change the AI API before it becomes stable. The goal is to improve sustainability and to reduce the chance of needing to break the API in the future. If you miss any functions, please make a topic in the NoAI subforum.

Vehicles

  • Support for timetables;

AIAbstractList

  • Create an enum for the second parameter to Sort (bool ascending).
    • You can use this code as workaround (put in Start, before using it). You can now use AIAbstractList.SORT_ASCENDING and descending as if it was part of the api.
AIAbstractList.SORT_ASCENDING <- true;
AIAbstractList.SORT_DESCENDING <- false;
Personal tools