| 227 | } |
| 228 | |
| 229 | void CtrlrLuaMethodManager::restoreMethodsRecursivly(const ValueTree &savedState, const Uuid parentUuid) |
| 230 | { |
| 231 | for (int i=0; i<savedState.getNumChildren(); i++) |
| 232 | { |
| 233 | if (savedState.getChild(i).hasType(Ids::luaMethodGroup)) |
| 234 | { |
| 235 | restoreMethodsRecursivly (savedState.getChild(i), parentUuid); |
| 236 | } |
| 237 | |
| 238 | if (savedState.getChild(i).hasType(Ids::luaMethod)) |
| 239 | { |
| 240 | restoreMethod (savedState.getChild(i), savedState.getProperty(Ids::uuid).toString()); |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | void CtrlrLuaMethodManager::addMethod (ValueTree groupToAddTo, const String &methodName, const String &initialCode, const String &linkedToProperty, const Uuid methodUid, const bool forceIfAlreadyExists) |
| 246 | { |
nothing calls this directly
no test coverage detected