enumType

Returns the type of an object as an enum integer. This includes standard Lua types and userdata types specific to this API.

Kind: Function

Environments: Game, Terrain

Game

enumType( object )

Open the full Game reference

Parameters:

Name Type Description
object any The object instance.

Returns:

Type Description
integer The object type.

Terrain

enumType( object )

Open the full Terrain reference

Parameters:

Name Type Description
object any The object instance.

Returns:

Type Description
integer The object type.