Exemple #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);
        }
Exemple #2
0
 public OsuFileAnalyzer(OsuFile osuFile)
 {
     OsuFile  = osuFile;
     GamePlay = new GamePlay(osuFile);
 }
Exemple #3
0
 public GamePlay(OsuFile osuFile)
 {
     _osuFile = osuFile;
 }