6,834
edits
m (Mex moved page Element.type to element.type) |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
|returnTypes = int | |returnTypes = int | ||
|readonly = true | |readonly = true | ||
|usage = fetch | |usage = fetch an int containing all [[Shared/Defines/ElementTypes|type]]'s for the element, that is, the derived type along with all base types too.<br>To check if an element is of any one specific type, use [[element.isType|element.isType]] along with an ELEMENT_* define.<br>Even if the type is derived, mods etc may add a class that extends the game's most derived type, and thus [[element.isType|element.isType]] is still preferred. | ||
|returnInfo = the [[Shared/Defines/ElementTypes|type]] of the element | |returnInfo = an int containing the [[Shared/Defines/ElementTypes|type]]'s of the element | ||
}} | }} | ||
edits