Esempio n. 1
0
        LocalTransferManagerEntity CreateLocalManager(int id)
        {
            var manager = new LocalTransferManagerEntity();

            manager.Id   = id;
            manager.Name = "球队" + id;

            manager.FormationId    = 1;
            manager.FormationLevel = 1;
            manager.TalentId       = 0;
            manager.Players        = new List <LocalTransferPlayerEntity>(11);
            var ss = "30437,30704,32356,32124,41299,30542,31976,32006,40813,20169,30273".Split(',');
            int i  = 0;

            foreach (var s in ss)
            {
                manager.Players.Add(CreateLocalPlayer(Convert.ToInt32(s), i++));
            }
            LocalHelper.BuildPlayerPosition(manager);
            LocalManagerHelper.SaveBefore(manager);
            return(manager);
        }