LHAsset Reference

LHAsset.lua

Overview

LHAsset class is used to load an asset object from a level file or from the resources folder.

Conforms to:

LHNodeProtocol

LHAnimationsProtocol

LHPhysicsProtocol

Instance Methods

getChildNodeWithUniqueName

local  getChildNodeWithUniqueName(name)
Parameters
name

The node unique name to look for inside the children of the current node.

Discussion

Get the node with the unique name inside the current node.

Declared In
LHAsset.lua

getChildNodeWithUUID

local  getChildNodeWithUUID(_uuid_)
Parameters
<em>uuid</em>

The node unique identifier to look for inside the children of the current node.

Discussion

Get the node with the unique identifier inside the current node.

Declared In
LHAsset.lua

getChildrenOfProtocol

local  getChildrenOfProtocol(protocolType)
Parameters
protocolType

A protocol class type. A string value with the name of one of the available protocols "LHNodeProtocol", "LHAnimationsProtocol", "LHJointsProtocol", "LHPhysicsProtocol"

Discussion

Returns all children nodes that are of specified class type. A table with objects.

Declared In
LHAsset.lua

getChildrenOfType

local  getChildrenOfType(objType)
Parameters
objType

A class type. A string value with the name of the type e.g "LHSprite", "LHNode"

Discussion

Returns all children nodes that are of specified class type. A table with objects.

Declared In
LHAsset.lua

getChildrenWithTags

local  getChildrenWithTags(tagsTable, any)
Parameters
tagsTable

A table of strings containing tag names.

any

Specify if all or just one tag value of the node needs to be in common with the tagsTable passed as argument to this function.

Discussion

Returns all children nodes that have the specified tag values.

Declared In
LHAsset.lua
Last updated: 2015-3-15

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.