Exemple #1
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 #2
0
 public static void ReadSkillData()
 {
     skillManager = new SkillDataManager();
     string[] fileNames = Directory.GetFiles(FormMain.SkillPath, "*.xml");
     foreach (string s in fileNames)
     {
         SkillData chestData = XnaSerializer.Deserialize<SkillData>(s);
         skillManager.SkillData.Add(chestData.Name, chestData);
     }
 }
Exemple #3
0
        public static void ReadSkillData()
        {
            SkillDataManager = new SkillDataManager();

            string[] fileNames = Directory.GetFiles(FormMain.skillPath, "*.xml");
            foreach (string s in fileNames)
            {
                SkillData skillData = XNASerializer.Deserialize<SkillData>(s);
                SkillDataManager.Dictionary.Add(skillData.Name, skillData);
            }
        }