|
|
| 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 Instances section holds data which represents a snapshot of a simulation.
The element may contain any sequence of nesting of
ClassSet and Class elements
as desired by the DSL to create
a metanode structure for the instance data.
The Instances section would not occur in a product definition file, but rather
in scenario files.
However the <Instances> element must be declared in the DSL's
schema for validation purposes.
This is an optional category container for instances. 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.
The Instance element represents an instance of an object.
Thus this should contain all of the attributes which are valid
on instance documents. These are assigned 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.
|