加入用户最近100场战绩记录并实现展示

This commit is contained in:
FloatGaming
2026-03-16 23:18:58 +08:00
parent ec42f2e34b
commit f5c6f143c0
106 changed files with 12120 additions and 642 deletions
+32 -4
View File
@@ -9,12 +9,13 @@
});
}
public static void ReportPlaySong()
public static void ReportPlaySong(int songID = 0)
{
DailyTaskService.EnsureInstance().ReportEvent(new DailyTaskEventData
{
taskType = userTasksPool.TaskType.PlaySong,
amount = 1f
amount = 1f,
songID = songID
});
}
@@ -36,6 +37,15 @@
});
}
public static void ReportWatchStory()
{
DailyTaskService.EnsureInstance().ReportEvent(new DailyTaskEventData
{
taskType = userTasksPool.TaskType.WatchStory,
amount = 1f
});
}
public static void ReportUseItem(int amount)
{
DailyTaskService.EnsureInstance().ReportEvent(new DailyTaskEventData
@@ -54,11 +64,29 @@
});
}
public static void ReportGameDuration(float durationSeconds)
public static void ReportSingleRunCombo(int combo)
{
DailyTaskService.EnsureInstance().ReportEvent(new DailyTaskEventData
{
taskType = userTasksPool.TaskType.GameDuration,
taskType = userTasksPool.TaskType.SingleRunCombo,
amount = combo
});
}
public static void ReportSingleRunScore(float totalScore)
{
DailyTaskService.EnsureInstance().ReportEvent(new DailyTaskEventData
{
taskType = userTasksPool.TaskType.SingleRunScore,
amount = totalScore
});
}
public static void ReportOnlineDuration(float durationSeconds)
{
DailyTaskService.EnsureInstance().ReportEvent(new DailyTaskEventData
{
taskType = userTasksPool.TaskType.OnlineDuration,
amount = durationSeconds
});
}