District
Instance
This file is a description of an Instance’s Metatable. There is no accessible variable of this name. Most of its methods will expect an implicit “self” argument and should be invoked with a :.
Methods
| Script | UI | Returns | . or : | Name | Arguments |
|---|---|---|---|---|---|
| ✓ | : | CanAttack | |||
| ✓ | : | ChangeDamage | |||
| ✓ | : | GetAdjacencyYield | |||
| ✓ | : | GetAirSlots | |||
| ✓ | : | GetAirUnitCount | |||
| ✓ | : | GetAirUnits | |||
| ✓ | : | GetAttackStrength | |||
| ✓ | : | GetBaseDefenseStrength | |||
| ✓ | ✓ | City | : | GetCity | |
| ✓ | : | GetComponentID | |||
| ✓ | ✓ | : | GetDamage | ||
| ✓ | ✓ | : | GetDefenseStrength | ||
| ✓ | : | GetExtraRegionalEntertainment | |||
| ✓ | : | GetExtraRegionalRange | |||
| ✓ | ✓ | : | GetID | ||
| ✓ | ✓ | : | GetLocation | ||
| ✓ | ✓ | : | GetMaxDamage | ||
| ✓ | ✓ | : | GetOwner | ||
| ✓ | : | GetProperty | |||
| ✓ | : | GetReligionHealRate | |||
| ✓ | ✓ | : | GetType | ||
| ✓ | ✓ | : | GetX | ||
| ✓ | ✓ | : | GetY | ||
| ✓ | ✓ | : | GetYield | ||
| ✓ | ✓ | : | IsComplete | ||
| ✓ | ✓ | : | IsPillaged | ||
| ✓ | : | IsUnderSiege | |||
| ✓ | : | SetDamage | |||
| ✓ | : | SetPillaged | |||
| ✓ | : | SetProperty |