Beispiel #1
0
        public void Init(EditorModel model, AmpConfig config)
        {
            PlayerPort.loadfile = config.PlayerPortFiles[(int)model.FileVersion];
            if (PlayerPort.loadfile != "" && config.AutoLoad_PlayerPort[(int)model.FileVersion])
            {
                PlayerPort.Load();
            }

            CoachPort.loadfile = config.CoachPortFiles[(int)model.FileVersion];
            if (CoachPort.loadfile != "" && config.AutoLoad_CoachPort[(int)model.FileVersion])
            {
                CoachPort.Load();
            }
        }
Beispiel #2
0
        public MGMT()
        {
            config        = new AmpConfig();
            UserSettings  = new UserSettingsModel();
            Players       = new List <Player>();
            Coaches       = new List <Coach>();
            Owners        = new List <Coach>();
            Teams         = new Dictionary <int, Team>();
            PlayerPortDAT = new DAT();
            CoachPortDAT  = new DAT();

            LeaguesAverages = new LeagueAvg();

            Main      = new BackgroundWorker();
            Loader    = new BackgroundWorker();
            Functions = new BackgroundWorker();
        }
Beispiel #3
0
 public void InitRatings(AmpConfig config)
 {
     if (config.db_misc_model != null)
     {
         Table.Clear();
         foreach (TableRecordModel rec in config.db_misc_model.TableModels[EditorModel.PLAYER_OVERALL_CALC].GetRecords())
         {
             OverallRecord ovr = (OverallRecord)rec;
             Table.Add(ovr.Position, new ovrdef(ovr));
         }
     }
     else
     {
         for (int p = 0; p <= 20; p++)
         {
             Table.Add(p, new ovrdef(p));
         }
     }
 }
 public void InitConfig(AmpConfig ampconfig)
 {
     config = ampconfig;
 }