public static List<LevelScript> load(JSONArray levels) { List<LevelScript> levelScripts = new List<LevelScript>(); foreach (JSONTable scriptTemplate in levels.asJSONTables()) { levelScripts.Add(new LevelScript(scriptTemplate)); } return levelScripts; }