Exemple #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>();
        }
Exemple #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();
        }
 public static void Initialize(XDocument xmlEdit)
 {
     Instance = new Configuration(xmlEdit);
 }