osu/osu.Game/Scoring/Score.cs

50 lines
1.1 KiB
C#
Raw Normal View History

2018-04-13 09:19:50 +00:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
2018-09-28 09:29:49 +00:00
using Newtonsoft.Json;
2018-04-13 09:19:50 +00:00
using osu.Game.Beatmaps;
2018-11-28 07:33:42 +00:00
using osu.Game.Rulesets;
2018-04-13 09:19:50 +00:00
using osu.Game.Rulesets.Mods;
using osu.Game.Users;
using osu.Game.Rulesets.Replays;
2018-11-28 07:33:42 +00:00
using osu.Game.Rulesets.Scoring;
2018-04-13 09:19:50 +00:00
2018-11-28 07:12:57 +00:00
namespace osu.Game.Scoring
2018-04-13 09:19:50 +00:00
{
public class Score
{
public ScoreRank Rank { get; set; }
public double TotalScore { get; set; }
public double Accuracy { get; set; }
public double Health { get; set; } = 1;
public double? PP { get; set; }
public int MaxCombo { get; set; }
public int Combo { get; set; }
public RulesetInfo Ruleset { get; set; }
public Mod[] Mods { get; set; } = { };
public User User;
2018-09-28 09:29:49 +00:00
[JsonIgnore]
2018-04-13 09:19:50 +00:00
public Replay Replay;
public BeatmapInfo Beatmap;
public long OnlineScoreID;
public DateTimeOffset Date;
public Dictionary<HitResult, object> Statistics = new Dictionary<HitResult, object>();
}
}