Category:Элемент

From Multi Theft Auto: Wiki
Revision as of 10:23, 13 September 2009 by Divine (talk | contribs)
Jump to navigation Jump to search

Элемент - общий класс, отражающий почти все внитриигровые объекты. Встроенными типами элементов являются:

ADDED/UPDATED IN VERSION 1.6.0 r22410:
Warning.png This page requires local translation. If page will remain not translated in reasonable period of time it would be deleted.
After translating the page completely, please remove the ‎{{translate}}‎ tag from the page.

Any other element type can be created as an abstract element, not referring to any game entity. For example, resource and map elements are created when resources and maps are loaded to group entities they create as their children.

Elements share common functions such as type and list retrieval, a destroy operation to remove both the element and the game entity it is linked to (except for some elements which can't be destroyed, for example client elements), element data storing and retrieval, and many more common operations.

All elements are stored internally in a tree structure, and as such every element except the root element has a parent element, that can be the root element, a resource, map or another element. This is purely for declaring the scope of function calls.

Related scripting functions

Client



Server