示例#1
0
        public void SaveFile(String aFilePath, Entity.EntityData aEntityData, Entity.EntityListXML aEntityList)
        {
            myFilePath = aFilePath;
            myEntityData = aEntityData;
            myEntityList = aEntityList;

            string entityListPath = StringUtilities.GetDataFolderPath(aFilePath) + "Script/LI_list_entity.xml";

            XmlWriterSettings settings = new XmlWriterSettings();
            settings.OmitXmlDeclaration = true;
            settings.Indent = true;

            using (XmlWriter writer = XmlWriter.Create(myFilePath, settings))
            {
                WriteFile(writer);
            }

            using (XmlWriter writer = XmlWriter.Create(entityListPath, settings))
            {
                WriteEntityListFile(writer, myFilePath);
            }
        }
        public void SaveFile(String aFilePath, Entity.EntityData aEntityData, Entity.EntityListXML aEntityList)
        {
            myFilePath   = aFilePath;
            myEntityData = aEntityData;
            myEntityList = aEntityList;

            string entityListPath = StringUtilities.GetDataFolderPath(aFilePath) + "Script/LI_list_entity.xml";

            XmlWriterSettings settings = new XmlWriterSettings();

            settings.OmitXmlDeclaration = true;
            settings.Indent             = true;

            using (XmlWriter writer = XmlWriter.Create(myFilePath, settings))
            {
                WriteFile(writer);
            }

            using (XmlWriter writer = XmlWriter.Create(entityListPath, settings))
            {
                WriteEntityListFile(writer, myFilePath);
            }
        }
 public void Load(Entity.EntityData aEntity)
 {
     myEntity = aEntity;
     LoadSettings();
 }
 public void Load(Entity.EntityData aEntity)
 {
     myEntity = aEntity;
     LoadSettings();
 }