Beispiel #1
0
        protected FormDetails()
        {
            InitializeComponent();

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

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

            if (SkillManager == null)
                SkillManager = new SkillDataManager();
        }
Beispiel #2
0
        public static void ReadSkillData()
        {
            if (SkillManager == null)
                SkillManager = new SkillDataManager();

            string[] files = Directory.GetFiles(FormMain.SkillPath, "*.skill");

            foreach (var data in files.Select(Serializer.Deserialize<SkillData>))
                SkillManager.SkillData.Add(data.Name, data);
        }