示例#1
0
 public static void IncreasePoses(Achievement.KeyStat pose)
 {
     foreach (Achievement data in achievements)
     {
         if (data.key == pose)
         {
             data.value = Math.Min(data.max, data.value + 1);
         }
     }
 }
示例#2
0
 private static void UpdateAchievements(Achievement[] list, Achievement.KeyStat key, int value)
 {
     foreach (Achievement data in list)
     {
         if (data.key == key && data.value < value)
         {
             data.value = Math.Min(data.max, value);
         }
     }
 }
示例#3
0
文件: Pose.cs 项目: Demy/caturday
 public Pose(string icon, string idleName, Achievement.KeyStat achieveKey, string[] keys,
             Attribute.Type[] positiveAttributes, Attribute.Type[] negativeAttributes,
             bool isSequence = false)
 {
     this.icon               = icon;
     this.idleName           = idleName;
     this.achieveKey         = achieveKey;
     this.keys               = keys;
     this.positiveAttributes = positiveAttributes;
     this.negativeAttributes = negativeAttributes;
     this.isSequence         = isSequence;
 }