scripts
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.SocialPlatforms.Impl
|
||||
{
|
||||
// Token: 0x0200037F RID: 895
|
||||
public class Achievement : IAchievement
|
||||
{
|
||||
// Token: 0x060035A3 RID: 13731 RVA: 0x00059C8C File Offset: 0x00057E8C
|
||||
public Achievement(string id, double percentCompleted, bool completed, bool hidden, DateTime lastReportedDate)
|
||||
{
|
||||
this.id = id;
|
||||
this.percentCompleted = percentCompleted;
|
||||
this.m_Completed = completed;
|
||||
this.m_Hidden = hidden;
|
||||
this.m_LastReportedDate = lastReportedDate;
|
||||
}
|
||||
|
||||
// Token: 0x060035A4 RID: 13732 RVA: 0x00059CBC File Offset: 0x00057EBC
|
||||
public Achievement(string id, double percent)
|
||||
{
|
||||
this.id = id;
|
||||
this.percentCompleted = percent;
|
||||
this.m_Hidden = false;
|
||||
this.m_Completed = false;
|
||||
this.m_LastReportedDate = DateTime.MinValue;
|
||||
}
|
||||
|
||||
// Token: 0x060035A5 RID: 13733 RVA: 0x00059CEC File Offset: 0x00057EEC
|
||||
public Achievement()
|
||||
: this("unknown", 0.0)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060035A6 RID: 13734 RVA: 0x00059D04 File Offset: 0x00057F04
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Concat(new object[] { this.id, " - ", this.percentCompleted, " - ", this.completed, " - ", this.hidden, " - ", this.lastReportedDate });
|
||||
}
|
||||
|
||||
// Token: 0x060035A7 RID: 13735 RVA: 0x00059D88 File Offset: 0x00057F88
|
||||
public void ReportProgress(Action<bool> callback)
|
||||
{
|
||||
ActivePlatform.Instance.ReportProgress(this.id, this.percentCompleted, callback);
|
||||
}
|
||||
|
||||
// Token: 0x060035A8 RID: 13736 RVA: 0x00059DA4 File Offset: 0x00057FA4
|
||||
public void SetCompleted(bool value)
|
||||
{
|
||||
this.m_Completed = value;
|
||||
}
|
||||
|
||||
// Token: 0x060035A9 RID: 13737 RVA: 0x00059DB0 File Offset: 0x00057FB0
|
||||
public void SetHidden(bool value)
|
||||
{
|
||||
this.m_Hidden = value;
|
||||
}
|
||||
|
||||
// Token: 0x060035AA RID: 13738 RVA: 0x00059DBC File Offset: 0x00057FBC
|
||||
public void SetLastReportedDate(DateTime date)
|
||||
{
|
||||
this.m_LastReportedDate = date;
|
||||
}
|
||||
|
||||
// Token: 0x17000C4F RID: 3151
|
||||
// (get) Token: 0x060035AB RID: 13739 RVA: 0x00059DC8 File Offset: 0x00057FC8
|
||||
// (set) Token: 0x060035AC RID: 13740 RVA: 0x00059DE4 File Offset: 0x00057FE4
|
||||
public string id { get; set; }
|
||||
|
||||
// Token: 0x17000C50 RID: 3152
|
||||
// (get) Token: 0x060035AD RID: 13741 RVA: 0x00059DF0 File Offset: 0x00057FF0
|
||||
// (set) Token: 0x060035AE RID: 13742 RVA: 0x00059E0C File Offset: 0x0005800C
|
||||
public double percentCompleted { get; set; }
|
||||
|
||||
// Token: 0x17000C51 RID: 3153
|
||||
// (get) Token: 0x060035AF RID: 13743 RVA: 0x00059E18 File Offset: 0x00058018
|
||||
public bool completed
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Completed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000C52 RID: 3154
|
||||
// (get) Token: 0x060035B0 RID: 13744 RVA: 0x00059E34 File Offset: 0x00058034
|
||||
public bool hidden
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Hidden;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000C53 RID: 3155
|
||||
// (get) Token: 0x060035B1 RID: 13745 RVA: 0x00059E50 File Offset: 0x00058050
|
||||
public DateTime lastReportedDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_LastReportedDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000BFF RID: 3071
|
||||
private bool m_Completed;
|
||||
|
||||
// Token: 0x04000C00 RID: 3072
|
||||
private bool m_Hidden;
|
||||
|
||||
// Token: 0x04000C01 RID: 3073
|
||||
private DateTime m_LastReportedDate;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user