/// <summary> /// Loads this instance from json. /// </summary> internal void Load(JToken Json) { if (Json != null) { JArray Slots = (JArray)Json["slots"]; if (Slots != null) { foreach (JToken Token in Slots) { ProductionItem Item = new ProductionItem(); Item.Load(Token); this.Productions.Add(Item); } if (this.Productions.Count > 0) { if (JsonHelper.GetJsonNumber(Json, "t", out int Time)) { this.Timer.StartTimer(this.Level.Time, Time); } } } } }