예제 #1
0
파일: Sprite.cs 프로젝트: msachs/TestRepo2
 public Sprite(Project project)
 {
     Project = project;
     scripts = new ScriptList(this);
     costumes = new CostumeList(this);
     sounds = new SoundList(this);
 }
예제 #2
0
        public DataObject Copy(Sprite parent)
        {
            var newScriptList = new ScriptList(parent);
            foreach (Script script in Scripts)
                newScriptList.Scripts.Add(script.Copy(parent) as Script);

            return newScriptList;
        }
예제 #3
0
파일: Sprite.cs 프로젝트: msachs/TestRepo2
        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);
        }