Entities are objects in the game world that participate in gameplay, such as units, buildings, and resource nodes (as opposed to purely decorative objects such as grass patches). Each entity can have a number of properties that are available to the game engine and game scripts. Entity properties are specified in XML files in `binaries/data/mods/official/entities` and its subdirectories. Because many objects have similar properties (for example, all infantry tend to have the same speed, all spearmen tend to have the same armour, etc), the entity files use inheritance to let you import traits from a "template" and just modify the ones you wish to change. Each file has a parent specified in the `` tag and inherits that parent's properties, then any properties set or modified in its own XML file are applied on top of that. Currently, the `template_*` entities in `binaries/data/mods/official/entities`, such as `template_unit_infantry_spearman`, hold most of the traits, and the civilization-specific entities in `binaries/data/mods/official/entities/[civ]`, such as `celt_infantry_spearman`, just inherit from them. The root parent for most entities is `template_entity_full`. Some very simple entities, such as trees, also have `template_entity_quasi`, which defines fewer event handlers and properties and is therefore more efficient to load. '''Example:''' {{{ Infantry Spearman Caldeer sheet_civ 42 Unit, Infantry, Melee, Organic, CitizenSoldier, Male Celts blah blah Support Defend Ground 2.0 1.0 0.0 2 1 3 1.5 3.0 3.0 7.5 Melee Loose 6 -1.0 20 2.0 5.0 15.0 5.0 7 28 bar.dds -1.0 20 2.0 7 28 bar.dds 200 1 1 1 1 Unit 100 200 50 1 1 900 bob (only if you want to do something other than normal rank progression) 7.0 17 -1.0 50 food fruit 4 20 5 20 5 20 50 30 5 2000 8 1000 3 20.0 0.0 0.5 0.5 6 .2 0.03 -0.03 9 .2 structures/celts/civil_centre.xml 0.0 5.0 5.0 2.0 1500 civil_centre;farmstead;house;mill;market;temple barracks;dock;fortress;scout_tower;wall;wall_gate;wall_tower infantry_swordsman_b;infantry_spearman_b;infantry_javelinist_b; infantry_archer_b;infantry_slinger_b;cavalry_swordsman_b; cavalry_spearman_b;cavalry_javelinist_b;cavalry_archer_b; female_citizen bob 100 3000 3000 3000 3000 3000 3000 3000 2.0 5.0 0.0 10.0 5.5 2.0 10.0 5.0