bw logo

Chapter 2. alias.xml

Table of Contents

2.1. TypeDefinition section

For more details on alias.xml, see the document Server Programming Guide's section Properties Property Types Alias of Data Types.

Used to create alias for data types and located under fantasydemo/res/scripts/entity_defs, the grammar of alias.xml is described below:

<root>
  *<alias_name> TypeDefinition 
     ?<Default>  dflt_val  </Default>
   </alias_name>
</root>

Grammar of fantasydemo/res/scripts/entity_defs/alias.xml

The list below describes the tags in alias.xml:

2.1. TypeDefinition section

The grammar for the TypeDefinition section is described below:

{ <primitive_type>1

| {ARRAY | TUPLE}2 <of> TypeDefinition </of>

| FIXED_DICT3
    <Properties> 
      +<field_name>
          <Type>  TypeDefinition  </Type>
       </field_name>
    </Properties> 
   ?<AllowNone>     true|false  </AllowNone>
   ?<implementedBy> custom_type4 </implementedBy>

| USER_TYPE <implementedBy> custom_type5 </implementedBy>

}

Grammar of fantasydemo/res/scripts/entity_defs/alias.xml

The list below describes the tags in alias.xml: