Exemple #1
0
        public static void ReadEntityData()
        {
            EntityDataManager = new EntityDataManager();

            string[] fileNames = Directory.GetFiles(FormMain.classPath, "*.xml");

            foreach (string s in fileNames)
            {
                EntityData entityData = XNASerializer.Deserialize<EntityData>(s);
                EntityDataManager.EntityData.Add(entityData.EntityName, entityData);
            }
        }
Exemple #2
0
        public FormDetails()
        {
            InitializeComponent();

            if (ItemDataManager == null)
                ItemDataManager = new ItemDataManager();

            if (EntityDataManager == null)
                EntityDataManager = new EntityDataManager();

            if (SkillDataManager == null)
                SkillDataManager = new SkillDataManager();

            this.FormClosing += new FormClosingEventHandler(FormDetails_FormClosing);
        }
Exemple #3
0
        public FormDetails()
        {
            InitializeComponent();

            if (FormDetails.ItemManager == null)
            {
                ItemManager = new ItemDataManager();
            }

            if (FormDetails.EntityDataManager == null)
            {
                EntityDataManager = new EntityDataManager();
            }

            this.FormClosing += new FormClosingEventHandler(FormDetails_FormClosing);
        }
Exemple #4
0
        public static void ReadEntityData()
        {
            entityDataManager = new EntityDataManager();

            string[] fileNames = Directory.GetFiles(FormMain.ClassPath, "*.xml");

            foreach (string s in fileNames)
            {
                EntityData entityData = XnaSerializer.Deserialize<EntityData>(s);
                if (!entityDataManager.EntityData.ContainsKey(entityData.EntityName))
                {
                    //EntityData entityData = XnaSerializer.Deserialize<EntityData>(s);
                    entityDataManager.EntityData.Add(entityData.EntityName, entityData);
                }
            }
        }