Example #1
0
        public Worker(XDocument xmlGame, XDocument xmlEdit, FileContainer root)
        {
            Configuration.Initialize(xmlEdit);
            this.config = Configuration.GetInstance();
            FileManager.Initialize(root, FileInfoCollection.FromXml(xmlGame));
            this.fileManager = FileManager.GetInstance();

            this.edit = xmlEdit;
            this.updateQueue = new List<string>();
        }
Example #2
0
        public Worker(XDocument xmlGame, XDocument xmlEdit, FileContainer root)
        {
            Configuration.Initialize(xmlEdit);
            this.config = Configuration.GetInstance();

            this.edit = xmlEdit;
            this.updateQueue = new List<string>();

            InitializeFileTypes(root, xmlGame);
            this.fileManager = FileManager.GetInstance();
        }
Example #3
0
 public static void Initialize(FileContainer rootDir, FileInfoCollection infoCollection)
 {
     Instance = new FileManager(rootDir, infoCollection);
 }