Exemplo n.º 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>();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 public static void Initialize(FileContainer rootDir, FileInfoCollection infoCollection)
 {
     Instance = new FileManager(rootDir, infoCollection);
 }