Class: AIInterface

AIInterface()

new AIInterface()

Source:

Methods

Disable()

Disable all registering functions for this component Gets called in case no AI players are present to save resources
Source:

GetFullRepresentation()

Intended to be called first, during the map initialization: no caching
Source:

OnTemplateModification()

When a new technology is researched, check which templates it affects, and send the updated values to the AI. this relies on the fact that any "value" in a technology can only ever change one template value, and that the naming is the same (with / in place of .)
Source:

PushEvent()

AIProxy sets up a load of event handlers to capture interesting things going on in the world, which we will report to AI. Handle those, and add a few more handlers for events that AIProxy won't capture.
Source: