void NodeUnselectedCallback(PWNode node) { if (node == this) { isSelected = false; } }
void NodeSelectedCallback(PWNode node) { if (node == this) { isSelected = true; } }
public void Reload(PWNode from) { if (isProcessing) { Debug.LogError("Tried to reload a node from a processing pass !"); return; } if (OnReload != null) { OnReload(from); } if (OnPostReload != null) { OnPostReload(from); } }
public void RemoveLinkFromNode(PWNode node) { List <PWNodeLink> linkToRemove = new List <PWNodeLink>(); //search in input anchors: foreach (var anchor in inputAnchors) { linkToRemove.AddRange(anchor.links.Where(l => l.toNode == node)); } //search in output anchors: foreach (var anchor in outputAnchors) { linkToRemove.AddRange(anchor.links.Where(l => l.fromNode == node)); } foreach (var link in linkToRemove) { RemoveLink(link); } }
public void SendMessage(PWNode target, object message) { target.OnMessageReceived(this, message); }
public void NotifyReload(PWNode node) { node.Reload(this); }