예제 #1
0
        public static EngineSettings GetSettings(string[] args)
        {
            var arguments = new Arguments (args);

            var settings = new EngineSettings ();

            settings.EngineId = GetEngineId (arguments);

            if (arguments.ContainsAny ("v", "verbose"))
                settings.OutputType = tilesim.Engine.ConsoleOutputType.Debug;

            if (arguments.ContainsAny ("speed"))
                settings.GameSpeed = arguments.GetInt("speed");

            if (settings.IsVerbose) {
                // TODO: Output settings summary
            }

            return settings;
        }