拼ui 一些业务逻辑x实现
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[Serializable]
|
||||
public class GlobalAchievementMetricEntry
|
||||
{
|
||||
public GlobalAchievementMetricType metricType;
|
||||
public float value;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class GlobalAchievementStateEntry
|
||||
{
|
||||
public int achievementId;
|
||||
public bool unlocked;
|
||||
public long unlockedUtcTicks;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class GlobalAchievementSaveData
|
||||
{
|
||||
public int version = 1;
|
||||
public string lastLoginDateStamp;
|
||||
public string trustedDateStamp;
|
||||
public List<GlobalAchievementMetricEntry> metrics = new List<GlobalAchievementMetricEntry>();
|
||||
public List<GlobalAchievementStateEntry> states = new List<GlobalAchievementStateEntry>();
|
||||
}
|
||||
|
||||
public struct GlobalAchievementSnapshot
|
||||
{
|
||||
public GlobalAchievementSO definition;
|
||||
public float currentValue;
|
||||
public float normalizedProgress;
|
||||
public bool unlocked;
|
||||
public DateTime unlockedUtc;
|
||||
public string unlockedDateTimeText;
|
||||
}
|
||||
Reference in New Issue
Block a user