History

First pass

Zach Fox committed 9 years ago

Commit 8bb20091 parent f9a36d613 files · +105 −8Browse files

Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 13 files). Show all

Unified · Split

libraries/script-engine/src/UsersScriptingInterface.cpp+5−0
@@ -42,6 +42,11 @@ bool UsersScriptingInterface::getPersonalMuteStatus(const QUuid& nodeID) { · 41 unmodified lines
42 return DependencyManager::get<NodeList>()->isPersonalMutingNode(nodeID);42 return DependencyManager::get<NodeList>()->isPersonalMutingNode(nodeID);
43}43}
44 44
45void UsersScriptingInterface::setAvatarGain(const QUuid& nodeID, float gain) {
46 // ask the NodeList to set the gain of the specified avatar
47 DependencyManager::get<NodeList>()->setAvatarGain(nodeID, gain);
48}
49
45void UsersScriptingInterface::kick(const QUuid& nodeID) {50void UsersScriptingInterface::kick(const QUuid& nodeID) {
46 // ask the NodeList to kick the user with the given session ID51 // ask the NodeList to kick the user with the given session ID
47 DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID);52 DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID);