<!DOCTYPE html> 0 A.D. entity XML documentation

Entity component documentation

In 0 A.D., entities (units and buildings and other world objects) consist of a collection of components, each of which determines part of the entity's behaviour. Entity template XML files specify the list of components that are loaded for each entity type, plus initialisation data for the components.

This page lists the components that can be added to entities and the XML syntax for their initialisation data.

Available components:

Display RELAX NG grammar fragments
  • #component.
  • Example

    Examples

    RELAX NG Grammar

            
          
        
          
            <
            
            />
    
          
          
            <
            
            >
    
            
              
            
            </
            
            >
    
          
        
      

    Optional.

    .

    .

    Value is one of:

    .

    Required value:

    Value type: text.

    Value type: .

    Value type: .

    non-negative decimal (e.g. 0.0 or 2.5) positive decimal (e.g. 1.0 or 2.5) decimal (e.g. -10.0 or 0.0 or 2.5) non-negative integer (e.g. 0 or 5) positive integer (e.g. 1 or 5) boolean (true or false) 0 < /> > </ > =" " .