public void CheckObjectCount()
        {
            var converter = new StepFile("./Stepmania/Resources/chaoz-airflow.sm");
            var qua       = converter.ToQuas().First();

            Assert.True(qua.HitObjects.Count >= 1);
        }
        public void ConvertToQua()
        {
            var converter = new StepFile("./Stepmania/Resources/chaoz-airflow.sm");
            var quas      = converter.ToQuas();

            Assert.Single(quas);
        }
Esempio n. 3
0
        public ConvertSmCommand(string[] args) : base(args)
        {
            OutputPath = args[2];
            Directory.CreateDirectory(OutputPath);

            Converter = new StepFile(args[1]);

            var quas = Converter.ToQuas();

            for (var i = 0; i < quas.Count; i++)
            {
                quas[i].Save($"{OutputPath}/{i}.qua");
            }
        }
        public void ConvertToQuaFile()
        {
            var dir = "./tests/sm";

            Directory.CreateDirectory(dir);

            var converter = new StepFile("./Stepmania/Resources/chaoz-airflow.sm");
            var quas      = converter.ToQuas();


            for (var i = 0; i < quas.Count; i++)
            {
                quas[i].Save($"{dir}/{i}.qua");
            }
        }