Пример #1
0
 public Sheetmusic(Sheetmusic <T> original = null)
 {
     if (original != null)
     {
         SheetmusicInfo     = original.SheetmusicInfo.DeepClone();
         ControlPointInfo   = original.ControlPointInfo;
         SheetmusicMetadata = original.SheetmusicMetadata;
         HitObjects         = original.HitObjects;
     }
 }
Пример #2
0
        /// <summary>
        /// Retrieve a <see cref="WorkingSheetmusic"/> instance for the provided <see cref="SheetmusicInfo"/>
        /// </summary>
        /// <param name="SheetmusicInfo">The beatmap to lookup.</param>
        /// <param name="previous">The currently loaded <see cref="WorkingSheetmusic"/>. Allows for optimisation where elements are shared with the new beatmap.</param>
        /// <returns>A <see cref="WorkingSheetmusic"/> instance correlating to the provided <see cref="SheetmusicInfo"/>.</returns>
        public WorkingSheetmusic GetWorkingSheetmusic(SheetmusicInfo sheetmusicInfo)
        {
            if (sheetmusicInfo == null)
            {
                return(null);
            }

            WorkingSheetmusic working = new SheetmusicManagerWorkingSheetmusic(sheetmusicInfo);

            return(working);
        }
Пример #3
0
 protected WorkingSheetmusic(SheetmusicInfo sheetmusicInfo)
 {
     SheetmusicInfo = sheetmusicInfo;
     Metadata       = sheetmusicInfo.Metadata ?? new SheetmusicMetadata();
 }
 public SheetmusicManagerWorkingSheetmusic(SheetmusicInfo sheetmusicInfo) : base(sheetmusicInfo)
 {
 }