HU/Element: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Добавление языков)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Needs_Checking|Water must be considered as an element}}
Egy '''elem''' az egy faji osztály, amely majdnem az összes játékban szereplő [[Entity|entitást]] képviseli. A beépített elemtípusok a következők:


An '''element''' is a generic class that can represent almost all in-game [[entity|entities]]. The built-in element types are:
{{Elements hu}}
 
{{Elements}}


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.
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.
Line 13: Line 11:
==Related scripting functions==
==Related scripting functions==
===Client===
===Client===
{{Client element functions}}
{{Client element functions hu}}
===Server===
===Server===
{{Element functions}}
{{Element functions hu}}
[[Category:Scripting Concepts]]
[[Category:Translated/Scripting Concepts]]


[[en:Element]]
[[en:Element]]
[[it:Elemento]]
[[ru:Element]]
[[ru:Element]]
[[es:Elemento]]
[[es:Elemento]]
[[it:Elemento]]
[[hu:Element]]

Latest revision as of 19:53, 14 April 2021

Egy elem az egy faji osztály, amely majdnem az összes játékban szereplő entitást képviseli. A beépített elemtípusok a következők:

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

ADDED/UPDATED IN VERSION 1.6.0 r22741:
ADDED/UPDATED IN VERSION 1.6.0 r22741:

Server