Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Sep 1, 2021
1 parent cd864d9 commit 3eb375f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ Gets PlaceableObjects with matching tags provided to the method.
`Tagger.getByTag(string|array, options={})`

```
@param {PlaceableObject} inObject The PlaceableObject get tags from
@param {string|array} inTags An array of tags or a string of tags (separated by commas) that will be searched for
@param {PlaceableObject} inOptions An optional object that can contain any of the following:
- matchAll {boolean} - whether the PlaceableObjects must contain all of the provided tags
- caseInsensitive {boolean} - whether the search is case insensitive (capitals vs lowercase is not considered)
- objects {array} - an array of PlaceableObjects to test
- ignore {array} - an array of PlaceableObjects to ignore
- sceneId {string} - a string ID for the scene to search in
@returns {array} An array of tags from the PlaceableObject
@returns {Promise} A promise that will resolve when all PlaceableObjects have been found, returning an array of PlaceableObjects
```

Examples:
Expand All @@ -39,15 +45,9 @@ Gets all tags from a given PlaceableObject
`Tagger.getTags(PlaceableObject)`

```
@param {string|array} inTags An array of tags or a string of tags (separated by commas) that will be searched for
@param {PlaceableObject} inOptions An optional object that can contain any of the following:
- matchAll {boolean} - whether the PlaceableObjects must contain all of the provided tags
- caseInsensitive {boolean} - whether the search is case insensitive (capitals vs lowercase is not considered)
- objects {array} - an array of PlaceableObjects to test
- ignore {array} - an array of PlaceableObjects to ignore
- sceneId {string} - a string ID for the scene to search in
@param {PlaceableObject} inObject The PlaceableObject get tags from
@returns {Promise} A promise that will resolve when all PlaceableObjects have been found, returning an array of PlaceableObjects
@returns {array} An array of tags from the PlaceableObject
```

### Set Tags
Expand Down

0 comments on commit 3eb375f

Please sign in to comment.