Skip to main content

Tag

Tag

Stores textual tags, useful for marking entities

Kind: global class

tag.count ⇒ number

Kind: instance property of Tag

tag.get(i) ⇒ String

Kind: instance method of Tag

ParamType
inumber

tag.add(value) ⇒ boolean

Once the tag is added to the dataset it should be considered immutable, hence why this method is protected

Kind: instance method of Tag

ParamType
valueString

tag.addAll(values)

Add multiple tags

Kind: instance method of Tag

ParamType
valuesArray.<string>

tag.getFirst() ⇒ String

Kind: instance method of Tag

tag.contains(value) ⇒ boolean

Kind: instance method of Tag

ParamType
valueString

tag.containsAll(values)

Kind: instance method of Tag

ParamType
valuesArray.<string>

tag.containsOneOf(values) ⇒ boolean

Kind: instance method of Tag

ParamType
valuesArray.<String>

tag.getValues() ⇒ Array.<string>

NOTE: do not modify this value

Kind: instance method of Tag

tag.traverse(visitor, [thisArg])

Kind: instance method of Tag

ParamType
visitorfunction
[thisArg]*

tag.hash() ⇒ number

Kind: instance method of Tag

tag.equals(other) ⇒ boolean

Kind: instance method of Tag

ParamType
otherTag

tag.fromJSON(json)

Kind: instance method of Tag

ParamType
jsonArray.<string> | string

Tag.typeName : string

Kind: static property of Tag
Read only: true

Tag.find(tags, ecd) ⇒ Array.<number>

Find all entities that contain specified tags. Entity must have every tag to qualify

Kind: static method of Tag
Returns: Array.<number> - entities

ParamType
tagsArray.<string>
ecdEntityComponentDataset

Tag.fromOne(tag) ⇒ Tag

Kind: static method of Tag

ParamType
tagstring

Tag.fromJSON(json) ⇒ Tag

Kind: static method of Tag

Param
json