mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 12:09:34 +08:00
Modift GameStatistics (1)
This commit is contained in:
parent
faf370b907
commit
1c3627a9b7
@ -1,25 +1,28 @@
|
|||||||
using System.Collections;
|
using Milimoe.FunGame.Core.Library.Constant;
|
||||||
|
|
||||||
namespace Milimoe.FunGame.Core.Entity
|
namespace Milimoe.FunGame.Core.Entity
|
||||||
{
|
{
|
||||||
public class GameStatistics
|
public class GameStatistics
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public long Id => Room.Id;
|
||||||
public Room? Room { get; set; } = null;
|
public Room Room { get; set; } = General.HallInstance;
|
||||||
public string? GameRecord { get; set; } = null;
|
public DateTime RecordTime { get; set; } = DateTime.Now;
|
||||||
public string? RunTime { get; set; } = null;
|
public string Record { get; set; } = "";
|
||||||
public Hashtable? DamageStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> DamageStats { get; set; } = new();
|
||||||
public Hashtable? PhysicalDamageStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> PhysicalDamageStats { get; } = new();
|
||||||
public Hashtable? MagicDamageStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> MagicDamageStats { get; } = new();
|
||||||
public Hashtable? RealDamageStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> RealDamageStats { get; } = new();
|
||||||
public Hashtable? AvgDamageStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> AvgDamageStats { get; } = new();
|
||||||
public Hashtable? KillStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> AvgPhysicalDamageStats { get; } = new();
|
||||||
public Hashtable? KillDetailStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> AvgMagicDamageStats { get; } = new();
|
||||||
public Hashtable? DeathStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> AvgRealDamageStats { get; } = new();
|
||||||
public Hashtable? DeathDetailStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> KillStats { get; } = new();
|
||||||
public Hashtable? AssistStats { get; set; } = new Hashtable();
|
public Dictionary<User, Dictionary<User, int>> KillDetailStats { get; } = new(); // 子字典记录的是被击杀者以及被击杀次数
|
||||||
public Hashtable? RatingStats { get; set; } = new Hashtable();
|
public Dictionary<User, decimal> DeathStats { get; } = new();
|
||||||
public Hashtable? EloStats { get; set; } = new Hashtable();
|
public Dictionary<User, Dictionary<User, int>> DeathDetailStats { get; } = new(); // 子字典记录的是击杀者以及击杀次数
|
||||||
public Hashtable? RankStats { get; set; } = new Hashtable();
|
public Dictionary<User, long> AssistStats { get; } = new();
|
||||||
|
public Dictionary<User, decimal> RatingStats { get; } = new(); // 结算后的Rating
|
||||||
|
public Dictionary<User, decimal> EloStats { get; } = new(); // Elo分数变化(+/-)
|
||||||
|
public Dictionary<User, string> RankStats { get; } = new(); // 结算后的Rank(非比赛前)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,10 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
{
|
{
|
||||||
public long Id => User.Id;
|
public long Id => User.Id;
|
||||||
public User User { get; }
|
public User User { get; }
|
||||||
public Dictionary<long, decimal> DamageStats { get; set; } = new();
|
public Dictionary<long, decimal> DamageStats { get; } = new();
|
||||||
public Dictionary<long, decimal> PhysicalDamageStats { get; set; } = new();
|
public Dictionary<long, decimal> PhysicalDamageStats { get; } = new();
|
||||||
public Dictionary<long, decimal> MagicDamageStats { get; set; } = new();
|
public Dictionary<long, decimal> MagicDamageStats { get; } = new();
|
||||||
public Dictionary<long, decimal> RealDamageStats { get; set; } = new();
|
public Dictionary<long, decimal> RealDamageStats { get; } = new();
|
||||||
public Dictionary<long, decimal> AvgDamageStats
|
public Dictionary<long, decimal> AvgDamageStats
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -84,12 +84,12 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
return avgdamage;
|
return avgdamage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public Dictionary<long, long> Kills { get; set; } = new();
|
public Dictionary<long, long> Kills { get; } = new();
|
||||||
public Dictionary<long, long> Deaths { get; set; } = new();
|
public Dictionary<long, long> Deaths { get; } = new();
|
||||||
public Dictionary<long, long> Assists { get; set; } = new();
|
public Dictionary<long, long> Assists { get; } = new();
|
||||||
public Dictionary<long, long> Plays { get; set; } = new();
|
public Dictionary<long, long> Plays { get; } = new();
|
||||||
public Dictionary<long, long> Wins { get; set; } = new();
|
public Dictionary<long, long> Wins { get; } = new();
|
||||||
public Dictionary<long, long> Loses { get; set; } = new();
|
public Dictionary<long, long> Loses { get; } = new();
|
||||||
public Dictionary<long, decimal> Winrates
|
public Dictionary<long, decimal> Winrates
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -108,9 +108,9 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
return winrates;
|
return winrates;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public Dictionary<long, decimal> RatingStats { get; set; } = new();
|
public Dictionary<long, decimal> RatingStats { get; } = new();
|
||||||
public Dictionary<long, decimal> EloStats { get; set; } = new();
|
public Dictionary<long, decimal> EloStats { get; } = new();
|
||||||
public Dictionary<long, string> RankStats { get; set; } = new();
|
public Dictionary<long, string> RankStats { get; } = new();
|
||||||
|
|
||||||
public string GetWinrate(long season)
|
public string GetWinrate(long season)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user