Properties element
A properties element (<Properties>) is exactly
the same as a RootPropertiesElement
except that these elements have an ancestor element of type RootEntityElement or EntityElement.
Because the ancestor entity element itself requires an entity at node generation time, these elements must
additionally supply a parentpath expression. This parentpath expression must be
a Gosu expression that returns an entity of the same type as the ancestor entity element. The expression can
access a symbol ENTITY, which corresponds to the entity for the node. This symbol automatically
has the appropriate Gosu type for the entity.
<Properties includefromtype="PAVehicleModifier" parentpath="ENTITY">
<PropertyDisplay propertyname="TypeKeyModifier" value="
if (ENTITY.Pattern == "PAPassiveRestraint") {
return (VALUE as PassiveRestraintType).DisplayName
} else if (ENTITY.Pattern == "PAAntiTheft") {
return (VALUE as AntiTheftType).DisplayName
} else {
return VALUE as String
}
"/>
</Properties>
