Exemple #1
0
        public Army Import(Roster roster)
        {
            var fantasy = new FantasyArmy();
            var army = fantasy.CreateArmy(roster);

            return army;
        }
Exemple #2
0
        public Army CreateArmy(Roster roster)
        {
            var army = roster.MapTo<Army>();

            roster.Selections.ForEach(x => ImportActions[x.Category](x, army));

            return army;
        }