mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:49:27 +02:00
Agent JSDoc tidying
This commit is contained in:
parent
7f1ae63439
commit
0c59f983da
1 changed files with 9 additions and 3 deletions
|
@ -63,21 +63,27 @@ public:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Set whether or not the script should emulate an avatar.
|
* Sets whether or not the script should emulate an avatar.
|
||||||
* @function Agent.setIsAvatar
|
* @function Agent.setIsAvatar
|
||||||
* @param {boolean} isAvatar - <code>true</code> if the script should act as if an avatar, otherwise <code>false</code>.
|
* @param {boolean} isAvatar - <code>true</code> if the script should act as if an avatar, otherwise <code>false</code>.
|
||||||
|
* @example <caption>Make an assignment client script emulate an avatar.</caption>
|
||||||
|
* (function () {
|
||||||
|
* Agent.setIsAvatar(true);
|
||||||
|
* Avatar.displayName = "AC avatar";
|
||||||
|
* print("Position: " + JSON.stringify(Avatar.position)); // 0, 0, 0
|
||||||
|
* }());
|
||||||
*/
|
*/
|
||||||
void setIsAvatar(bool isAvatar) const { _agent->setIsAvatar(isAvatar); }
|
void setIsAvatar(bool isAvatar) const { _agent->setIsAvatar(isAvatar); }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Check whether or not the script is emulating an avatar.
|
* Checks whether or not the script is emulating an avatar.
|
||||||
* @function Agent.isAvatar
|
* @function Agent.isAvatar
|
||||||
* @returns {boolean} <code>true</code> if the script is acting as if an avatar, otherwise <code>false</code>.
|
* @returns {boolean} <code>true</code> if the script is acting as if an avatar, otherwise <code>false</code>.
|
||||||
*/
|
*/
|
||||||
bool isAvatar() const { return _agent->isAvatar(); }
|
bool isAvatar() const { return _agent->isAvatar(); }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Play a sound from the position and with the orientation of the emulated avatar's head. No sound is played unless
|
* Plays a sound from the position and with the orientation of the emulated avatar's head. No sound is played unless
|
||||||
* <code>isAvatar == true</code>.
|
* <code>isAvatar == true</code>.
|
||||||
* @function Agent.playAvatarSound
|
* @function Agent.playAvatarSound
|
||||||
* @param {SoundObject} avatarSound - The sound to play.
|
* @param {SoundObject} avatarSound - The sound to play.
|
||||||
|
|
Loading…
Reference in a new issue