public static TeamTemplate DefaultTemplate(int playersCount) { TeamTemplate defaultTemplate = new TeamTemplate(); defaultTemplate.FillDefaultTemplate(playersCount); return(defaultTemplate); }
public static TeamTemplate Load(string filePath) { TeamTemplate template = SerializableObject.LoadSafe <TeamTemplate>(filePath); if (template.Formation == null) { template.FormationStr = "1-4-3-3"; } return(template); }