Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }