|
|
| Sponsored by Magnetar Games | Main - Specification - Forum - Syntax |
|
XGC News Best Practices Documentation Discussion Forum About XGC Search Contact Us MORPH XGame/ABG XGame/RPS XRealm XScene XTheme MAGNETAR |
MORPH Syntax
The Prototypes element allows the early-bound instance document to create
prototype classes. Although not explicitly shown here, a DSL may use
nesting within the Prototypes section to create a metanode structure.
Therefore, ClassSet and Class
elements may be nested in any combination.
This is an optional category container for prototypes. The name of the element
may be the class name appended with "Set" or it may be the class's
PluralName. The ClassSet element
is optional on all levels and may be omitted by the DSL.
The Class element takes on the name of the actual class. It is under
the Class element that the product instance document actually declares
its prototypes. There should be an entry under Prototypes for every
class which can be prototyped. The Class element should be given
all attributes which apply to the appropriate class, through use of
<xs:attributeGroup ref="ClassNameAttrs"/> and/or
<xs:group ref="ClassNameGroupAttrs"/>.
This element allows a product to assign a value to the user attributes which
it has added to classes.
|