예제 #1
0
        public static TeamTemplate DefaultTemplate(int playersCount)
        {
            TeamTemplate defaultTemplate = new TeamTemplate();

            defaultTemplate.FillDefaultTemplate(playersCount);
            return(defaultTemplate);
        }
예제 #2
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);
        }