forked from 0ad/0ad
Ykkrosh
b8925fbbc9
Pass terrain passability data to AI scripts. Expand pathfinder passability data to 16 bits per tile, to allow more classes. Support 16-bit ints in serializer. Partially support JS typed arrays. Allow foundations to be placed on top of units (fixes #499). Stop farms and fishes blocking movement (fixes #534). Add obstruction flags to allow finer control over what they block. Associate entity IDs with obstruction shapes, to allow finding colliding entities. Support moving to the edge of a target entity with inactive obstruction. Support foundation entities in AI. Support playing as non-hele civs. This was SVN commit r8899.
26 lines
669 B
XML
26 lines
669 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Entity>
|
|
<VisualActor>
|
|
<Actor>example</Actor>
|
|
</VisualActor>
|
|
<Selectable/>
|
|
<Position>
|
|
<Altitude>0</Altitude>
|
|
<Anchor>upright</Anchor>
|
|
<Floating>false</Floating>
|
|
</Position>
|
|
<UnitAI/>
|
|
<Footprint>
|
|
<Circle radius="4"/>
|
|
<Height>1.0</Height>
|
|
</Footprint>
|
|
<Obstruction>
|
|
<Unit radius="4"/>
|
|
<Active>true</Active>
|
|
<BlockMovement>true</BlockMovement>
|
|
<BlockPathfinding>false</BlockPathfinding>
|
|
<BlockFoundation>false</BlockFoundation>
|
|
<BlockConstruction>true</BlockConstruction>
|
|
</Obstruction>
|
|
</Entity>
|