Example #1
0
        public static OsuFile CreateEmpty()
        {
            var emptyFile = new OsuFile
            {
                Version      = 14,
                General      = new GeneralSection(),
                Colours      = new ColorSection(),
                Difficulty   = new DifficultySection(),
                Editor       = new EditorSection(),
                Metadata     = new MetadataSection(),
                TimingPoints = new TimingSection()
            };

            emptyFile.Events     = new EventSection(emptyFile);
            emptyFile.HitObjects = new HitObjectSection(emptyFile);
            emptyFile.TimingPoints.TimingList = new List <TimingPoint>();
            emptyFile.Events.SampleInfo       = new List <StoryboardSampleData>();
            return(emptyFile);
        }
Example #2
0
 public GamePlay(OsuFile osuFile)
 {
     _osuFile = osuFile;
 }
 public OsuFileAnalyzer(OsuFile osuFile)
 {
     OsuFile  = osuFile;
     GamePlay = new GamePlay(osuFile);
 }