示例#1
0
 public void ProcessAnnotations(ProcessAnnotationArgs args)
 {
     if (_processAnnotationsFunc != null)
     {
         try
         {
             var runtime_storage = new PythonRuntimeStorageWrapper(args.RuntimeStorage);
             _processAnnotationsFunc(runtime_storage);
         }
         catch (Exception e)
         {
             throw PythonScriptHost.Instance.GetFormattedException(e, Name);
         }
     }
 }
示例#2
0
 public PrefabSingleInterpretArgs(MutableTree tree, IRuntimeStorage runtimeStorage)
 {
     Tree           = tree;
     RuntimeStorage = new PythonRuntimeStorageWrapper(runtimeStorage);
 }