Esempio n. 1
0
        public DataObject Copy(Sprite parent)
        {
            var newLoopBeginBrickRef = new LoopBeginBrickRef(parent);
            newLoopBeginBrickRef.classField = classField;
            newLoopBeginBrickRef.reference = reference;
            newLoopBeginBrickRef.loopBeginBrick = XPathHelper.getElement(reference, sprite) as LoopBeginBrick;

            return newLoopBeginBrickRef;
        }
Esempio n. 2
0
 internal override void LoadFromXML(XElement xRoot)
 {
     if (xRoot.Element("loopBeginBrick") != null)
         loopBeginBrickReference = new LoopBeginBrickRef(xRoot.Element("loopBeginBrick"), sprite);
 }
Esempio n. 3
0
 public void CopyReference(LoopEndBrick copiedFrom, Sprite parent)
 {
     if (copiedFrom.loopBeginBrickReference != null)
         loopBeginBrickReference = copiedFrom.loopBeginBrickReference.Copy(parent) as LoopBeginBrickRef;
 }