2016-08-31 11:33:01 +08:00
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
2016-10-08 04:19:24 +08:00
|
|
|
using System.Linq;
|
2016-10-11 01:00:16 +08:00
|
|
|
using OpenTK.Graphics;
|
2016-08-31 11:33:01 +08:00
|
|
|
using osu.Game.Beatmaps.Objects;
|
2016-10-08 04:19:24 +08:00
|
|
|
using osu.Game.Beatmaps.Samples;
|
2016-08-31 12:51:00 +08:00
|
|
|
using osu.Game.Beatmaps.Timing;
|
2016-10-08 03:36:20 +08:00
|
|
|
using osu.Game.GameModes.Play;
|
2016-08-31 11:33:01 +08:00
|
|
|
using osu.Game.Users;
|
2016-10-08 01:50:34 +08:00
|
|
|
using SQLite;
|
2016-08-31 11:33:01 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
{
|
|
|
|
public class Beatmap
|
|
|
|
{
|
2016-10-08 01:50:34 +08:00
|
|
|
[PrimaryKey]
|
|
|
|
public int BeatmapID { get; set; }
|
|
|
|
[NotNull, Indexed]
|
|
|
|
public int BeatmapSetID { get; set; }
|
|
|
|
[Indexed]
|
|
|
|
public int BeatmapMetadataID { get; set; }
|
|
|
|
public int BaseDifficultyID { get; set; }
|
|
|
|
[Ignore]
|
|
|
|
public List<HitObject> HitObjects { get; set; }
|
|
|
|
[Ignore]
|
|
|
|
public List<ControlPoint> ControlPoints { get; set; }
|
|
|
|
[Ignore]
|
|
|
|
public BeatmapMetadata Metadata { get; set; }
|
|
|
|
[Ignore]
|
|
|
|
public BaseDifficulty BaseDifficulty { get; set; }
|
2016-10-11 01:00:16 +08:00
|
|
|
[Ignore]
|
|
|
|
public List<Color4> ComboColors { get; set; }
|
2016-10-08 04:19:24 +08:00
|
|
|
|
|
|
|
// General
|
|
|
|
public int AudioLeadIn { get; set; }
|
|
|
|
public bool Countdown { get; set; }
|
|
|
|
public SampleSet SampleSet { get; set; }
|
|
|
|
public float StackLeniency { get; set; }
|
|
|
|
public bool SpecialStyle { get; set; }
|
2016-10-08 03:36:20 +08:00
|
|
|
public PlayMode Mode { get; set; }
|
2016-10-08 04:19:24 +08:00
|
|
|
public bool LetterboxInBreaks { get; set; }
|
|
|
|
public bool WidescreenStoryboard { get; set; }
|
|
|
|
|
|
|
|
// Editor
|
|
|
|
// This bookmarks stuff is necessary because DB doesn't know how to store int[]
|
|
|
|
public string StoredBookmarks { get; internal set; }
|
|
|
|
[Ignore]
|
|
|
|
public int[] Bookmarks
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return StoredBookmarks.Split(',').Select(b => int.Parse(b)).ToArray();
|
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
|
|
|
StoredBookmarks = string.Join(",", value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public double DistanceSpacing { get; set; }
|
|
|
|
public int BeatDivisor { get; set; }
|
|
|
|
public int GridSize { get; set; }
|
|
|
|
public double TimelineZoom { get; set; }
|
|
|
|
|
|
|
|
// Metadata
|
2016-10-08 01:50:34 +08:00
|
|
|
public string Version { get; set; }
|
2016-08-31 11:33:01 +08:00
|
|
|
}
|
|
|
|
}
|