加入用户最近100场战绩记录并实现展示
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user