Table of Contents
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:
-
alias_nameAlias for the type. This can be any string that is a valid XML tag.
-
dflt_valThe default value must match the type specified in TypeDefinition.
For details, see the document Server Programming Guide's section Properties → Default Values.
-
TypeDefinition
For details, see TypeDefinition section.
The grammar for the TypeDefinition section is described below:
{ <primitive_type>
| {ARRAY | TUPLE}
<of> TypeDefinition </of>
| FIXED_DICT
<Properties>
+<field_name>
<Type> TypeDefinition </Type>
</field_name>
</Properties>
?<AllowNone> true|false </AllowNone>
?<implementedBy> custom_type
</implementedBy>
| USER_TYPE <implementedBy> custom_type
</implementedBy>
}Grammar of fantasydemo/res/scripts/entity_defs/alias.xml
|
See the document Server Programming Guide's section Properties → Primitive Types. |
|
|
See the document Server Programming Guide's section Properties → Composite Types → ARRAY and TUPLE Types. |
|
|
See the document Server Programming Guide's section Properties → Composite Types → FIXED_DICT Data Type. |
|
|
See the document Server Programming Guide's section Properties → Custom User Types. |
|
|
See the document Server Programming Guide's section Properties → Custom User Types. |
The list below describes the tags in alias.xml:
-
ARRAY
Alias for a composite ARRAY data type.
For details on ARRAYs, see the document Server Programming Guide's section Properties → Composite Types → ARRAY and TUPLE Types.
-
FIXED_DICT
Alias for a composite FIXED_DICT data type.
For details on FIXED_DICT data types, see the document Server Programming Guide's section Properties → Composite Types → FIXED_DICT Data Type.
-
primitive_typeAlias for a primitive data type.
For a detailed list of primitive data types available to entity properties, see the document Server Programming Guide's section Properties → Primitive Types.
-
TUPLE
Same as ARRAY.
-
USER_TYPE
Alias for a custom user type.
For details on custom user types, see the document Server Programming Guide's section Properties → Custom User Types.
