Example #1
0
        public static void ReadEntityData()
        {
            if (EntityManager == null)
                EntityManager = new EntityDataManager();

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

            foreach (var file in fileNames)
            {
                var data = Serializer.Deserialize<EntityData>(file);
                EntityManager.EntityData.Add(data.Name, data);
            }
        }
Example #2
0
        protected FormDetails()
        {
            InitializeComponent();

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

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

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