AI Agent =========== .. code-block:: csharp public sealed class AIAgent : UnitLogicModule Stores actual unit AI state, like its orders queue, AI enabled state, etc. This is the module used to give orders to a unit (move, attack, follow, etc) and to react to them. You normally get it from a unit as ``unit.AI`` (or ``SelfUnit.AI``, if you're inside a unit module): .. code-block:: csharp SelfUnit.AI.AddOrder(moveOrder); The current orders queue is exposed as ``Orders`` (a ``List``) — the order at index ``0`` is the currently active/executing one. .. toctree:: :glob: *