6,833
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
|returnTypes = int | |returnTypes = int | ||
|readonly = true | |readonly = true | ||
|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 | |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 = an int containing the [[Shared/Defines/ElementTypes|type]]'s of the element | |returnInfo = an int containing the [[Shared/Defines/ElementTypes|type]]'s of the element | ||
}} | }} |
edits