Lots of data and model setup
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using MessagePack;
|
||||
using SVSim.Database.Models;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos;
|
||||
|
||||
@@ -39,4 +40,29 @@ public class RankInfo
|
||||
public int ResetLose { get; set; }
|
||||
[Key("accumulate_master_point")]
|
||||
public int AccumulateMasterPoints { get; set; }
|
||||
|
||||
public RankInfo(RankInfoEntry rankEntry)
|
||||
{
|
||||
RankId = rankEntry.Id;
|
||||
RankName = rankEntry.Name;
|
||||
NecessaryPoints = rankEntry.NecessaryPoint;
|
||||
AccumulatePoints = rankEntry.AccumulatePoint;
|
||||
LowerLimitPoints = rankEntry.LowerLimitPoint;
|
||||
BaseAddBp = rankEntry.BaseAddBp;
|
||||
BaseDropBp = rankEntry.BaseDropBp;
|
||||
StreakBonusPoints = rankEntry.StreakBonusPt;
|
||||
WinBonus = rankEntry.WinBonus;
|
||||
LoseBonus = rankEntry.LoseBonus;
|
||||
MaxWinBonus = rankEntry.MaxWinBonus;
|
||||
MaxLoseBonus = rankEntry.MaxLoseBonus;
|
||||
IsPromotionWar = rankEntry.IsPromotionWar;
|
||||
MatchCount = rankEntry.MatchCount;
|
||||
NecessaryWins = rankEntry.NecessaryWin;
|
||||
ResetLose = rankEntry.ResetLose;
|
||||
AccumulateMasterPoints = rankEntry.AccumulateMasterPoint;
|
||||
}
|
||||
|
||||
public RankInfo()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user