MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / restoreMethod

Method restoreMethod

Source/Lua/Methods/CtrlrLuaMethodManager.cpp:211–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void CtrlrLuaMethodManager::restoreMethod (const ValueTree &savedState, const Uuid parentUuid)
212{
213 if ((int)savedState.getProperty(Ids::luaMethodSource) == (int)CtrlrLuaMethod::codeInFile)
214 {
215 addMethodFromFile (getGroupByUuid(parentUuid),
216 owner.getOwner().getLuaMethodSourceFile(&savedState),
217 Uuid(savedState.getProperty(Ids::uuid).toString()));
218 }
219 else
220 {
221 addMethod (getGroupByUuid(parentUuid),
222 savedState.getProperty(Ids::luaMethodName),
223 savedState.getProperty(Ids::luaMethodCode),
224 savedState.getProperty(Ids::luaMethodLinkedProperty),
225 savedState.getProperty(Ids::uuid).toString());
226 }
227}
228
229void CtrlrLuaMethodManager::restoreMethodsRecursivly(const ValueTree &savedState, const Uuid parentUuid)
230{

Callers

nothing calls this directly

Calls 4

getPropertyMethod · 0.45
getOwnerMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected