public Sprite(Project project) { Project = project; scripts = new ScriptList(this); costumes = new CostumeList(this); sounds = new SoundList(this); }
public DataObject Copy(Sprite parent) { var newCostumeDataList = new CostumeList(parent); foreach (Costumes.Costume costume in Costumes) newCostumeDataList.Costumes.Add(costume.Copy(parent) as Costumes.Costume); return newCostumeDataList; }
internal override void LoadFromXML(XElement xRoot) { if (xRoot.Element("costumeDataList") != null) costumes = new CostumeList(xRoot.Element("costumeDataList"), this); name = xRoot.Element("name").Value; if (xRoot.Element("soundList") != null) sounds = new SoundList(xRoot.Element("soundList"), this); if (xRoot.Element("scriptList") != null) scripts = new ScriptList(xRoot.Element("scriptList"), this); }