GetRootElement: Difference between revisions
Jump to navigation
Jump to search
m (→Syntax) |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
This function returns the root node for the [[element tree]], called ''map''. This represents the ''map'' node at the root of the XML document that contains map data. | This function returns the root node for the [[element tree]], called ''map''. This represents the ''map'' node at the root of the XML document that contains map data. | ||
Revision as of 13:45, 31 July 2007
This function returns the root node for the element tree, called map. This represents the map node at the root of the XML document that contains map data.
This is a special element that is consistent across map changes. It is never destroyed and cannot be destroyed using destroyElement. It contains directly, or indirectly every other element in the map.
Syntax
element getRootElement ( void )
Returns
Returns the root element object.
Example
This example will retrieve the version of the currently loaded map, by reading the version argument from the root element of the element tree.
root = getRootElement () version = getElementData ( root, "version" )
See Also
- attachElements
- createElement
- destroyElement
- detachElements
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementByIndex
- getElementByID
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementCollisionsEnabled
- getElementColShape
- getElementData
- getAllElementData
- hasElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementsByType
- getElementsWithinColShape
- getElementsWithinRange
- getElementType
- getElementVelocity
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementWithinColShape
- isElementWithinMarker
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementVelocity
- setLowLODElement
- getPedContactElement
- getResourceDynamicElementRoot
- getResourceRootElement