Tag

Tag identifiers that can be added to Entities

new ocs.Tag(name);


Parameter Type Description
name String / Number the unique name of the Tag

Methods

Properties


Methods

getEntities

return an array with all the entities that have this Tag

ocs.Tag.getEntities();

printEntities

return an array with the names all the entities that have this Tag

ocs.Tag.printEntities();

destroy

destroy this Tag and remove it from all Entities

ocs.Tag.destroy();


Properties

name

Reference to the name of the tag

ocs.Tag.name