2017-02-07 04:59:30 +00:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-11-29 06:41:48 +00:00
|
|
|
|
|
2017-03-15 05:06:05 +00:00
|
|
|
|
using System;
|
2017-03-31 06:59:53 +00:00
|
|
|
|
using System.Collections.Generic;
|
2017-03-15 05:06:05 +00:00
|
|
|
|
using Newtonsoft.Json;
|
2017-03-04 10:02:36 +00:00
|
|
|
|
using osu.Game.Database;
|
2017-04-18 07:05:58 +00:00
|
|
|
|
using osu.Game.Rulesets.Mods;
|
2017-03-24 00:51:52 +00:00
|
|
|
|
using osu.Game.Users;
|
2017-03-24 05:03:46 +00:00
|
|
|
|
using System.IO;
|
2017-04-18 07:05:58 +00:00
|
|
|
|
using osu.Game.Rulesets.Replays;
|
2017-03-05 02:29:52 +00:00
|
|
|
|
|
2017-04-18 07:05:58 +00:00
|
|
|
|
namespace osu.Game.Rulesets.Scoring
|
2016-11-29 06:41:48 +00:00
|
|
|
|
{
|
|
|
|
|
public class Score
|
|
|
|
|
{
|
2017-03-15 05:06:05 +00:00
|
|
|
|
[JsonProperty(@"rank")]
|
2017-03-13 21:34:43 +00:00
|
|
|
|
public ScoreRank Rank { get; set; }
|
2017-03-15 05:06:05 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"score")]
|
2016-11-29 14:59:56 +00:00
|
|
|
|
public double TotalScore { get; set; }
|
2017-04-19 07:02:18 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"accuracy")]
|
2016-11-29 14:59:56 +00:00
|
|
|
|
public double Accuracy { get; set; }
|
2017-03-15 05:06:05 +00:00
|
|
|
|
|
2017-04-19 07:02:18 +00:00
|
|
|
|
public double Health { get; set; } = 1;
|
|
|
|
|
|
|
|
|
|
[JsonProperty(@"combo")]
|
2017-03-10 07:05:05 +00:00
|
|
|
|
public int MaxCombo { get; set; }
|
2017-04-19 07:02:18 +00:00
|
|
|
|
|
2017-03-10 07:05:05 +00:00
|
|
|
|
public int Combo { get; set; }
|
2017-03-04 06:29:15 +00:00
|
|
|
|
|
2017-04-19 07:02:18 +00:00
|
|
|
|
[JsonProperty(@"mods")]
|
|
|
|
|
protected string[] ModStrings { get; set; } //todo: parse to Mod objects
|
2017-04-11 04:47:30 +00:00
|
|
|
|
|
2017-04-19 07:02:18 +00:00
|
|
|
|
public Mod[] Mods { get; set; }
|
2017-04-11 04:47:30 +00:00
|
|
|
|
|
2017-04-19 07:02:18 +00:00
|
|
|
|
[JsonProperty(@"user")]
|
|
|
|
|
public User User;
|
2017-03-15 05:06:05 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"replay_data")]
|
2017-03-04 06:29:15 +00:00
|
|
|
|
public Replay Replay;
|
2017-03-15 05:06:05 +00:00
|
|
|
|
|
2017-03-04 10:02:36 +00:00
|
|
|
|
public BeatmapInfo Beatmap;
|
2017-03-15 05:06:05 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty(@"score_id")]
|
|
|
|
|
public long OnlineScoreID;
|
|
|
|
|
|
2017-04-19 07:02:18 +00:00
|
|
|
|
[JsonProperty(@"created_at")]
|
2017-03-15 05:06:05 +00:00
|
|
|
|
public DateTime Date;
|
|
|
|
|
|
2017-04-19 06:40:10 +00:00
|
|
|
|
public virtual IEnumerable<ScoreStatistic> Statistics => new ScoreStatistic[] { };
|
2016-11-29 06:41:48 +00:00
|
|
|
|
}
|
|
|
|
|
}
|