mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
Merge pull request #13047 from ctrlaltdavid/21856-b
Fix JSDoc for Entities.findEntitiesByName
This commit is contained in:
commit
a2e2b2cb8c
1 changed files with 8 additions and 7 deletions
|
@ -390,17 +390,18 @@ public slots:
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Find all entities of a particular name that intersect a sphere defined by a center point and radius.
|
* Find all entities of a particular name that intersect a sphere defined by a center point and radius.
|
||||||
* @function Entities.findEntitiesByName
|
* @function Entities.findEntitiesByName
|
||||||
* @param {Entities.EntityType} entityName - The name of the entity to search for.
|
* @param {string} entityName - The name of the entity to search for.
|
||||||
* @param {Vec3} center - The point about which to search.
|
* @param {Vec3} center - The point about which to search.
|
||||||
* @param {number} radius - The radius within which to search.
|
* @param {number} radius - The radius within which to search.
|
||||||
* @param {boolean} caseSensitiveSearch - Choose whether to to return case sensitive results back.
|
* @param {boolean} [caseSensitive=false] - If <code>true</code> then the search is case-sensitive.
|
||||||
* @returns {Uuid[]} An array of entity IDs of the specified type that intersect the search sphere. The array is empty if
|
* @returns {Uuid[]} An array of entity IDs that have the specified name and intersect the search sphere. The array is empty
|
||||||
* no entities could be found.
|
* if no entities could be found.
|
||||||
* @example <caption>Get back a list of entities</caption>
|
* @example <caption>Report the number of entities with the name, "Light-Target".</caption>
|
||||||
* var entityIDs = Entities.findEntitiesByName("Light-Target", MyAvatar.position, 10, false);
|
* var entityIDs = Entities.findEntitiesByName("Light-Target", MyAvatar.position, 10, false);
|
||||||
* print("Number of Entities with the name Light-Target " + entityIDs.length);
|
* print("Number of entities with the name "Light-Target": " + entityIDs.length);
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE QVector<QUuid> findEntitiesByName(const QString entityName, const glm::vec3& center, float radius, bool caseSensitiveSearch = false ) const;
|
Q_INVOKABLE QVector<QUuid> findEntitiesByName(const QString entityName, const glm::vec3& center, float radius,
|
||||||
|
bool caseSensitiveSearch = false ) const;
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Find the first entity intersected by a {@link PickRay}. <code>Light</code> and <code>Zone</code> entities are not
|
* Find the first entity intersected by a {@link PickRay}. <code>Light</code> and <code>Zone</code> entities are not
|
||||||
|
|
Loading…
Reference in a new issue