History

personal space feature

Brad Hefta-Gaub committed 9 years ago

Commit fe709f51 parent e9563ef20 files · +557 −21Browse files

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

Unified · Split

libraries/script-engine/src/UsersScriptingInterface.cpp+24−0
@@ -38,3 +38,27 @@ bool UsersScriptingInterface::getCanKick() { · 37 unmodified lines
38 // ask the NodeList to return our ability to kick38 // ask the NodeList to return our ability to kick
39 return DependencyManager::get<NodeList>()->getThisNodeCanKick();39 return DependencyManager::get<NodeList>()->getThisNodeCanKick();
40}40}
41
42void UsersScriptingInterface::toggleIgnoreRadius() {
43 DependencyManager::get<NodeList>()->toggleIgnoreRadius();
44}
45
46void UsersScriptingInterface::enableIgnoreRadius() {
47 DependencyManager::get<NodeList>()->enableIgnoreRadius();
48}
49
50void UsersScriptingInterface::disableIgnoreRadius() {
51 DependencyManager::get<NodeList>()->disableIgnoreRadius();
52}
53
54void UsersScriptingInterface::setIgnoreRadius(float radius, bool enabled) {
55 DependencyManager::get<NodeList>()->ignoreNodesInRadius(radius, enabled);
56}
57
58 float UsersScriptingInterface::getIgnoreRadius() {
59 return DependencyManager::get<NodeList>()->getIgnoreRadius();
60}
61
62bool UsersScriptingInterface::getIgnoreRadiusEnabled() {
63 return DependencyManager::get<NodeList>()->getIgnoreRadiusEnabled();
64}