Exemplo n.º 1
0
		public static GameStructure Load(IEnumerable<string> pathes)
		{
			List<string> toProcess = new List<string>();
			toProcess.AddRange(pathes);
			if (toProcess.Count == 0)
			{
				throw new ArgumentException("No pathes found", nameof(pathes));
			}

			GameStructure structure = new GameStructure();
			structure.Load(toProcess);
			return structure;
		}
Exemplo n.º 2
0
        public static GameStructure Load(IEnumerable <string> pathes, LayoutInfo layinfo)
        {
            List <string> toProcess = new List <string>();

            toProcess.AddRange(pathes);
            if (toProcess.Count == 0)
            {
                throw new ArgumentException("Game files not found", nameof(pathes));
            }

            GameStructure structure = new GameStructure();

            structure.Load(toProcess, layinfo);
            return(structure);
        }