コード例 #1
0
 /// <summary>
 /// Loads this instance from json.
 /// </summary>
 internal void Load(JToken Token)
 {
     if (JsonHelper.GetJsonArray(Token, "cooldowns", out JArray Cooldowns))
     {
         foreach (JToken Object in Cooldowns)
         {
             Cooldown Cooldown = new Cooldown();
             Cooldown.Load(Object);
             this.Cooldowns.Add(Cooldown);
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Create a fast forward of the time.
 /// </summary>
 internal void FastForwardTime(int Seconds)
 {
     this.Cooldowns.ForEach(Cooldown => Cooldown.FastForwardTime(Seconds));
 }