/// <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); } } }
/// <summary> /// Create a fast forward of the time. /// </summary> internal void FastForwardTime(int Seconds) { this.Cooldowns.ForEach(Cooldown => Cooldown.FastForwardTime(Seconds)); }