mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 04:01:51 +02:00
JSDocs
This commit is contained in:
parent
6d72881f3f
commit
e2cb96193d
1 changed files with 13 additions and 0 deletions
|
@ -149,6 +149,19 @@ public:
|
|||
const QVector<EntityItemID>& entityIdsToInclude, const QVector<EntityItemID>& entityIdsToDiscard,
|
||||
bool visibleOnly, bool collidableOnly);
|
||||
|
||||
/**jsdoc
|
||||
* Get the properties of multiple entities.
|
||||
* @function Entities.getMultipleEntityProperties
|
||||
* @param {Uuid[]} entityIDs - The IDs of the entities to get the properties of.
|
||||
* @param {string[]|string} [desiredProperties=[]] - Either string with property name or array of the names of the properties
|
||||
* to get. If the array is empty, all properties are returned.
|
||||
* @returns {Entities.EntityProperties[]} The properties of the entity if the entity can be found, otherwise an empty object.
|
||||
* @example <caption>Retrieve the names of the nearby entities</caption>
|
||||
* var SEARCH_RADIUS = 50; // meters
|
||||
* var entityIds = Entities.findEntities(MyAvatar.position, SEARCH_RADIUS);
|
||||
* var propertySets = Entities.getMultipleEntityProperties(entityIds, "name");
|
||||
* print("Nearby entity names: " + JSON.stringify(propertySets));
|
||||
*/
|
||||
static QScriptValue getMultipleEntityProperties(QScriptContext* context, QScriptEngine* engine);
|
||||
QScriptValue getMultipleEntityPropertiesInternal(QScriptEngine* engine, QVector<QUuid> entityIDs, const QScriptValue& extendedDesiredProperties);
|
||||
public slots:
|
||||
|
|
Loading…
Reference in a new issue