public static TeamTemplate Load(string filePath) { TeamTemplate template = SerializableObject.LoadSafe <TeamTemplate>(filePath); if (template.Formation == null) { template.FormationStr = "1-4-3-3"; } return(template); }
public static Categories Load(string filePath) { Categories cat = SerializableObject.LoadSafe <Categories>(filePath); if (cat.GamePeriods == null) { cat.GamePeriods = new List <string>(); cat.GamePeriods.Add("1"); cat.GamePeriods.Add("2"); } return(cat); }
public static SubCategoryTemplate Load(string filePath) { return(SerializableObject.LoadSafe <SubCategoryTemplate>(filePath)); }