Class: AIInterface

AIInterface()

new AIInterface()

Source:

Members

ChangedEntity

Source:

EventNames

Source:

OnGlobalEntityRenamed

Source:

OnGlobalPlayerDefeated

Source:

OnGlobalTributeExchanged

Source:

OnGlobalValueModification

Source:

OnTemplateModification

Source:

PushEvent

Source:

Schema

Source:

[undefined]

Source:

changedEntities

Source:

changedEntities

Source:

changedEntities

Source:

changedEntities[undefined]

Source:

changedEntityTemplateInfo

Source:

changedEntityTemplateInfo

Source:

changedEntityTemplateInfo

Source:

changedEntityTemplateInfo[undefined]

Source:

changedTemplateInfo

Source:

changedTemplateInfo

Source:

changedTemplateInfo

Source:

changedTemplateInfo[undefined]

Source:

changedTemplateInfo[undefined][undefined]

Source:

enabled

Source:

enabled

Source:

events

Source:

events[undefined]

Source:

events[undefined]

Source:

templates

Source:

Methods

ChangedEntity()

Source:

Deserialize()

Source:

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:

GetNonEntityRepresentation()

Source:

GetRepresentation()

Source:

Init()

Source:

OnCeasefireEnded()

Source:

OnDiplomacyChanged()

Source:

OnGlobalEntityRenamed()

Source:

OnGlobalPlayerDefeated()

Source:

OnGlobalTributeExchanged()

Source:

OnGlobalValueModification()

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:

OnTerritoriesChanged()

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:

Serialize()

Source: