No script work yet, just first stab at underpinnings
Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 12 files). Show all
Unified · Split
| @@ -29,6 +29,11 @@ void UsersScriptingInterface::kick(const QUuid& nodeID) { · 28 unmodified lines | ||
| 29 | 29 | DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | +void UsersScriptingInterface::mute(const QUuid& nodeID) { | |
| 33 | + // ask the NodeList to mute the user with the given session ID | |
| 34 | + DependencyManager::get<NodeList>()->muteNodeBySessionID(nodeID); | |
| 35 | +} | |
| 36 | + | |
| 32 | 37 | bool UsersScriptingInterface::getCanKick() { |
| 33 | 38 | // ask the NodeList to return our ability to kick |
| 34 | 39 | return DependencyManager::get<NodeList>()->getThisNodeCanKick(); |