コード例 #1
0
        // TODO should this be moved over to the workspace?
        /// <summary>
        ///     This method goes through the list of files and prepares them for the load service
        /// </summary>
        /// <param name="tmpEngine"></param>
        /// <param name="files"></param>
        /// <param name="displayProgress"></param>
        public virtual void ProcessFiles(IEngine tmpEngine, string[] files,
                                         bool displayProgress = false)
        {
            this.displayProgress = displayProgress;

            this.tmpEngine = tmpEngine;

            ParseFiles(files);

            if (!displayProgress)
            {
                loadService.LoadAll();
                RunGame();
            }
        }