public void PostHandle(AttributeInterpreterBase interpreter, AttachedNodeData data, List <string> lines) { var typeId = interpreter.GetType().GetHashCode(); IHandleBooExportInterpreter item; if (!_handlers.TryGetValue(typeId, out item)) { return; } item.PostconditionCode(data, lines); }
private void OnReferencedModified(Node node, AttributeInterpreterBase atttributeName) { var attrId = atttributeName.GetType().GetHashCode(); if (_blackListAttributes.Contains(attrId)) { return; } _lockParent = true; var data = _node.Interpreters[attrId].Serialize(); if (!Parent.Interpreters.ContainsKey(attrId)) { Parent.Interpreters[attrId] = AttributeInterpreterFactory.GetInterpreter(attrId, Parent); } Parent.Interpreters[attrId].Deserialize(data); _lockParent = false; OnModified(); }