command yay!

This commit is contained in:
rfi
2023-11-13 19:10:02 +07:00
parent 21856d353b
commit 6c5aca3c3a
12 changed files with 335 additions and 36 deletions

View File

@@ -52,7 +52,10 @@ namespace AscNet.Common.Database
public void AddStage(StageDatum stageData)
{
Stages.Add(stageData.StageId, stageData);
if (Stages.ContainsKey(stageData.StageId))
Stages[stageData.StageId] = stageData;
else
Stages.Add(stageData.StageId, stageData);
}
public void Save()

View File

@@ -2452,26 +2452,7 @@ namespace AscNet.Common.MsgPack
[global::MessagePack.MessagePackObject(true)]
public class NotifyStageData
{
[global::MessagePack.MessagePackObject(true)]
public class NotifyStageDataStage
{
public UInt32 StageId { get; set; }
public Int32 StarsMark { get; set; }
public Boolean Passed { get; set; }
public Int32 PassTimesToday { get; set; }
public Int32 PassTimesTotal { get; set; }
public Int32 BuyCount { get; set; }
public Int32 Score { get; set; }
public UInt32 LastPassTime { get; set; }
public UInt32 RefreshTime { get; set; }
public UInt32 CreateTime { get; set; }
public Int32 BestRecordTime { get; set; }
public Int32 LastRecordTime { get; set; }
public List<UInt32> BestCardIds { get; set; } = new();
public List<UInt32> LastCardIds { get; set; } = new();
}
public List<NotifyStageDataStage> StageList { get; set; } = new();
public List<StageDatum> StageList { get; set; } = new();
}