Пример #1
0
        public override ImportContentData Import(string filename,
                                                 ContentImporterContext context)
        {
            Stream stream = File.OpenRead(Path.Combine("Content", filename));

            XmlTextReader reader     = new XmlTextReader(stream);
            XmlSerializer serializer = new XmlSerializer(typeof(ParticleSequenceInfo));

            ParticleSequenceInfo info =
                (ParticleSequenceInfo)serializer.Deserialize(reader);

            return(new ImportContentData(info));
        }
Пример #2
0
 public ImportContentData(ParticleSequenceInfo data)
 {
     this.data = data;
 }
Пример #3
0
 public WriteContentData(ParticleSequenceInfo data)
 {
     this.data = data;
 }
Пример #4
0
 public ImportContentData()
 {
     this.data = new ParticleSequenceInfo();
 }
Пример #5
0
 public WriteContentData()
 {
     this.data = new ParticleSequenceInfo();
 }