Esempio n. 1
0
        public static TeamTemplate Load(string filePath)
        {
            TeamTemplate template = SerializableObject.LoadSafe <TeamTemplate>(filePath);

            if (template.Formation == null)
            {
                template.FormationStr = "1-4-3-3";
            }
            return(template);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public static SubCategoryTemplate Load(string filePath)
 {
     return(SerializableObject.LoadSafe <SubCategoryTemplate>(filePath));
 }