コード例 #1
0
ファイル: AmpDAT.cs プロジェクト: maddeninthehouse/maddenAMP
        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();
            }
        }
コード例 #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();
        }
コード例 #3
0
ファイル: Overall.cs プロジェクト: maddeninthehouse/maddenAMP
 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));
         }
     }
 }
コード例 #4
0
 public void InitConfig(AmpConfig ampconfig)
 {
     config = ampconfig;
 }