internal static InternalBiaNodeLinkData InternalData(this IBiaNodeLink self) { InternalBiaNodeLinkData internalData; if (self.InternalData == null) { internalData = new InternalBiaNodeLinkData { Slot1 = self.ItemSlot1.FindSlot(), Slot2 = self.ItemSlot2.FindSlot() }; self.InternalData = internalData; } else { internalData = (InternalBiaNodeLinkData)self.InternalData; } return(internalData); }
internal static InternalBiaNodeLinkData InternalData(this IBiaNodeLink self) { InternalBiaNodeLinkData internalData; if (self.InternalData is null) { internalData = new InternalBiaNodeLinkData { Slot1 = self.SourceSlot.FindSlot(), Slot2 = self.TargetSlot.FindSlot() }; self.InternalData = internalData; } else { internalData = (InternalBiaNodeLinkData)self.InternalData; } return(internalData); }