diff --git a/controller/BootstrapController.go b/controller/BootstrapController.go index 2585995..f582428 100644 --- a/controller/BootstrapController.go +++ b/controller/BootstrapController.go @@ -158,6 +158,20 @@ func BootstrapStatsData(w http.ResponseWriter, r *http.Request) { w.Write(bootstrapData) } +func BootstrapPlayerData(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + vars := mux.Vars(r) + collegeID := vars["collegeID"] + proID := vars["proID"] + data := managers.GetPlayerBootstrap(collegeID, proID) + bootstrapData, err := easyjson.Marshal(data) + if err != nil { + log.Printf("Failed to encode JSON response: %v", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + } + w.Write(bootstrapData) +} + func GetCollegeHistoryProfile(w http.ResponseWriter, r *http.Request) { enableCors(&w) data := managers.GetCollegeTeamProfilePageData() diff --git a/controller/ImportController.go b/controller/ImportController.go index 4f2b1ca..0c9cf9d 100644 --- a/controller/ImportController.go +++ b/controller/ImportController.go @@ -20,7 +20,7 @@ func ImportNFLDraftPicks(w http.ResponseWriter, r *http.Request) { } func ImportRecruitAICSV(w http.ResponseWriter, r *http.Request) { - managers.ImportRecruitAICSV() + // managers.ImportRecruitAICSV() } func ImportNFLRecords(w http.ResponseWriter, r *http.Request) { @@ -80,7 +80,7 @@ func ImplementPrimeAge(w http.ResponseWriter, r *http.Request) { } func GenerateCoachesForAITeams(w http.ResponseWriter, r *http.Request) { - managers.GenerateCoachesForAITeams() + // managers.GenerateCoachesForAITeams() } func FixCollegeDTOVRs(w http.ResponseWriter, r *http.Request) { @@ -104,7 +104,7 @@ func ImportCFBRivals(w http.ResponseWriter, r *http.Request) { func Import2021CFBStats(w http.ResponseWriter, r *http.Request) { // managers.MigrateRetiredAndNFLPlayersToHistoricCFBTable() - managers.ImportCFB2021PlayerStats() + // managers.ImportCFB2021PlayerStats() } func FixATHProgressions(w http.ResponseWriter, r *http.Request) { diff --git a/controller/RecruitingController.go b/controller/RecruitingController.go index e1190e7..d1a346a 100644 --- a/controller/RecruitingController.go +++ b/controller/RecruitingController.go @@ -150,8 +150,8 @@ func RevokeScholarshipFromRecruit(w http.ResponseWriter, r *http.Request) { recruitingPointsProfile, recruitingProfile := managers.RevokeScholarshipFromRecruit(updateRecruitPointsDto) - fmt.Printf("\nScholarship revoked from player " + strconv.Itoa(recruitingPointsProfile.RecruitID) + ". Record saved") - fmt.Printf("\nProfile: " + strconv.Itoa(recruitingProfile.TeamID) + " Saved") + fmt.Printf("%s", "\nScholarship revoked from player "+strconv.Itoa(recruitingPointsProfile.RecruitID)+". Record saved") + fmt.Printf("%s", "\nProfile: "+strconv.Itoa(recruitingProfile.TeamID)+" Saved") } // RemoveRecruitFromBoard diff --git a/main.go b/main.go index 3d8c4e7..298c030 100644 --- a/main.go +++ b/main.go @@ -136,6 +136,7 @@ func handleRequests() http.Handler { apiRouter.HandleFunc("/bootstrap/gameplan/{collegeID}/{proID}", controller.BootstrapGameplanData).Methods("GET") apiRouter.HandleFunc("/bootstrap/news/{collegeID}/{proID}", controller.BootstrapNewsData).Methods("GET") apiRouter.HandleFunc("/bootstrap/stats/{collegeID}/{proID}", controller.BootstrapStatsData).Methods("GET") + apiRouter.HandleFunc("/bootstrap/players/{collegeID}/{proID}", controller.BootstrapPlayerData).Methods("GET") // Capsheet Controls apiRouter.HandleFunc("/nfl/capsheet/generate", controller.GenerateCapsheets).Methods("GET") diff --git a/managers/BootstrapManager.go b/managers/BootstrapManager.go index f52e99f..8eb5dc0 100644 --- a/managers/BootstrapManager.go +++ b/managers/BootstrapManager.go @@ -26,16 +26,16 @@ type BootstrapDataTeams struct { type BootstrapDataLanding struct { CollegeTeam structs.CollegeTeam - CollegeRosterMap map[uint][]structs.CollegePlayer CollegeStandings []structs.CollegeStandings AllCollegeGames []structs.CollegeGame OfficialPolls []structs.CollegePollOfficial TopCFBPassers []structs.CollegePlayer TopCFBRushers []structs.CollegePlayer TopCFBReceivers []structs.CollegePlayer - CollegeInjuryReport []structs.CollegePlayer CollegeNotifications []structs.Notification ProTeam structs.NFLTeam + ProRosterMap map[uint][]structs.NFLPlayer + CollegeRosterMap map[uint][]structs.CollegePlayer ProNotifications []structs.Notification ProStandings []structs.NFLStandings AllProGames []structs.NFLGame @@ -43,9 +43,6 @@ type BootstrapDataLanding struct { TopNFLPassers []structs.NFLPlayer TopNFLRushers []structs.NFLPlayer TopNFLReceivers []structs.NFLPlayer - ProRosterMap map[uint][]structs.NFLPlayer - ProInjuryReport []structs.NFLPlayer - PracticeSquadPlayers []structs.NFLPlayer CapsheetMap map[uint]structs.NFLCapsheet RetiredPlayers []structs.NFLRetiredPlayer } @@ -119,6 +116,14 @@ type BootstrapDataStats struct { RetiredPlayers []structs.NFLRetiredPlayer } +type BootstrapPlayerData struct { + CollegeRosterMap map[uint][]structs.CollegePlayer + CollegeInjuryReport []structs.CollegePlayer + ProRosterMap map[uint][]structs.NFLPlayer + ProInjuryReport []structs.NFLPlayer + PracticeSquadPlayers []structs.NFLPlayer +} + /* * IF ANY OF THE ABOVE MODELS ARE MODIFIED, THE EASYJSON HELPER WILL NEED TO BE REGENERATED. * See the comment at the top of the file for instructions. @@ -149,37 +154,75 @@ func GetTeamsBootstrap() BootstrapDataTeams { } } -func GetLandingBootstrap(collegeID, proID string) BootstrapDataLanding { +func GetPlayerBootstrap(collegeID, proID string) BootstrapPlayerData { var wg sync.WaitGroup - var mu sync.Mutex - // College Data var ( - collegeTeam structs.CollegeTeam - collegePlayers []structs.CollegePlayer collegePlayerMap map[uint][]structs.CollegePlayer injuredCollegePlayers []structs.CollegePlayer - collegeNotifications []structs.Notification - topCfbPassers []structs.CollegePlayer - topCfbRushers []structs.CollegePlayer - topCfbReceivers []structs.CollegePlayer - collegeStandings []structs.CollegeStandings - collegeGames []structs.CollegeGame + proRosterMap map[uint][]structs.NFLPlayer + injuredProPlayers []structs.NFLPlayer + practiceSquadPlayers []structs.NFLPlayer + ) + + if len(collegeID) > 0 && collegeID != "0" { + wg.Add(1) + go func() { + defer wg.Done() + collegePlayers := GetAllCollegePlayers() + collegePlayerMap = MakeCollegePlayerMapByTeamID(collegePlayers, true) + injuredCollegePlayers = MakeCollegeInjuryList(collegePlayers) + }() + } + + if len(proID) > 0 && proID != "0" { + wg.Add(1) + go func() { + defer wg.Done() + proPlayers := GetAllNFLPlayers() + proRosterMap = MakeNFLPlayerMapByTeamID(proPlayers, true) + injuredProPlayers = MakeProInjuryList(proPlayers) + practiceSquadPlayers = MakePracticeSquadList(proPlayers) + }() + } + + wg.Wait() + return BootstrapPlayerData{ + CollegeRosterMap: collegePlayerMap, + CollegeInjuryReport: injuredCollegePlayers, + ProRosterMap: proRosterMap, + ProInjuryReport: injuredProPlayers, + PracticeSquadPlayers: practiceSquadPlayers, + } +} + +func GetLandingBootstrap(collegeID, proID string) BootstrapDataLanding { + var wg sync.WaitGroup + + // College Data + var ( + collegeTeam structs.CollegeTeam + collegeNotifications []structs.Notification + collegePlayerMap map[uint][]structs.CollegePlayer + topCfbPassers []structs.CollegePlayer + topCfbRushers []structs.CollegePlayer + topCfbReceivers []structs.CollegePlayer + collegeStandings []structs.CollegeStandings + collegeGames []structs.CollegeGame ) // Professional Data var ( - proTeam structs.NFLTeam - proNotifications []structs.Notification - topNflPassers []structs.NFLPlayer - topNflRushers []structs.NFLPlayer - topNflReceivers []structs.NFLPlayer - proRosterMap map[uint][]structs.NFLPlayer - practiceSquadPlayers []structs.NFLPlayer - injuredProPlayers []structs.NFLPlayer - capsheetMap map[uint]structs.NFLCapsheet - proStandings []structs.NFLStandings - proGames []structs.NFLGame + proTeam structs.NFLTeam + proNotifications []structs.Notification + topNflPassers []structs.NFLPlayer + topNflRushers []structs.NFLPlayer + topNflReceivers []structs.NFLPlayer + proRosterMap map[uint][]structs.NFLPlayer + + capsheetMap map[uint]structs.NFLCapsheet + proStandings []structs.NFLStandings + proGames []structs.NFLGame ) ts := GetTimestamp() @@ -193,26 +236,19 @@ func GetLandingBootstrap(collegeID, proID string) BootstrapDataLanding { wg.Add(5) go func() { defer wg.Done() - mu.Lock() collegeTeam = GetTeamByTeamID(collegeID) collegeTeam.UpdateLatestInstance() repository.SaveCFBTeam(collegeTeam, dbprovider.GetInstance().GetDB()) - mu.Unlock() }() go func() { defer wg.Done() - collegePlayers = GetAllCollegePlayers() - - cfbStats := GetCollegePlayerSeasonStatsBySeason(seasonID, gtStr) - - mu.Lock() - collegePlayerMap = MakeCollegePlayerMapByTeamID(collegePlayers, true) - injuredCollegePlayers = MakeCollegeInjuryList(collegePlayers) - fullCollegePlayerMap := MakeCollegePlayerMap(collegePlayers) - topCfbPassers = getCFBOrderedListByStatType("PASSING", uint(cfbTeamId), cfbStats, fullCollegePlayerMap) - topCfbRushers = getCFBOrderedListByStatType("RUSHING", uint(cfbTeamId), cfbStats, fullCollegePlayerMap) - topCfbReceivers = getCFBOrderedListByStatType("RECEIVING", uint(cfbTeamId), cfbStats, fullCollegePlayerMap) - mu.Unlock() + teamPlayers := GetAllCollegePlayersByTeamId(collegeID) + collegePlayerMap = MakeCollegePlayerMapByTeamID(teamPlayers, false) + cfbStats := repository.FindCollegePlayerSeasonStatsRecords(repository.StatsQuery{SeasonID: seasonID, GameType: gtStr, TeamID: collegeID}) + teamPlayerMap := MakeCollegePlayerMap(teamPlayers) + topCfbPassers = getCFBOrderedListByStatType("PASSING", uint(cfbTeamId), cfbStats, teamPlayerMap) + topCfbRushers = getCFBOrderedListByStatType("RUSHING", uint(cfbTeamId), cfbStats, teamPlayerMap) + topCfbReceivers = getCFBOrderedListByStatType("RECEIVING", uint(cfbTeamId), cfbStats, teamPlayerMap) }() go func() { defer wg.Done() @@ -238,11 +274,9 @@ func GetLandingBootstrap(collegeID, proID string) BootstrapDataLanding { wg.Add(6) go func() { defer wg.Done() - mu.Lock() proTeam = GetNFLTeamByTeamID(proID) proTeam.UpdateLatestInstance() repository.SaveNFLTeam(proTeam, dbprovider.GetInstance().GetDB()) - mu.Unlock() }() go func() { @@ -251,20 +285,14 @@ func GetLandingBootstrap(collegeID, proID string) BootstrapDataLanding { }() go func() { defer wg.Done() - log.Println("Fetching NFL Players for roster mapping...") - proPlayers := GetAllNFLPlayers() - nflStats := GetNFLPlayerSeasonStatsBySeason(seasonID, gtStr) - - mu.Lock() - nflPlayerMap := MakeNFLPlayerMap(proPlayers) - proRosterMap = MakeNFLPlayerMapByTeamID(proPlayers, true) - injuredProPlayers = MakeProInjuryList(proPlayers) - practiceSquadPlayers = MakePracticeSquadList(proPlayers) + log.Println("Fetching NFL Players for leaderboard...") + teamPlayers := GetNFLPlayersByTeamID(proID) + nflStats := repository.FindProPlayerSeasonStatsRecords(repository.StatsQuery{SeasonID: seasonID, GameType: gtStr, TeamID: proID}) + nflPlayerMap := MakeNFLPlayerMap(teamPlayers) topNflPassers = getNFLOrderedListByStatType("PASSING", uint(nflTeamID), nflStats, nflPlayerMap) topNflRushers = getNFLOrderedListByStatType("RUSHING", uint(nflTeamID), nflStats, nflPlayerMap) topNflReceivers = getNFLOrderedListByStatType("RECEIVING", uint(nflTeamID), nflStats, nflPlayerMap) - mu.Unlock() - log.Println("Fetched NFL Players, roster count:", len(proRosterMap), "injured count:", len(injuredProPlayers)) + log.Println("Fetched NFL leaderboard players, count:", len(teamPlayers)) }() go func() { defer wg.Done() @@ -289,22 +317,19 @@ func GetLandingBootstrap(collegeID, proID string) BootstrapDataLanding { wg.Wait() return BootstrapDataLanding{ CollegeTeam: collegeTeam, - CollegeRosterMap: collegePlayerMap, - CollegeInjuryReport: injuredCollegePlayers, CollegeNotifications: collegeNotifications, AllCollegeGames: collegeGames, ProTeam: proTeam, ProNotifications: proNotifications, AllProGames: proGames, + CollegeRosterMap: collegePlayerMap, + ProRosterMap: proRosterMap, TopCFBPassers: topCfbPassers, TopCFBRushers: topCfbRushers, TopCFBReceivers: topCfbReceivers, TopNFLPassers: topNflPassers, TopNFLRushers: topNflRushers, TopNFLReceivers: topNflReceivers, - ProRosterMap: proRosterMap, - PracticeSquadPlayers: practiceSquadPlayers, - ProInjuryReport: injuredProPlayers, CapsheetMap: capsheetMap, CollegeStandings: collegeStandings, ProStandings: proStandings, diff --git a/managers/BootstrapManager_easyjson.go b/managers/BootstrapManager_easyjson.go index 876d6b8..2107fdf 100644 --- a/managers/BootstrapManager_easyjson.go +++ b/managers/BootstrapManager_easyjson.go @@ -777,63 +777,63 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in *jlexer.Lexer, ou case "PreviousTeam": out.PreviousTeam = string(in.String()) case "Height": - out.Height = int(in.Int()) + out.Height = int8(in.Int8()) case "Weight": - out.Weight = int(in.Int()) + out.Weight = int8(in.Int8()) case "Age": - out.Age = int(in.Int()) + out.Age = int8(in.Int8()) case "Stars": - out.Stars = int(in.Int()) + out.Stars = int8(in.Int8()) case "Overall": - out.Overall = int(in.Int()) + out.Overall = int8(in.Int8()) case "Stamina": - out.Stamina = int(in.Int()) + out.Stamina = int8(in.Int8()) case "Injury": - out.Injury = int(in.Int()) + out.Injury = int8(in.Int8()) case "FootballIQ": - out.FootballIQ = int(in.Int()) + out.FootballIQ = int8(in.Int8()) case "Speed": - out.Speed = int(in.Int()) + out.Speed = int8(in.Int8()) case "Carrying": - out.Carrying = int(in.Int()) + out.Carrying = int8(in.Int8()) case "Agility": - out.Agility = int(in.Int()) + out.Agility = int8(in.Int8()) case "Catching": - out.Catching = int(in.Int()) + out.Catching = int8(in.Int8()) case "RouteRunning": - out.RouteRunning = int(in.Int()) + out.RouteRunning = int8(in.Int8()) case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) + out.ZoneCoverage = int8(in.Int8()) case "ManCoverage": - out.ManCoverage = int(in.Int()) + out.ManCoverage = int8(in.Int8()) case "Strength": - out.Strength = int(in.Int()) + out.Strength = int8(in.Int8()) case "Tackle": - out.Tackle = int(in.Int()) + out.Tackle = int8(in.Int8()) case "PassBlock": - out.PassBlock = int(in.Int()) + out.PassBlock = int8(in.Int8()) case "RunBlock": - out.RunBlock = int(in.Int()) + out.RunBlock = int8(in.Int8()) case "PassRush": - out.PassRush = int(in.Int()) + out.PassRush = int8(in.Int8()) case "RunDefense": - out.RunDefense = int(in.Int()) + out.RunDefense = int8(in.Int8()) case "ThrowPower": - out.ThrowPower = int(in.Int()) + out.ThrowPower = int8(in.Int8()) case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) + out.ThrowAccuracy = int8(in.Int8()) case "KickAccuracy": - out.KickAccuracy = int(in.Int()) + out.KickAccuracy = int8(in.Int8()) case "KickPower": - out.KickPower = int(in.Int()) + out.KickPower = int8(in.Int8()) case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) + out.PuntAccuracy = int8(in.Int8()) case "PuntPower": - out.PuntPower = int(in.Int()) + out.PuntPower = int8(in.Int8()) case "Progression": - out.Progression = int(in.Int()) + out.Progression = int8(in.Int8()) case "Discipline": - out.Discipline = int(in.Int()) + out.Discipline = int8(in.Int8()) case "PotentialGrade": out.PotentialGrade = string(in.String()) case "FreeAgency": @@ -1067,147 +1067,147 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out *jwriter.Writer, { const prefix string = ",\"Height\":" out.RawString(prefix) - out.Int(int(in.Height)) + out.Int8(int8(in.Height)) } { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int(int(in.Weight)) + out.Int8(int8(in.Weight)) } { const prefix string = ",\"Age\":" out.RawString(prefix) - out.Int(int(in.Age)) + out.Int8(int8(in.Age)) } { const prefix string = ",\"Stars\":" out.RawString(prefix) - out.Int(int(in.Stars)) + out.Int8(int8(in.Stars)) } { const prefix string = ",\"Overall\":" out.RawString(prefix) - out.Int(int(in.Overall)) + out.Int8(int8(in.Overall)) } { const prefix string = ",\"Stamina\":" out.RawString(prefix) - out.Int(int(in.Stamina)) + out.Int8(int8(in.Stamina)) } { const prefix string = ",\"Injury\":" out.RawString(prefix) - out.Int(int(in.Injury)) + out.Int8(int8(in.Injury)) } { const prefix string = ",\"FootballIQ\":" out.RawString(prefix) - out.Int(int(in.FootballIQ)) + out.Int8(int8(in.FootballIQ)) } { const prefix string = ",\"Speed\":" out.RawString(prefix) - out.Int(int(in.Speed)) + out.Int8(int8(in.Speed)) } { const prefix string = ",\"Carrying\":" out.RawString(prefix) - out.Int(int(in.Carrying)) + out.Int8(int8(in.Carrying)) } { const prefix string = ",\"Agility\":" out.RawString(prefix) - out.Int(int(in.Agility)) + out.Int8(int8(in.Agility)) } { const prefix string = ",\"Catching\":" out.RawString(prefix) - out.Int(int(in.Catching)) + out.Int8(int8(in.Catching)) } { const prefix string = ",\"RouteRunning\":" out.RawString(prefix) - out.Int(int(in.RouteRunning)) + out.Int8(int8(in.RouteRunning)) } { const prefix string = ",\"ZoneCoverage\":" out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) + out.Int8(int8(in.ZoneCoverage)) } { const prefix string = ",\"ManCoverage\":" out.RawString(prefix) - out.Int(int(in.ManCoverage)) + out.Int8(int8(in.ManCoverage)) } { const prefix string = ",\"Strength\":" out.RawString(prefix) - out.Int(int(in.Strength)) + out.Int8(int8(in.Strength)) } { const prefix string = ",\"Tackle\":" out.RawString(prefix) - out.Int(int(in.Tackle)) + out.Int8(int8(in.Tackle)) } { const prefix string = ",\"PassBlock\":" out.RawString(prefix) - out.Int(int(in.PassBlock)) + out.Int8(int8(in.PassBlock)) } { const prefix string = ",\"RunBlock\":" out.RawString(prefix) - out.Int(int(in.RunBlock)) + out.Int8(int8(in.RunBlock)) } { const prefix string = ",\"PassRush\":" out.RawString(prefix) - out.Int(int(in.PassRush)) + out.Int8(int8(in.PassRush)) } { const prefix string = ",\"RunDefense\":" out.RawString(prefix) - out.Int(int(in.RunDefense)) + out.Int8(int8(in.RunDefense)) } { const prefix string = ",\"ThrowPower\":" out.RawString(prefix) - out.Int(int(in.ThrowPower)) + out.Int8(int8(in.ThrowPower)) } { const prefix string = ",\"ThrowAccuracy\":" out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) + out.Int8(int8(in.ThrowAccuracy)) } { const prefix string = ",\"KickAccuracy\":" out.RawString(prefix) - out.Int(int(in.KickAccuracy)) + out.Int8(int8(in.KickAccuracy)) } { const prefix string = ",\"KickPower\":" out.RawString(prefix) - out.Int(int(in.KickPower)) + out.Int8(int8(in.KickPower)) } { const prefix string = ",\"PuntAccuracy\":" out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) + out.Int8(int8(in.PuntAccuracy)) } { const prefix string = ",\"PuntPower\":" out.RawString(prefix) - out.Int(int(in.PuntPower)) + out.Int8(int8(in.PuntPower)) } { const prefix string = ",\"Progression\":" out.RawString(prefix) - out.Int(int(in.Progression)) + out.Int8(int8(in.Progression)) } { const prefix string = ",\"Discipline\":" out.RawString(prefix) - out.Int(int(in.Discipline)) + out.Int8(int8(in.Discipline)) } { const prefix string = ",\"PotentialGrade\":" @@ -1439,39 +1439,39 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in *jlexer.Lexer, ou case "IsRedshirt": out.IsRedshirt = bool(in.Bool()) case "PassingYards": - out.PassingYards = int(in.Int()) + out.PassingYards = int16(in.Int16()) case "PassAttempts": - out.PassAttempts = int(in.Int()) + out.PassAttempts = int16(in.Int16()) case "PassCompletions": - out.PassCompletions = int(in.Int()) + out.PassCompletions = int16(in.Int16()) case "PassingTDs": - out.PassingTDs = int(in.Int()) + out.PassingTDs = int16(in.Int16()) case "Interceptions": - out.Interceptions = int(in.Int()) + out.Interceptions = int16(in.Int16()) case "LongestPass": - out.LongestPass = int(in.Int()) + out.LongestPass = int16(in.Int16()) case "Sacks": - out.Sacks = int(in.Int()) + out.Sacks = int16(in.Int16()) case "RushAttempts": - out.RushAttempts = int(in.Int()) + out.RushAttempts = int16(in.Int16()) case "RushingYards": - out.RushingYards = int(in.Int()) + out.RushingYards = int16(in.Int16()) case "RushingTDs": - out.RushingTDs = int(in.Int()) + out.RushingTDs = int16(in.Int16()) case "Fumbles": - out.Fumbles = int(in.Int()) + out.Fumbles = int16(in.Int16()) case "LongestRush": - out.LongestRush = int(in.Int()) + out.LongestRush = int16(in.Int16()) case "Targets": - out.Targets = int(in.Int()) + out.Targets = int16(in.Int16()) case "Catches": - out.Catches = int(in.Int()) + out.Catches = int16(in.Int16()) case "ReceivingYards": - out.ReceivingYards = int(in.Int()) + out.ReceivingYards = int16(in.Int16()) case "ReceivingTDs": - out.ReceivingTDs = int(in.Int()) + out.ReceivingTDs = int16(in.Int16()) case "LongestReception": - out.LongestReception = int(in.Int()) + out.LongestReception = int16(in.Int16()) case "SoloTackles": out.SoloTackles = float64(in.Float64()) case "AssistedTackles": @@ -1481,69 +1481,69 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in *jlexer.Lexer, ou case "SacksMade": out.SacksMade = float64(in.Float64()) case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) + out.ForcedFumbles = int16(in.Int16()) case "RecoveredFumbles": - out.RecoveredFumbles = int(in.Int()) + out.RecoveredFumbles = int16(in.Int16()) case "PassDeflections": - out.PassDeflections = int(in.Int()) + out.PassDeflections = int16(in.Int16()) case "InterceptionsCaught": - out.InterceptionsCaught = int(in.Int()) + out.InterceptionsCaught = int16(in.Int16()) case "Safeties": - out.Safeties = int(in.Int()) + out.Safeties = int16(in.Int16()) case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) + out.DefensiveTDs = int16(in.Int16()) case "FGMade": - out.FGMade = int(in.Int()) + out.FGMade = int16(in.Int16()) case "FGAttempts": - out.FGAttempts = int(in.Int()) + out.FGAttempts = int16(in.Int16()) case "LongestFG": - out.LongestFG = int(in.Int()) + out.LongestFG = int16(in.Int16()) case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) + out.ExtraPointsMade = int16(in.Int16()) case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) + out.ExtraPointsAttempted = int16(in.Int16()) case "KickoffTouchbacks": - out.KickoffTouchbacks = int(in.Int()) + out.KickoffTouchbacks = int16(in.Int16()) case "Punts": - out.Punts = int(in.Int()) + out.Punts = int16(in.Int16()) case "GrossPuntDistance": - out.GrossPuntDistance = int(in.Int()) + out.GrossPuntDistance = int16(in.Int16()) case "NetPuntDistance": - out.NetPuntDistance = int(in.Int()) + out.NetPuntDistance = int16(in.Int16()) case "PuntTouchbacks": - out.PuntTouchbacks = int(in.Int()) + out.PuntTouchbacks = int16(in.Int16()) case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) + out.PuntsInside20 = int16(in.Int16()) case "KickReturns": - out.KickReturns = int(in.Int()) + out.KickReturns = int16(in.Int16()) case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) + out.KickReturnTDs = int16(in.Int16()) case "KickReturnYards": - out.KickReturnYards = int(in.Int()) + out.KickReturnYards = int16(in.Int16()) case "PuntReturns": - out.PuntReturns = int(in.Int()) + out.PuntReturns = int16(in.Int16()) case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) + out.PuntReturnTDs = int16(in.Int16()) case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) + out.PuntReturnYards = int16(in.Int16()) case "STSoloTackles": out.STSoloTackles = float64(in.Float64()) case "STAssistedTackles": out.STAssistedTackles = float64(in.Float64()) case "PuntsBlocked": - out.PuntsBlocked = int(in.Int()) + out.PuntsBlocked = int16(in.Int16()) case "FGBlocked": - out.FGBlocked = int(in.Int()) + out.FGBlocked = int16(in.Int16()) case "Snaps": - out.Snaps = int(in.Int()) + out.Snaps = int16(in.Int16()) case "Pancakes": - out.Pancakes = int(in.Int()) + out.Pancakes = int16(in.Int16()) case "SacksAllowed": - out.SacksAllowed = int(in.Int()) + out.SacksAllowed = int16(in.Int16()) case "PlayedGame": - out.PlayedGame = int(in.Int()) + out.PlayedGame = int16(in.Int16()) case "StartedGame": - out.StartedGame = int(in.Int()) + out.StartedGame = int16(in.Int16()) case "WasInjured": out.WasInjured = bool(in.Bool()) case "WeeksOfRecovery": @@ -1636,87 +1636,87 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out *jwriter.Writer, { const prefix string = ",\"PassingYards\":" out.RawString(prefix) - out.Int(int(in.PassingYards)) + out.Int16(int16(in.PassingYards)) } { const prefix string = ",\"PassAttempts\":" out.RawString(prefix) - out.Int(int(in.PassAttempts)) + out.Int16(int16(in.PassAttempts)) } { const prefix string = ",\"PassCompletions\":" out.RawString(prefix) - out.Int(int(in.PassCompletions)) + out.Int16(int16(in.PassCompletions)) } { const prefix string = ",\"PassingTDs\":" out.RawString(prefix) - out.Int(int(in.PassingTDs)) + out.Int16(int16(in.PassingTDs)) } { const prefix string = ",\"Interceptions\":" out.RawString(prefix) - out.Int(int(in.Interceptions)) + out.Int16(int16(in.Interceptions)) } { const prefix string = ",\"LongestPass\":" out.RawString(prefix) - out.Int(int(in.LongestPass)) + out.Int16(int16(in.LongestPass)) } { const prefix string = ",\"Sacks\":" out.RawString(prefix) - out.Int(int(in.Sacks)) + out.Int16(int16(in.Sacks)) } { const prefix string = ",\"RushAttempts\":" out.RawString(prefix) - out.Int(int(in.RushAttempts)) + out.Int16(int16(in.RushAttempts)) } { const prefix string = ",\"RushingYards\":" out.RawString(prefix) - out.Int(int(in.RushingYards)) + out.Int16(int16(in.RushingYards)) } { const prefix string = ",\"RushingTDs\":" out.RawString(prefix) - out.Int(int(in.RushingTDs)) + out.Int16(int16(in.RushingTDs)) } { const prefix string = ",\"Fumbles\":" out.RawString(prefix) - out.Int(int(in.Fumbles)) + out.Int16(int16(in.Fumbles)) } { const prefix string = ",\"LongestRush\":" out.RawString(prefix) - out.Int(int(in.LongestRush)) + out.Int16(int16(in.LongestRush)) } { const prefix string = ",\"Targets\":" out.RawString(prefix) - out.Int(int(in.Targets)) + out.Int16(int16(in.Targets)) } { const prefix string = ",\"Catches\":" out.RawString(prefix) - out.Int(int(in.Catches)) + out.Int16(int16(in.Catches)) } { const prefix string = ",\"ReceivingYards\":" out.RawString(prefix) - out.Int(int(in.ReceivingYards)) + out.Int16(int16(in.ReceivingYards)) } { const prefix string = ",\"ReceivingTDs\":" out.RawString(prefix) - out.Int(int(in.ReceivingTDs)) + out.Int16(int16(in.ReceivingTDs)) } { const prefix string = ",\"LongestReception\":" out.RawString(prefix) - out.Int(int(in.LongestReception)) + out.Int16(int16(in.LongestReception)) } { const prefix string = ",\"SoloTackles\":" @@ -1741,117 +1741,117 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out *jwriter.Writer, { const prefix string = ",\"ForcedFumbles\":" out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) + out.Int16(int16(in.ForcedFumbles)) } { const prefix string = ",\"RecoveredFumbles\":" out.RawString(prefix) - out.Int(int(in.RecoveredFumbles)) + out.Int16(int16(in.RecoveredFumbles)) } { const prefix string = ",\"PassDeflections\":" out.RawString(prefix) - out.Int(int(in.PassDeflections)) + out.Int16(int16(in.PassDeflections)) } { const prefix string = ",\"InterceptionsCaught\":" out.RawString(prefix) - out.Int(int(in.InterceptionsCaught)) + out.Int16(int16(in.InterceptionsCaught)) } { const prefix string = ",\"Safeties\":" out.RawString(prefix) - out.Int(int(in.Safeties)) + out.Int16(int16(in.Safeties)) } { const prefix string = ",\"DefensiveTDs\":" out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) + out.Int16(int16(in.DefensiveTDs)) } { const prefix string = ",\"FGMade\":" out.RawString(prefix) - out.Int(int(in.FGMade)) + out.Int16(int16(in.FGMade)) } { const prefix string = ",\"FGAttempts\":" out.RawString(prefix) - out.Int(int(in.FGAttempts)) + out.Int16(int16(in.FGAttempts)) } { const prefix string = ",\"LongestFG\":" out.RawString(prefix) - out.Int(int(in.LongestFG)) + out.Int16(int16(in.LongestFG)) } { const prefix string = ",\"ExtraPointsMade\":" out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) + out.Int16(int16(in.ExtraPointsMade)) } { const prefix string = ",\"ExtraPointsAttempted\":" out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) + out.Int16(int16(in.ExtraPointsAttempted)) } { const prefix string = ",\"KickoffTouchbacks\":" out.RawString(prefix) - out.Int(int(in.KickoffTouchbacks)) + out.Int16(int16(in.KickoffTouchbacks)) } { const prefix string = ",\"Punts\":" out.RawString(prefix) - out.Int(int(in.Punts)) + out.Int16(int16(in.Punts)) } { const prefix string = ",\"GrossPuntDistance\":" out.RawString(prefix) - out.Int(int(in.GrossPuntDistance)) + out.Int16(int16(in.GrossPuntDistance)) } { const prefix string = ",\"NetPuntDistance\":" out.RawString(prefix) - out.Int(int(in.NetPuntDistance)) + out.Int16(int16(in.NetPuntDistance)) } { const prefix string = ",\"PuntTouchbacks\":" out.RawString(prefix) - out.Int(int(in.PuntTouchbacks)) + out.Int16(int16(in.PuntTouchbacks)) } { const prefix string = ",\"PuntsInside20\":" out.RawString(prefix) - out.Int(int(in.PuntsInside20)) + out.Int16(int16(in.PuntsInside20)) } { const prefix string = ",\"KickReturns\":" out.RawString(prefix) - out.Int(int(in.KickReturns)) + out.Int16(int16(in.KickReturns)) } { const prefix string = ",\"KickReturnTDs\":" out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) + out.Int16(int16(in.KickReturnTDs)) } { const prefix string = ",\"KickReturnYards\":" out.RawString(prefix) - out.Int(int(in.KickReturnYards)) + out.Int16(int16(in.KickReturnYards)) } { const prefix string = ",\"PuntReturns\":" out.RawString(prefix) - out.Int(int(in.PuntReturns)) + out.Int16(int16(in.PuntReturns)) } { const prefix string = ",\"PuntReturnTDs\":" out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) + out.Int16(int16(in.PuntReturnTDs)) } { const prefix string = ",\"PuntReturnYards\":" out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) + out.Int16(int16(in.PuntReturnYards)) } { const prefix string = ",\"STSoloTackles\":" @@ -1866,37 +1866,37 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out *jwriter.Writer, { const prefix string = ",\"PuntsBlocked\":" out.RawString(prefix) - out.Int(int(in.PuntsBlocked)) + out.Int16(int16(in.PuntsBlocked)) } { const prefix string = ",\"FGBlocked\":" out.RawString(prefix) - out.Int(int(in.FGBlocked)) + out.Int16(int16(in.FGBlocked)) } { const prefix string = ",\"Snaps\":" out.RawString(prefix) - out.Int(int(in.Snaps)) + out.Int16(int16(in.Snaps)) } { const prefix string = ",\"Pancakes\":" out.RawString(prefix) - out.Int(int(in.Pancakes)) + out.Int16(int16(in.Pancakes)) } { const prefix string = ",\"SacksAllowed\":" out.RawString(prefix) - out.Int(int(in.SacksAllowed)) + out.Int16(int16(in.SacksAllowed)) } { const prefix string = ",\"PlayedGame\":" out.RawString(prefix) - out.Int(int(in.PlayedGame)) + out.Int16(int16(in.PlayedGame)) } { const prefix string = ",\"StartedGame\":" out.RawString(prefix) - out.Int(int(in.StartedGame)) + out.Int16(int16(in.StartedGame)) } { const prefix string = ",\"WasInjured\":" @@ -2505,39 +2505,39 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in *jlexer.Lexer, out case "Completion": out.Completion = float64(in.Float64()) case "PassingYards": - out.PassingYards = int(in.Int()) + out.PassingYards = int16(in.Int16()) case "PassAttempts": - out.PassAttempts = int(in.Int()) + out.PassAttempts = int16(in.Int16()) case "PassCompletions": - out.PassCompletions = int(in.Int()) + out.PassCompletions = int16(in.Int16()) case "PassingTDs": - out.PassingTDs = int(in.Int()) + out.PassingTDs = int16(in.Int16()) case "Interceptions": - out.Interceptions = int(in.Int()) + out.Interceptions = int16(in.Int16()) case "LongestPass": - out.LongestPass = int(in.Int()) + out.LongestPass = int16(in.Int16()) case "Sacks": - out.Sacks = int(in.Int()) + out.Sacks = int16(in.Int16()) case "RushAttempts": - out.RushAttempts = int(in.Int()) + out.RushAttempts = int16(in.Int16()) case "RushingYards": - out.RushingYards = int(in.Int()) + out.RushingYards = int16(in.Int16()) case "RushingTDs": - out.RushingTDs = int(in.Int()) + out.RushingTDs = int16(in.Int16()) case "Fumbles": - out.Fumbles = int(in.Int()) + out.Fumbles = int16(in.Int16()) case "LongestRush": - out.LongestRush = int(in.Int()) + out.LongestRush = int16(in.Int16()) case "Targets": - out.Targets = int(in.Int()) + out.Targets = int16(in.Int16()) case "Catches": - out.Catches = int(in.Int()) + out.Catches = int16(in.Int16()) case "ReceivingYards": - out.ReceivingYards = int(in.Int()) + out.ReceivingYards = int16(in.Int16()) case "ReceivingTDs": - out.ReceivingTDs = int(in.Int()) + out.ReceivingTDs = int16(in.Int16()) case "LongestReception": - out.LongestReception = int(in.Int()) + out.LongestReception = int16(in.Int16()) case "SoloTackles": out.SoloTackles = float64(in.Float64()) case "AssistedTackles": @@ -2547,69 +2547,69 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs(in *jlexer.Lexer, out case "SacksMade": out.SacksMade = float64(in.Float64()) case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) + out.ForcedFumbles = int16(in.Int16()) case "RecoveredFumbles": - out.RecoveredFumbles = int(in.Int()) + out.RecoveredFumbles = int16(in.Int16()) case "PassDeflections": - out.PassDeflections = int(in.Int()) + out.PassDeflections = int16(in.Int16()) case "InterceptionsCaught": - out.InterceptionsCaught = int(in.Int()) + out.InterceptionsCaught = int16(in.Int16()) case "Safeties": - out.Safeties = int(in.Int()) + out.Safeties = int16(in.Int16()) case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) + out.DefensiveTDs = int16(in.Int16()) case "FGMade": - out.FGMade = int(in.Int()) + out.FGMade = int16(in.Int16()) case "FGAttempts": - out.FGAttempts = int(in.Int()) + out.FGAttempts = int16(in.Int16()) case "LongestFG": - out.LongestFG = int(in.Int()) + out.LongestFG = int16(in.Int16()) case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) + out.ExtraPointsMade = int16(in.Int16()) case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) + out.ExtraPointsAttempted = int16(in.Int16()) case "KickoffTouchbacks": - out.KickoffTouchbacks = int(in.Int()) + out.KickoffTouchbacks = int16(in.Int16()) case "Punts": - out.Punts = int(in.Int()) + out.Punts = int16(in.Int16()) case "GrossPuntDistance": - out.GrossPuntDistance = int(in.Int()) + out.GrossPuntDistance = int16(in.Int16()) case "NetPuntDistance": - out.NetPuntDistance = int(in.Int()) + out.NetPuntDistance = int16(in.Int16()) case "PuntTouchbacks": - out.PuntTouchbacks = int(in.Int()) + out.PuntTouchbacks = int16(in.Int16()) case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) + out.PuntsInside20 = int16(in.Int16()) case "KickReturns": - out.KickReturns = int(in.Int()) + out.KickReturns = int16(in.Int16()) case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) + out.KickReturnTDs = int16(in.Int16()) case "KickReturnYards": - out.KickReturnYards = int(in.Int()) + out.KickReturnYards = int16(in.Int16()) case "PuntReturns": - out.PuntReturns = int(in.Int()) + out.PuntReturns = int16(in.Int16()) case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) + out.PuntReturnTDs = int16(in.Int16()) case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) + out.PuntReturnYards = int16(in.Int16()) case "STSoloTackles": out.STSoloTackles = float64(in.Float64()) case "STAssistedTackles": out.STAssistedTackles = float64(in.Float64()) case "PuntsBlocked": - out.PuntsBlocked = int(in.Int()) + out.PuntsBlocked = int16(in.Int16()) case "FGBlocked": - out.FGBlocked = int(in.Int()) + out.FGBlocked = int16(in.Int16()) case "Snaps": - out.Snaps = int(in.Int()) + out.Snaps = int16(in.Int16()) case "Pancakes": - out.Pancakes = int(in.Int()) + out.Pancakes = int16(in.Int16()) case "SacksAllowed": - out.SacksAllowed = int(in.Int()) + out.SacksAllowed = int16(in.Int16()) case "PlayedGame": - out.PlayedGame = int(in.Int()) + out.PlayedGame = int16(in.Int16()) case "StartedGame": - out.StartedGame = int(in.Int()) + out.StartedGame = int16(in.Int16()) case "WasInjured": out.WasInjured = bool(in.Bool()) case "WeeksOfRecovery": @@ -2722,87 +2722,87 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out *jwriter.Writer, { const prefix string = ",\"PassingYards\":" out.RawString(prefix) - out.Int(int(in.PassingYards)) + out.Int16(int16(in.PassingYards)) } { const prefix string = ",\"PassAttempts\":" out.RawString(prefix) - out.Int(int(in.PassAttempts)) + out.Int16(int16(in.PassAttempts)) } { const prefix string = ",\"PassCompletions\":" out.RawString(prefix) - out.Int(int(in.PassCompletions)) + out.Int16(int16(in.PassCompletions)) } { const prefix string = ",\"PassingTDs\":" out.RawString(prefix) - out.Int(int(in.PassingTDs)) + out.Int16(int16(in.PassingTDs)) } { const prefix string = ",\"Interceptions\":" out.RawString(prefix) - out.Int(int(in.Interceptions)) + out.Int16(int16(in.Interceptions)) } { const prefix string = ",\"LongestPass\":" out.RawString(prefix) - out.Int(int(in.LongestPass)) + out.Int16(int16(in.LongestPass)) } { const prefix string = ",\"Sacks\":" out.RawString(prefix) - out.Int(int(in.Sacks)) + out.Int16(int16(in.Sacks)) } { const prefix string = ",\"RushAttempts\":" out.RawString(prefix) - out.Int(int(in.RushAttempts)) + out.Int16(int16(in.RushAttempts)) } { const prefix string = ",\"RushingYards\":" out.RawString(prefix) - out.Int(int(in.RushingYards)) + out.Int16(int16(in.RushingYards)) } { const prefix string = ",\"RushingTDs\":" out.RawString(prefix) - out.Int(int(in.RushingTDs)) + out.Int16(int16(in.RushingTDs)) } { const prefix string = ",\"Fumbles\":" out.RawString(prefix) - out.Int(int(in.Fumbles)) + out.Int16(int16(in.Fumbles)) } { const prefix string = ",\"LongestRush\":" out.RawString(prefix) - out.Int(int(in.LongestRush)) + out.Int16(int16(in.LongestRush)) } { const prefix string = ",\"Targets\":" out.RawString(prefix) - out.Int(int(in.Targets)) + out.Int16(int16(in.Targets)) } { const prefix string = ",\"Catches\":" out.RawString(prefix) - out.Int(int(in.Catches)) + out.Int16(int16(in.Catches)) } { const prefix string = ",\"ReceivingYards\":" out.RawString(prefix) - out.Int(int(in.ReceivingYards)) + out.Int16(int16(in.ReceivingYards)) } { const prefix string = ",\"ReceivingTDs\":" out.RawString(prefix) - out.Int(int(in.ReceivingTDs)) + out.Int16(int16(in.ReceivingTDs)) } { const prefix string = ",\"LongestReception\":" out.RawString(prefix) - out.Int(int(in.LongestReception)) + out.Int16(int16(in.LongestReception)) } { const prefix string = ",\"SoloTackles\":" @@ -2827,117 +2827,117 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out *jwriter.Writer, { const prefix string = ",\"ForcedFumbles\":" out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) + out.Int16(int16(in.ForcedFumbles)) } { const prefix string = ",\"RecoveredFumbles\":" out.RawString(prefix) - out.Int(int(in.RecoveredFumbles)) + out.Int16(int16(in.RecoveredFumbles)) } { const prefix string = ",\"PassDeflections\":" out.RawString(prefix) - out.Int(int(in.PassDeflections)) + out.Int16(int16(in.PassDeflections)) } { const prefix string = ",\"InterceptionsCaught\":" out.RawString(prefix) - out.Int(int(in.InterceptionsCaught)) + out.Int16(int16(in.InterceptionsCaught)) } { const prefix string = ",\"Safeties\":" out.RawString(prefix) - out.Int(int(in.Safeties)) + out.Int16(int16(in.Safeties)) } { const prefix string = ",\"DefensiveTDs\":" out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) + out.Int16(int16(in.DefensiveTDs)) } { const prefix string = ",\"FGMade\":" out.RawString(prefix) - out.Int(int(in.FGMade)) + out.Int16(int16(in.FGMade)) } { const prefix string = ",\"FGAttempts\":" out.RawString(prefix) - out.Int(int(in.FGAttempts)) + out.Int16(int16(in.FGAttempts)) } { const prefix string = ",\"LongestFG\":" out.RawString(prefix) - out.Int(int(in.LongestFG)) + out.Int16(int16(in.LongestFG)) } { const prefix string = ",\"ExtraPointsMade\":" out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) + out.Int16(int16(in.ExtraPointsMade)) } { const prefix string = ",\"ExtraPointsAttempted\":" out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) + out.Int16(int16(in.ExtraPointsAttempted)) } { const prefix string = ",\"KickoffTouchbacks\":" out.RawString(prefix) - out.Int(int(in.KickoffTouchbacks)) + out.Int16(int16(in.KickoffTouchbacks)) } { const prefix string = ",\"Punts\":" out.RawString(prefix) - out.Int(int(in.Punts)) + out.Int16(int16(in.Punts)) } { const prefix string = ",\"GrossPuntDistance\":" out.RawString(prefix) - out.Int(int(in.GrossPuntDistance)) + out.Int16(int16(in.GrossPuntDistance)) } { const prefix string = ",\"NetPuntDistance\":" out.RawString(prefix) - out.Int(int(in.NetPuntDistance)) + out.Int16(int16(in.NetPuntDistance)) } { const prefix string = ",\"PuntTouchbacks\":" out.RawString(prefix) - out.Int(int(in.PuntTouchbacks)) + out.Int16(int16(in.PuntTouchbacks)) } { const prefix string = ",\"PuntsInside20\":" out.RawString(prefix) - out.Int(int(in.PuntsInside20)) + out.Int16(int16(in.PuntsInside20)) } { const prefix string = ",\"KickReturns\":" out.RawString(prefix) - out.Int(int(in.KickReturns)) + out.Int16(int16(in.KickReturns)) } { const prefix string = ",\"KickReturnTDs\":" out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) + out.Int16(int16(in.KickReturnTDs)) } { const prefix string = ",\"KickReturnYards\":" out.RawString(prefix) - out.Int(int(in.KickReturnYards)) + out.Int16(int16(in.KickReturnYards)) } { const prefix string = ",\"PuntReturns\":" out.RawString(prefix) - out.Int(int(in.PuntReturns)) + out.Int16(int16(in.PuntReturns)) } { const prefix string = ",\"PuntReturnTDs\":" out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) + out.Int16(int16(in.PuntReturnTDs)) } { const prefix string = ",\"PuntReturnYards\":" out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) + out.Int16(int16(in.PuntReturnYards)) } { const prefix string = ",\"STSoloTackles\":" @@ -2952,37 +2952,37 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out *jwriter.Writer, { const prefix string = ",\"PuntsBlocked\":" out.RawString(prefix) - out.Int(int(in.PuntsBlocked)) + out.Int16(int16(in.PuntsBlocked)) } { const prefix string = ",\"FGBlocked\":" out.RawString(prefix) - out.Int(int(in.FGBlocked)) + out.Int16(int16(in.FGBlocked)) } { const prefix string = ",\"Snaps\":" out.RawString(prefix) - out.Int(int(in.Snaps)) + out.Int16(int16(in.Snaps)) } { const prefix string = ",\"Pancakes\":" out.RawString(prefix) - out.Int(int(in.Pancakes)) + out.Int16(int16(in.Pancakes)) } { const prefix string = ",\"SacksAllowed\":" out.RawString(prefix) - out.Int(int(in.SacksAllowed)) + out.Int16(int16(in.SacksAllowed)) } { const prefix string = ",\"PlayedGame\":" out.RawString(prefix) - out.Int(int(in.PlayedGame)) + out.Int16(int16(in.PlayedGame)) } { const prefix string = ",\"StartedGame\":" out.RawString(prefix) - out.Int(int(in.StartedGame)) + out.Int16(int16(in.StartedGame)) } { const prefix string = ",\"WasInjured\":" @@ -3055,7 +3055,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs(out *jwriter.Writer, } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(in *jlexer.Lexer, out *BootstrapDataTeams) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(in *jlexer.Lexer, out *BootstrapPlayerData) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3074,48 +3074,145 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(in *jlexer.Lexer, o continue } switch key { - case "AllCollegeTeams": + case "CollegeRosterMap": if in.IsNull() { in.Skip() - out.AllCollegeTeams = nil + } else { + in.Delim('{') + out.CollegeRosterMap = make(map[uint][]structs.CollegePlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v18 []structs.CollegePlayer + if in.IsNull() { + in.Skip() + v18 = nil + } else { + in.Delim('[') + if v18 == nil { + if !in.IsDelim(']') { + v18 = make([]structs.CollegePlayer, 0, 0) + } else { + v18 = []structs.CollegePlayer{} + } + } else { + v18 = (v18)[:0] + } + for !in.IsDelim(']') { + var v19 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v19) + v18 = append(v18, v19) + in.WantComma() + } + in.Delim(']') + } + (out.CollegeRosterMap)[key] = v18 + in.WantComma() + } + in.Delim('}') + } + case "CollegeInjuryReport": + if in.IsNull() { + in.Skip() + out.CollegeInjuryReport = nil } else { in.Delim('[') - if out.AllCollegeTeams == nil { + if out.CollegeInjuryReport == nil { if !in.IsDelim(']') { - out.AllCollegeTeams = make([]structs.CollegeTeam, 0, 0) + out.CollegeInjuryReport = make([]structs.CollegePlayer, 0, 0) } else { - out.AllCollegeTeams = []structs.CollegeTeam{} + out.CollegeInjuryReport = []structs.CollegePlayer{} } } else { - out.AllCollegeTeams = (out.AllCollegeTeams)[:0] + out.CollegeInjuryReport = (out.CollegeInjuryReport)[:0] } for !in.IsDelim(']') { - var v18 structs.CollegeTeam - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v18) - out.AllCollegeTeams = append(out.AllCollegeTeams, v18) + var v20 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v20) + out.CollegeInjuryReport = append(out.CollegeInjuryReport, v20) in.WantComma() } in.Delim(']') } - case "AllProTeams": + case "ProRosterMap": if in.IsNull() { in.Skip() - out.AllProTeams = nil + } else { + in.Delim('{') + out.ProRosterMap = make(map[uint][]structs.NFLPlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v21 []structs.NFLPlayer + if in.IsNull() { + in.Skip() + v21 = nil + } else { + in.Delim('[') + if v21 == nil { + if !in.IsDelim(']') { + v21 = make([]structs.NFLPlayer, 0, 0) + } else { + v21 = []structs.NFLPlayer{} + } + } else { + v21 = (v21)[:0] + } + for !in.IsDelim(']') { + var v22 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v22) + v21 = append(v21, v22) + in.WantComma() + } + in.Delim(']') + } + (out.ProRosterMap)[key] = v21 + in.WantComma() + } + in.Delim('}') + } + case "ProInjuryReport": + if in.IsNull() { + in.Skip() + out.ProInjuryReport = nil } else { in.Delim('[') - if out.AllProTeams == nil { + if out.ProInjuryReport == nil { if !in.IsDelim(']') { - out.AllProTeams = make([]structs.NFLTeam, 0, 0) + out.ProInjuryReport = make([]structs.NFLPlayer, 0, 0) } else { - out.AllProTeams = []structs.NFLTeam{} + out.ProInjuryReport = []structs.NFLPlayer{} } } else { - out.AllProTeams = (out.AllProTeams)[:0] + out.ProInjuryReport = (out.ProInjuryReport)[:0] + } + for !in.IsDelim(']') { + var v23 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v23) + out.ProInjuryReport = append(out.ProInjuryReport, v23) + in.WantComma() + } + in.Delim(']') + } + case "PracticeSquadPlayers": + if in.IsNull() { + in.Skip() + out.PracticeSquadPlayers = nil + } else { + in.Delim('[') + if out.PracticeSquadPlayers == nil { + if !in.IsDelim(']') { + out.PracticeSquadPlayers = make([]structs.NFLPlayer, 0, 0) + } else { + out.PracticeSquadPlayers = []structs.NFLPlayer{} + } + } else { + out.PracticeSquadPlayers = (out.PracticeSquadPlayers)[:0] } for !in.IsDelim(']') { - var v19 structs.NFLTeam - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, &v19) - out.AllProTeams = append(out.AllProTeams, v19) + var v24 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v24) + out.PracticeSquadPlayers = append(out.PracticeSquadPlayers, v24) in.WantComma() } in.Delim(']') @@ -3130,38 +3227,118 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(out *jwriter.Writer, in BootstrapDataTeams) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(out *jwriter.Writer, in BootstrapPlayerData) { out.RawByte('{') first := true _ = first { - const prefix string = ",\"AllCollegeTeams\":" + const prefix string = ",\"CollegeRosterMap\":" out.RawString(prefix[1:]) - if in.AllCollegeTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if in.CollegeRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v25First := true + for v25Name, v25Value := range in.CollegeRosterMap { + if v25First { + v25First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v25Name)) + out.RawByte(':') + if v25Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v26, v27 := range v25Value { + if v26 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v27) + } + out.RawByte(']') + } + } + out.RawByte('}') + } + } + { + const prefix string = ",\"CollegeInjuryReport\":" + out.RawString(prefix) + if in.CollegeInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v20, v21 := range in.AllCollegeTeams { - if v20 > 0 { + for v28, v29 := range in.CollegeInjuryReport { + if v28 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v21) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v29) } out.RawByte(']') } } { - const prefix string = ",\"AllProTeams\":" + const prefix string = ",\"ProRosterMap\":" out.RawString(prefix) - if in.AllProTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if in.ProRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v30First := true + for v30Name, v30Value := range in.ProRosterMap { + if v30First { + v30First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v30Name)) + out.RawByte(':') + if v30Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v31, v32 := range v30Value { + if v31 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v32) + } + out.RawByte(']') + } + } + out.RawByte('}') + } + } + { + const prefix string = ",\"ProInjuryReport\":" + out.RawString(prefix) + if in.ProInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v33, v34 := range in.ProInjuryReport { + if v33 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v34) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"PracticeSquadPlayers\":" + out.RawString(prefix) + if in.PracticeSquadPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v22, v23 := range in.AllProTeams { - if v22 > 0 { + for v35, v36 := range in.PracticeSquadPlayers { + if v35 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, v23) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v36) } out.RawByte(']') } @@ -3170,29 +3347,29 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(out *jwriter.Writer } // MarshalJSON supports json.Marshaler interface -func (v BootstrapDataTeams) MarshalJSON() ([]byte, error) { +func (v BootstrapPlayerData) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v BootstrapDataTeams) MarshalEasyJSON(w *jwriter.Writer) { +func (v BootstrapPlayerData) MarshalEasyJSON(w *jwriter.Writer) { easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *BootstrapDataTeams) UnmarshalJSON(data []byte) error { +func (v *BootstrapPlayerData) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *BootstrapDataTeams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *BootstrapPlayerData) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers1(l, v) } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in *jlexer.Lexer, out *structs.NFLTeam) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, out *structs.NFLPlayer) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3211,830 +3388,918 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in *jlexer.Lexer, ou continue } switch key { - case "ConferenceID": - out.ConferenceID = uint(in.Uint()) - case "Conference": - out.Conference = string(in.String()) - case "DivisionID": - out.DivisionID = uint(in.Uint()) - case "Division": - out.Division = string(in.String()) - case "NFLOwnerID": - out.NFLOwnerID = uint(in.Uint()) - case "NFLOwnerName": - out.NFLOwnerName = string(in.String()) - case "NFLCoachID": - out.NFLCoachID = uint(in.Uint()) - case "NFLCoachName": - out.NFLCoachName = string(in.String()) - case "NFLGMID": - out.NFLGMID = uint(in.Uint()) - case "NFLGMName": - out.NFLGMName = string(in.String()) - case "NFLAssistantID": - out.NFLAssistantID = uint(in.Uint()) - case "NFLAssistantName": - out.NFLAssistantName = string(in.String()) - case "WaiverOrder": - out.WaiverOrder = uint(in.Uint()) - case "UsedTagThisSeason": - out.UsedTagThisSeason = bool(in.Bool()) - case "Capsheet": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &out.Capsheet) - case "Contracts": - if in.IsNull() { - in.Skip() - out.Contracts = nil - } else { - in.Delim('[') - if out.Contracts == nil { - if !in.IsDelim(']') { - out.Contracts = make([]structs.NFLContract, 0, 0) - } else { - out.Contracts = []structs.NFLContract{} - } - } else { - out.Contracts = (out.Contracts)[:0] - } - for !in.IsDelim(']') { - var v24 structs.NFLContract - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &v24) - out.Contracts = append(out.Contracts, v24) - in.WantComma() - } - in.Delim(']') - } - case "DraftPicks": + case "PlayerID": + out.PlayerID = int(in.Int()) + case "TeamID": + out.TeamID = int(in.Int()) + case "CollegeID": + out.CollegeID = uint(in.Uint()) + case "College": + out.College = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Experience": + out.Experience = uint(in.Uint()) + case "HighSchool": + out.HighSchool = string(in.String()) + case "Hometown": + out.Hometown = string(in.String()) + case "State": + out.State = string(in.String()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsPracticeSquad": + out.IsPracticeSquad = bool(in.Bool()) + case "IsFreeAgent": + out.IsFreeAgent = bool(in.Bool()) + case "IsWaived": + out.IsWaived = bool(in.Bool()) + case "IsOnTradeBlock": + out.IsOnTradeBlock = bool(in.Bool()) + case "IsAcceptingOffers": + out.IsAcceptingOffers = bool(in.Bool()) + case "IsNegotiating": + out.IsNegotiating = bool(in.Bool()) + case "NegotiationRound": + out.NegotiationRound = uint(in.Uint()) + case "SigningRound": + out.SigningRound = uint(in.Uint()) + case "MinimumValue": + out.MinimumValue = float64(in.Float64()) + case "OriginalMinimumValue": + out.OriginalMinimumValue = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "OriginalAAV": + out.OriginalAAV = float64(in.Float64()) + case "DraftedTeamID": + out.DraftedTeamID = uint(in.Uint()) + case "DraftedTeam": + out.DraftedTeam = string(in.String()) + case "DraftedRound": + out.DraftedRound = uint(in.Uint()) + case "DraftPickID": + out.DraftPickID = uint(in.Uint()) + case "DraftedPick": + out.DraftedPick = uint(in.Uint()) + case "ShowLetterGrade": + out.ShowLetterGrade = bool(in.Bool()) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "Rejections": + out.Rejections = int(in.Int()) + case "ProBowls": + out.ProBowls = uint8(in.Uint8()) + case "TagType": + out.TagType = uint8(in.Uint8()) + case "Stats": if in.IsNull() { in.Skip() - out.DraftPicks = nil + out.Stats = nil } else { in.Delim('[') - if out.DraftPicks == nil { + if out.Stats == nil { if !in.IsDelim(']') { - out.DraftPicks = make([]structs.NFLDraftPick, 0, 0) + out.Stats = make([]structs.NFLPlayerStats, 0, 0) } else { - out.DraftPicks = []structs.NFLDraftPick{} + out.Stats = []structs.NFLPlayerStats{} } } else { - out.DraftPicks = (out.DraftPicks)[:0] + out.Stats = (out.Stats)[:0] } for !in.IsDelim(']') { - var v25 structs.NFLDraftPick - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v25) - out.DraftPicks = append(out.DraftPicks, v25) + var v37 structs.NFLPlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, &v37) + out.Stats = append(out.Stats, v37) in.WantComma() } in.Delim(']') } - case "TeamStats": + case "SeasonStats": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &out.SeasonStats) + case "Contract": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &out.Contract) + case "Offers": if in.IsNull() { in.Skip() - out.TeamStats = nil + out.Offers = nil } else { in.Delim('[') - if out.TeamStats == nil { + if out.Offers == nil { if !in.IsDelim(']') { - out.TeamStats = make([]structs.NFLTeamStats, 0, 0) + out.Offers = make([]structs.FreeAgencyOffer, 0, 0) } else { - out.TeamStats = []structs.NFLTeamStats{} + out.Offers = []structs.FreeAgencyOffer{} } } else { - out.TeamStats = (out.TeamStats)[:0] + out.Offers = (out.Offers)[:0] } for !in.IsDelim(']') { - var v26 structs.NFLTeamStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v26) - out.TeamStats = append(out.TeamStats, v26) + var v38 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v38) + out.Offers = append(out.Offers, v38) in.WantComma() } in.Delim(']') } - case "TeamSeasonStats": + case "WaiverOffers": if in.IsNull() { in.Skip() - out.TeamSeasonStats = nil + out.WaiverOffers = nil } else { in.Delim('[') - if out.TeamSeasonStats == nil { + if out.WaiverOffers == nil { if !in.IsDelim(']') { - out.TeamSeasonStats = make([]structs.NFLTeamSeasonStats, 0, 0) + out.WaiverOffers = make([]structs.NFLWaiverOffer, 0, 1) } else { - out.TeamSeasonStats = []structs.NFLTeamSeasonStats{} + out.WaiverOffers = []structs.NFLWaiverOffer{} } } else { - out.TeamSeasonStats = (out.TeamSeasonStats)[:0] + out.WaiverOffers = (out.WaiverOffers)[:0] } for !in.IsDelim(']') { - var v27 structs.NFLTeamSeasonStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in, &v27) - out.TeamSeasonStats = append(out.TeamSeasonStats, v27) + var v39 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v39) + out.WaiverOffers = append(out.WaiverOffers, v39) in.WantComma() } in.Delim(']') } - case "TeamDepthChart": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &out.TeamDepthChart) - case "TeamGameplan": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &out.TeamGameplan) - case "Standings": + case "Extensions": if in.IsNull() { in.Skip() - out.Standings = nil + out.Extensions = nil } else { in.Delim('[') - if out.Standings == nil { + if out.Extensions == nil { if !in.IsDelim(']') { - out.Standings = make([]structs.NFLStandings, 0, 0) + out.Extensions = make([]structs.NFLExtensionOffer, 0, 0) } else { - out.Standings = []structs.NFLStandings{} + out.Extensions = []structs.NFLExtensionOffer{} } } else { - out.Standings = (out.Standings)[:0] + out.Extensions = (out.Extensions)[:0] } for !in.IsDelim(']') { - var v28 structs.NFLStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v28) - out.Standings = append(out.Standings, v28) + var v40 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in, &v40) + out.Extensions = append(out.Extensions, v40) in.WantComma() } in.Delim(']') } - case "TeamName": - out.TeamName = string(in.String()) - case "Mascot": - out.Mascot = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "Coach": - out.Coach = string(in.String()) - case "City": - out.City = string(in.String()) - case "State": - out.State = string(in.String()) - case "Country": - out.Country = string(in.String()) - case "StadiumID": - out.StadiumID = uint(in.Uint()) - case "Stadium": - out.Stadium = string(in.String()) - case "StadiumCapacity": - out.StadiumCapacity = int(in.Int()) - case "RecordAttendance": - out.RecordAttendance = int(in.Int()) - case "Enrollment": - out.Enrollment = int(in.Int()) - case "FirstPlayed": - out.FirstPlayed = int(in.Int()) - case "ColorOne": - out.ColorOne = string(in.String()) - case "ColorTwo": - out.ColorTwo = string(in.String()) - case "ColorThree": - out.ColorThree = string(in.String()) - case "DiscordID": - out.DiscordID = string(in.String()) - case "OverallGrade": - out.OverallGrade = string(in.String()) - case "OffenseGrade": - out.OffenseGrade = string(in.String()) - case "DefenseGrade": - out.DefenseGrade = string(in.String()) - case "SpecialTeamsGrade": - out.SpecialTeamsGrade = string(in.String()) - case "PenaltyMarks": - out.PenaltyMarks = uint8(in.Uint8()) - case "JerseyType": - out.JerseyType = uint8(in.Uint8()) - case "LastLogin": - if data := in.Raw(); in.Ok() { - in.AddError((out.LastLogin).UnmarshalJSON(data)) - } - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out *jwriter.Writer, in structs.NFLTeam) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"ConferenceID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.ConferenceID)) - } - { - const prefix string = ",\"Conference\":" - out.RawString(prefix) - out.String(string(in.Conference)) - } + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "Position": + out.Position = string(in.String()) + case "Archetype": + out.Archetype = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "Height": + out.Height = int8(in.Int8()) + case "Weight": + out.Weight = int8(in.Int8()) + case "Age": + out.Age = int8(in.Int8()) + case "Stars": + out.Stars = int8(in.Int8()) + case "Overall": + out.Overall = int8(in.Int8()) + case "Stamina": + out.Stamina = int8(in.Int8()) + case "Injury": + out.Injury = int8(in.Int8()) + case "FootballIQ": + out.FootballIQ = int8(in.Int8()) + case "Speed": + out.Speed = int8(in.Int8()) + case "Carrying": + out.Carrying = int8(in.Int8()) + case "Agility": + out.Agility = int8(in.Int8()) + case "Catching": + out.Catching = int8(in.Int8()) + case "RouteRunning": + out.RouteRunning = int8(in.Int8()) + case "ZoneCoverage": + out.ZoneCoverage = int8(in.Int8()) + case "ManCoverage": + out.ManCoverage = int8(in.Int8()) + case "Strength": + out.Strength = int8(in.Int8()) + case "Tackle": + out.Tackle = int8(in.Int8()) + case "PassBlock": + out.PassBlock = int8(in.Int8()) + case "RunBlock": + out.RunBlock = int8(in.Int8()) + case "PassRush": + out.PassRush = int8(in.Int8()) + case "RunDefense": + out.RunDefense = int8(in.Int8()) + case "ThrowPower": + out.ThrowPower = int8(in.Int8()) + case "ThrowAccuracy": + out.ThrowAccuracy = int8(in.Int8()) + case "KickAccuracy": + out.KickAccuracy = int8(in.Int8()) + case "KickPower": + out.KickPower = int8(in.Int8()) + case "PuntAccuracy": + out.PuntAccuracy = int8(in.Int8()) + case "PuntPower": + out.PuntPower = int8(in.Int8()) + case "Progression": + out.Progression = int8(in.Int8()) + case "Discipline": + out.Discipline = int8(in.Int8()) + case "PotentialGrade": + out.PotentialGrade = string(in.String()) + case "FreeAgency": + out.FreeAgency = string(in.String()) + case "Personality": + out.Personality = string(in.String()) + case "RecruitingBias": + out.RecruitingBias = string(in.String()) + case "WorkEthic": + out.WorkEthic = string(in.String()) + case "AcademicBias": + out.AcademicBias = string(in.String()) + case "IsInjured": + out.IsInjured = bool(in.Bool()) + case "InjuryName": + out.InjuryName = string(in.String()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryReserve": + out.InjuryReserve = bool(in.Bool()) + case "PrimeAge": + out.PrimeAge = uint(in.Uint()) + case "Clutch": + out.Clutch = int(in.Int()) + case "Shotgun": + out.Shotgun = int(in.Int()) + case "PositionTwo": + out.PositionTwo = string(in.String()) + case "ArchetypeTwo": + out.ArchetypeTwo = string(in.String()) + case "RelativeID": + out.RelativeID = uint(in.Uint()) + case "RelativeType": + out.RelativeType = uint(in.Uint()) + case "Notes": + out.Notes = string(in.String()) + case "ProgramPref": + out.ProgramPref = uint8(in.Uint8()) + case "ProfDevPref": + out.ProfDevPref = uint8(in.Uint8()) + case "TraditionsPref": + out.TraditionsPref = uint8(in.Uint8()) + case "FacilitiesPref": + out.FacilitiesPref = uint8(in.Uint8()) + case "AtmospherePref": + out.AtmospherePref = uint8(in.Uint8()) + case "AcademicsPref": + out.AcademicsPref = uint8(in.Uint8()) + case "ConferencePref": + out.ConferencePref = uint8(in.Uint8()) + case "CoachPref": + out.CoachPref = uint8(in.Uint8()) + case "SeasonMomentumPref": + out.SeasonMomentumPref = uint8(in.Uint8()) + case "CampusLifePref": + out.CampusLifePref = uint8(in.Uint8()) + case "ReligionPref": + out.ReligionPref = uint8(in.Uint8()) + case "ServiceAcademyPref": + out.ServiceAcademyPref = uint8(in.Uint8()) + case "SmallTownPref": + out.SmallTownPref = uint8(in.Uint8()) + case "BigCityPref": + out.BigCityPref = uint8(in.Uint8()) + case "MediaSpotlightPref": + out.MediaSpotlightPref = uint8(in.Uint8()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out *jwriter.Writer, in structs.NFLPlayer) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"DivisionID\":" - out.RawString(prefix) - out.Uint(uint(in.DivisionID)) + const prefix string = ",\"PlayerID\":" + out.RawString(prefix[1:]) + out.Int(int(in.PlayerID)) } { - const prefix string = ",\"Division\":" + const prefix string = ",\"TeamID\":" out.RawString(prefix) - out.String(string(in.Division)) + out.Int(int(in.TeamID)) } { - const prefix string = ",\"NFLOwnerID\":" + const prefix string = ",\"CollegeID\":" out.RawString(prefix) - out.Uint(uint(in.NFLOwnerID)) + out.Uint(uint(in.CollegeID)) } { - const prefix string = ",\"NFLOwnerName\":" + const prefix string = ",\"College\":" out.RawString(prefix) - out.String(string(in.NFLOwnerName)) + out.String(string(in.College)) } { - const prefix string = ",\"NFLCoachID\":" + const prefix string = ",\"TeamAbbr\":" out.RawString(prefix) - out.Uint(uint(in.NFLCoachID)) + out.String(string(in.TeamAbbr)) } { - const prefix string = ",\"NFLCoachName\":" + const prefix string = ",\"Experience\":" out.RawString(prefix) - out.String(string(in.NFLCoachName)) + out.Uint(uint(in.Experience)) } { - const prefix string = ",\"NFLGMID\":" + const prefix string = ",\"HighSchool\":" out.RawString(prefix) - out.Uint(uint(in.NFLGMID)) + out.String(string(in.HighSchool)) } { - const prefix string = ",\"NFLGMName\":" + const prefix string = ",\"Hometown\":" out.RawString(prefix) - out.String(string(in.NFLGMName)) + out.String(string(in.Hometown)) } { - const prefix string = ",\"NFLAssistantID\":" + const prefix string = ",\"State\":" out.RawString(prefix) - out.Uint(uint(in.NFLAssistantID)) + out.String(string(in.State)) } { - const prefix string = ",\"NFLAssistantName\":" + const prefix string = ",\"IsActive\":" out.RawString(prefix) - out.String(string(in.NFLAssistantName)) + out.Bool(bool(in.IsActive)) } { - const prefix string = ",\"WaiverOrder\":" + const prefix string = ",\"IsPracticeSquad\":" out.RawString(prefix) - out.Uint(uint(in.WaiverOrder)) + out.Bool(bool(in.IsPracticeSquad)) } { - const prefix string = ",\"UsedTagThisSeason\":" + const prefix string = ",\"IsFreeAgent\":" out.RawString(prefix) - out.Bool(bool(in.UsedTagThisSeason)) + out.Bool(bool(in.IsFreeAgent)) } { - const prefix string = ",\"Capsheet\":" + const prefix string = ",\"IsWaived\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, in.Capsheet) + out.Bool(bool(in.IsWaived)) } { - const prefix string = ",\"Contracts\":" + const prefix string = ",\"IsOnTradeBlock\":" out.RawString(prefix) - if in.Contracts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v29, v30 := range in.Contracts { - if v29 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v30) - } - out.RawByte(']') - } + out.Bool(bool(in.IsOnTradeBlock)) } { - const prefix string = ",\"DraftPicks\":" + const prefix string = ",\"IsAcceptingOffers\":" out.RawString(prefix) - if in.DraftPicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v31, v32 := range in.DraftPicks { - if v31 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v32) - } - out.RawByte(']') - } + out.Bool(bool(in.IsAcceptingOffers)) } { - const prefix string = ",\"TeamStats\":" + const prefix string = ",\"IsNegotiating\":" out.RawString(prefix) - if in.TeamStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v33, v34 := range in.TeamStats { - if v33 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v34) - } - out.RawByte(']') - } + out.Bool(bool(in.IsNegotiating)) } { - const prefix string = ",\"TeamSeasonStats\":" + const prefix string = ",\"NegotiationRound\":" out.RawString(prefix) - if in.TeamSeasonStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v35, v36 := range in.TeamSeasonStats { - if v35 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out, v36) - } - out.RawByte(']') - } + out.Uint(uint(in.NegotiationRound)) } { - const prefix string = ",\"TeamDepthChart\":" + const prefix string = ",\"SigningRound\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, in.TeamDepthChart) + out.Uint(uint(in.SigningRound)) } { - const prefix string = ",\"TeamGameplan\":" + const prefix string = ",\"MinimumValue\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, in.TeamGameplan) + out.Float64(float64(in.MinimumValue)) } { - const prefix string = ",\"Standings\":" + const prefix string = ",\"OriginalMinimumValue\":" out.RawString(prefix) - if in.Standings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.Float64(float64(in.OriginalMinimumValue)) + } + { + const prefix string = ",\"AAV\":" + out.RawString(prefix) + out.Float64(float64(in.AAV)) + } + { + const prefix string = ",\"OriginalAAV\":" + out.RawString(prefix) + out.Float64(float64(in.OriginalAAV)) + } + { + const prefix string = ",\"DraftedTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedTeamID)) + } + { + const prefix string = ",\"DraftedTeam\":" + out.RawString(prefix) + out.String(string(in.DraftedTeam)) + } + { + const prefix string = ",\"DraftedRound\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedRound)) + } + { + const prefix string = ",\"DraftPickID\":" + out.RawString(prefix) + out.Uint(uint(in.DraftPickID)) + } + { + const prefix string = ",\"DraftedPick\":" + out.RawString(prefix) + out.Uint(uint(in.DraftedPick)) + } + { + const prefix string = ",\"ShowLetterGrade\":" + out.RawString(prefix) + out.Bool(bool(in.ShowLetterGrade)) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"Rejections\":" + out.RawString(prefix) + out.Int(int(in.Rejections)) + } + { + const prefix string = ",\"ProBowls\":" + out.RawString(prefix) + out.Uint8(uint8(in.ProBowls)) + } + { + const prefix string = ",\"TagType\":" + out.RawString(prefix) + out.Uint8(uint8(in.TagType)) + } + { + const prefix string = ",\"Stats\":" + out.RawString(prefix) + if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v37, v38 := range in.Standings { - if v37 > 0 { + for v41, v42 := range in.Stats { + if v41 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v38) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, v42) } out.RawByte(']') } } { - const prefix string = ",\"TeamName\":" + const prefix string = ",\"SeasonStats\":" out.RawString(prefix) - out.String(string(in.TeamName)) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, in.SeasonStats) } { - const prefix string = ",\"Mascot\":" + const prefix string = ",\"Contract\":" out.RawString(prefix) - out.String(string(in.Mascot)) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, in.Contract) } { - const prefix string = ",\"TeamAbbr\":" + const prefix string = ",\"Offers\":" out.RawString(prefix) - out.String(string(in.TeamAbbr)) + if in.Offers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v43, v44 := range in.Offers { + if v43 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v44) + } + out.RawByte(']') + } } { - const prefix string = ",\"Coach\":" + const prefix string = ",\"WaiverOffers\":" out.RawString(prefix) - out.String(string(in.Coach)) + if in.WaiverOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v45, v46 := range in.WaiverOffers { + if v45 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v46) + } + out.RawByte(']') + } } { - const prefix string = ",\"City\":" + const prefix string = ",\"Extensions\":" out.RawString(prefix) - out.String(string(in.City)) + if in.Extensions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v47, v48 := range in.Extensions { + if v47 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out, v48) + } + out.RawByte(']') + } } { - const prefix string = ",\"State\":" + const prefix string = ",\"FirstName\":" out.RawString(prefix) - out.String(string(in.State)) + out.String(string(in.FirstName)) } { - const prefix string = ",\"Country\":" + const prefix string = ",\"LastName\":" out.RawString(prefix) - out.String(string(in.Country)) + out.String(string(in.LastName)) } { - const prefix string = ",\"StadiumID\":" + const prefix string = ",\"Position\":" out.RawString(prefix) - out.Uint(uint(in.StadiumID)) + out.String(string(in.Position)) } { - const prefix string = ",\"Stadium\":" + const prefix string = ",\"Archetype\":" out.RawString(prefix) - out.String(string(in.Stadium)) + out.String(string(in.Archetype)) } { - const prefix string = ",\"StadiumCapacity\":" + const prefix string = ",\"PreviousTeamID\":" out.RawString(prefix) - out.Int(int(in.StadiumCapacity)) + out.Uint(uint(in.PreviousTeamID)) } { - const prefix string = ",\"RecordAttendance\":" + const prefix string = ",\"PreviousTeam\":" out.RawString(prefix) - out.Int(int(in.RecordAttendance)) + out.String(string(in.PreviousTeam)) } { - const prefix string = ",\"Enrollment\":" + const prefix string = ",\"Height\":" out.RawString(prefix) - out.Int(int(in.Enrollment)) + out.Int8(int8(in.Height)) } { - const prefix string = ",\"FirstPlayed\":" + const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int(int(in.FirstPlayed)) + out.Int8(int8(in.Weight)) } { - const prefix string = ",\"ColorOne\":" + const prefix string = ",\"Age\":" out.RawString(prefix) - out.String(string(in.ColorOne)) + out.Int8(int8(in.Age)) } { - const prefix string = ",\"ColorTwo\":" + const prefix string = ",\"Stars\":" out.RawString(prefix) - out.String(string(in.ColorTwo)) + out.Int8(int8(in.Stars)) } { - const prefix string = ",\"ColorThree\":" + const prefix string = ",\"Overall\":" out.RawString(prefix) - out.String(string(in.ColorThree)) + out.Int8(int8(in.Overall)) } { - const prefix string = ",\"DiscordID\":" + const prefix string = ",\"Stamina\":" out.RawString(prefix) - out.String(string(in.DiscordID)) + out.Int8(int8(in.Stamina)) } { - const prefix string = ",\"OverallGrade\":" + const prefix string = ",\"Injury\":" out.RawString(prefix) - out.String(string(in.OverallGrade)) + out.Int8(int8(in.Injury)) } { - const prefix string = ",\"OffenseGrade\":" + const prefix string = ",\"FootballIQ\":" out.RawString(prefix) - out.String(string(in.OffenseGrade)) + out.Int8(int8(in.FootballIQ)) } { - const prefix string = ",\"DefenseGrade\":" + const prefix string = ",\"Speed\":" out.RawString(prefix) - out.String(string(in.DefenseGrade)) + out.Int8(int8(in.Speed)) } { - const prefix string = ",\"SpecialTeamsGrade\":" + const prefix string = ",\"Carrying\":" out.RawString(prefix) - out.String(string(in.SpecialTeamsGrade)) + out.Int8(int8(in.Carrying)) } { - const prefix string = ",\"PenaltyMarks\":" + const prefix string = ",\"Agility\":" out.RawString(prefix) - out.Uint8(uint8(in.PenaltyMarks)) + out.Int8(int8(in.Agility)) } { - const prefix string = ",\"JerseyType\":" + const prefix string = ",\"Catching\":" out.RawString(prefix) - out.Uint8(uint8(in.JerseyType)) + out.Int8(int8(in.Catching)) } { - const prefix string = ",\"LastLogin\":" + const prefix string = ",\"RouteRunning\":" out.RawString(prefix) - out.Raw((in.LastLogin).MarshalJSON()) + out.Int8(int8(in.RouteRunning)) } { - const prefix string = ",\"ID\":" + const prefix string = ",\"ZoneCoverage\":" out.RawString(prefix) - out.Uint(uint(in.ID)) + out.Int8(int8(in.ZoneCoverage)) } { - const prefix string = ",\"CreatedAt\":" + const prefix string = ",\"ManCoverage\":" out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) + out.Int8(int8(in.ManCoverage)) } { - const prefix string = ",\"UpdatedAt\":" + const prefix string = ",\"Strength\":" out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) + out.Int8(int8(in.Strength)) } { - const prefix string = ",\"DeletedAt\":" + const prefix string = ",\"Tackle\":" out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } + out.Int8(int8(in.Tackle)) } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in *jlexer.Lexer, out *structs.NFLStandings) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return + { + const prefix string = ",\"PassBlock\":" + out.RawString(prefix) + out.Int8(int8(in.PassBlock)) } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "TeamID": - out.TeamID = uint(in.Uint()) - case "TeamName": - out.TeamName = string(in.String()) - case "Mascot": - out.Mascot = string(in.String()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Season": - out.Season = uint(in.Uint()) - case "LeagueID": - out.LeagueID = uint(in.Uint()) - case "LeagueName": - out.LeagueName = string(in.String()) - case "ConferenceID": - out.ConferenceID = uint(in.Uint()) - case "ConferenceName": - out.ConferenceName = string(in.String()) - case "TotalTies": - out.TotalTies = uint(in.Uint()) - case "ConferenceTies": - out.ConferenceTies = uint(in.Uint()) - case "DivisionID": - out.DivisionID = uint(in.Uint()) - case "DivisionName": - out.DivisionName = string(in.String()) - case "DivisionWins": - out.DivisionWins = uint(in.Uint()) - case "DivisionLosses": - out.DivisionLosses = uint(in.Uint()) - case "DivisionTies": - out.DivisionTies = uint(in.Uint()) - case "PostSeasonStatus": - out.PostSeasonStatus = string(in.String()) - case "TotalWins": - out.TotalWins = int(in.Int()) - case "TotalLosses": - out.TotalLosses = int(in.Int()) - case "ConferenceWins": - out.ConferenceWins = int(in.Int()) - case "ConferenceLosses": - out.ConferenceLosses = int(in.Int()) - case "RankedWins": - out.RankedWins = int(in.Int()) - case "RankedLosses": - out.RankedLosses = int(in.Int()) - case "PointsFor": - out.PointsFor = int(in.Int()) - case "PointsAgainst": - out.PointsAgainst = int(in.Int()) - case "Streak": - out.Streak = int(in.Int()) - case "HomeWins": - out.HomeWins = int(in.Int()) - case "AwayWins": - out.AwayWins = int(in.Int()) - case "Coach": - out.Coach = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "TotalWinPercentage": - out.TotalWinPercentage = float32(in.Float32()) - case "ConfWinPercentage": - out.ConfWinPercentage = float32(in.Float32()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() + { + const prefix string = ",\"RunBlock\":" + out.RawString(prefix) + out.Int8(int8(in.RunBlock)) } - in.Delim('}') - if isTopLevel { - in.Consumed() + { + const prefix string = ",\"PassRush\":" + out.RawString(prefix) + out.Int8(int8(in.PassRush)) } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out *jwriter.Writer, in structs.NFLStandings) { - out.RawByte('{') - first := true - _ = first { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) + const prefix string = ",\"RunDefense\":" + out.RawString(prefix) + out.Int8(int8(in.RunDefense)) } { - const prefix string = ",\"TeamName\":" + const prefix string = ",\"ThrowPower\":" out.RawString(prefix) - out.String(string(in.TeamName)) + out.Int8(int8(in.ThrowPower)) } { - const prefix string = ",\"Mascot\":" + const prefix string = ",\"ThrowAccuracy\":" out.RawString(prefix) - out.String(string(in.Mascot)) + out.Int8(int8(in.ThrowAccuracy)) } { - const prefix string = ",\"SeasonID\":" + const prefix string = ",\"KickAccuracy\":" out.RawString(prefix) - out.Uint(uint(in.SeasonID)) + out.Int8(int8(in.KickAccuracy)) } { - const prefix string = ",\"Season\":" + const prefix string = ",\"KickPower\":" out.RawString(prefix) - out.Uint(uint(in.Season)) + out.Int8(int8(in.KickPower)) } { - const prefix string = ",\"LeagueID\":" + const prefix string = ",\"PuntAccuracy\":" out.RawString(prefix) - out.Uint(uint(in.LeagueID)) + out.Int8(int8(in.PuntAccuracy)) } { - const prefix string = ",\"LeagueName\":" + const prefix string = ",\"PuntPower\":" out.RawString(prefix) - out.String(string(in.LeagueName)) + out.Int8(int8(in.PuntPower)) } { - const prefix string = ",\"ConferenceID\":" + const prefix string = ",\"Progression\":" out.RawString(prefix) - out.Uint(uint(in.ConferenceID)) + out.Int8(int8(in.Progression)) } { - const prefix string = ",\"ConferenceName\":" + const prefix string = ",\"Discipline\":" out.RawString(prefix) - out.String(string(in.ConferenceName)) + out.Int8(int8(in.Discipline)) } { - const prefix string = ",\"TotalTies\":" + const prefix string = ",\"PotentialGrade\":" out.RawString(prefix) - out.Uint(uint(in.TotalTies)) + out.String(string(in.PotentialGrade)) } { - const prefix string = ",\"ConferenceTies\":" + const prefix string = ",\"FreeAgency\":" out.RawString(prefix) - out.Uint(uint(in.ConferenceTies)) + out.String(string(in.FreeAgency)) } { - const prefix string = ",\"DivisionID\":" + const prefix string = ",\"Personality\":" out.RawString(prefix) - out.Uint(uint(in.DivisionID)) + out.String(string(in.Personality)) } { - const prefix string = ",\"DivisionName\":" + const prefix string = ",\"RecruitingBias\":" out.RawString(prefix) - out.String(string(in.DivisionName)) + out.String(string(in.RecruitingBias)) } { - const prefix string = ",\"DivisionWins\":" + const prefix string = ",\"WorkEthic\":" out.RawString(prefix) - out.Uint(uint(in.DivisionWins)) + out.String(string(in.WorkEthic)) } { - const prefix string = ",\"DivisionLosses\":" + const prefix string = ",\"AcademicBias\":" out.RawString(prefix) - out.Uint(uint(in.DivisionLosses)) + out.String(string(in.AcademicBias)) } { - const prefix string = ",\"DivisionTies\":" + const prefix string = ",\"IsInjured\":" out.RawString(prefix) - out.Uint(uint(in.DivisionTies)) + out.Bool(bool(in.IsInjured)) } { - const prefix string = ",\"PostSeasonStatus\":" + const prefix string = ",\"InjuryName\":" out.RawString(prefix) - out.String(string(in.PostSeasonStatus)) + out.String(string(in.InjuryName)) } { - const prefix string = ",\"TotalWins\":" + const prefix string = ",\"InjuryType\":" out.RawString(prefix) - out.Int(int(in.TotalWins)) + out.String(string(in.InjuryType)) } { - const prefix string = ",\"TotalLosses\":" + const prefix string = ",\"WeeksOfRecovery\":" out.RawString(prefix) - out.Int(int(in.TotalLosses)) + out.Uint(uint(in.WeeksOfRecovery)) } { - const prefix string = ",\"ConferenceWins\":" + const prefix string = ",\"InjuryReserve\":" out.RawString(prefix) - out.Int(int(in.ConferenceWins)) + out.Bool(bool(in.InjuryReserve)) } { - const prefix string = ",\"ConferenceLosses\":" + const prefix string = ",\"PrimeAge\":" out.RawString(prefix) - out.Int(int(in.ConferenceLosses)) + out.Uint(uint(in.PrimeAge)) } { - const prefix string = ",\"RankedWins\":" + const prefix string = ",\"Clutch\":" out.RawString(prefix) - out.Int(int(in.RankedWins)) + out.Int(int(in.Clutch)) } { - const prefix string = ",\"RankedLosses\":" + const prefix string = ",\"Shotgun\":" out.RawString(prefix) - out.Int(int(in.RankedLosses)) + out.Int(int(in.Shotgun)) } { - const prefix string = ",\"PointsFor\":" + const prefix string = ",\"PositionTwo\":" out.RawString(prefix) - out.Int(int(in.PointsFor)) + out.String(string(in.PositionTwo)) } { - const prefix string = ",\"PointsAgainst\":" + const prefix string = ",\"ArchetypeTwo\":" out.RawString(prefix) - out.Int(int(in.PointsAgainst)) + out.String(string(in.ArchetypeTwo)) } { - const prefix string = ",\"Streak\":" + const prefix string = ",\"RelativeID\":" out.RawString(prefix) - out.Int(int(in.Streak)) + out.Uint(uint(in.RelativeID)) } { - const prefix string = ",\"HomeWins\":" + const prefix string = ",\"RelativeType\":" out.RawString(prefix) - out.Int(int(in.HomeWins)) + out.Uint(uint(in.RelativeType)) } { - const prefix string = ",\"AwayWins\":" + const prefix string = ",\"Notes\":" out.RawString(prefix) - out.Int(int(in.AwayWins)) + out.String(string(in.Notes)) } { - const prefix string = ",\"Coach\":" + const prefix string = ",\"ProgramPref\":" out.RawString(prefix) - out.String(string(in.Coach)) + out.Uint8(uint8(in.ProgramPref)) } { - const prefix string = ",\"TeamAbbr\":" + const prefix string = ",\"ProfDevPref\":" out.RawString(prefix) - out.String(string(in.TeamAbbr)) + out.Uint8(uint8(in.ProfDevPref)) } { - const prefix string = ",\"TotalWinPercentage\":" + const prefix string = ",\"TraditionsPref\":" out.RawString(prefix) - out.Float32(float32(in.TotalWinPercentage)) + out.Uint8(uint8(in.TraditionsPref)) } { - const prefix string = ",\"ConfWinPercentage\":" + const prefix string = ",\"FacilitiesPref\":" out.RawString(prefix) - out.Float32(float32(in.ConfWinPercentage)) + out.Uint8(uint8(in.FacilitiesPref)) + } + { + const prefix string = ",\"AtmospherePref\":" + out.RawString(prefix) + out.Uint8(uint8(in.AtmospherePref)) + } + { + const prefix string = ",\"AcademicsPref\":" + out.RawString(prefix) + out.Uint8(uint8(in.AcademicsPref)) + } + { + const prefix string = ",\"ConferencePref\":" + out.RawString(prefix) + out.Uint8(uint8(in.ConferencePref)) + } + { + const prefix string = ",\"CoachPref\":" + out.RawString(prefix) + out.Uint8(uint8(in.CoachPref)) + } + { + const prefix string = ",\"SeasonMomentumPref\":" + out.RawString(prefix) + out.Uint8(uint8(in.SeasonMomentumPref)) + } + { + const prefix string = ",\"CampusLifePref\":" + out.RawString(prefix) + out.Uint8(uint8(in.CampusLifePref)) + } + { + const prefix string = ",\"ReligionPref\":" + out.RawString(prefix) + out.Uint8(uint8(in.ReligionPref)) + } + { + const prefix string = ",\"ServiceAcademyPref\":" + out.RawString(prefix) + out.Uint8(uint8(in.ServiceAcademyPref)) + } + { + const prefix string = ",\"SmallTownPref\":" + out.RawString(prefix) + out.Uint8(uint8(in.SmallTownPref)) + } + { + const prefix string = ",\"BigCityPref\":" + out.RawString(prefix) + out.Uint8(uint8(in.BigCityPref)) + } + { + const prefix string = ",\"MediaSpotlightPref\":" + out.RawString(prefix) + out.Uint8(uint8(in.MediaSpotlightPref)) } { const prefix string = ",\"ID\":" @@ -4062,7 +4327,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in *jlexer.Lexer, out *structs.NFLGameplan) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in *jlexer.Lexer, out *structs.NFLExtensionOffer) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4081,1000 +4346,528 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in *jlexer.Lexer, o continue } switch key { + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) case "TeamID": out.TeamID = uint(in.Uint()) - case "OffensiveScheme": - out.OffensiveScheme = string(in.String()) - case "OffRunToPassRatio": - out.OffRunToPassRatio = int(in.Int()) - case "DefensiveScheme": - out.DefensiveScheme = string(in.String()) - case "BlitzSafeties": - out.BlitzSafeties = bool(in.Bool()) - case "BlitzCorners": - out.BlitzCorners = bool(in.Bool()) - case "LinebackerCoverage": - out.LinebackerCoverage = string(in.String()) - case "CornersCoverage": - out.CornersCoverage = string(in.String()) - case "SafetiesCoverage": - out.SafetiesCoverage = string(in.String()) - case "DiveFocus": - out.DiveFocus = int(in.Int()) - case "PitchFocus": - out.PitchFocus = int(in.Int()) - case "PrimaryHB": - out.PrimaryHB = int(in.Int()) - case "MaximumFGDistance": - out.MaximumFGDistance = int(in.Int()) - case "GoFor4AndShort": - out.GoFor4AndShort = int(in.Int()) - case "GoFor4AndLong": - out.GoFor4AndLong = int(in.Int()) - case "HasSchemePenalty": - out.HasSchemePenalty = bool(in.Bool()) - case "OffenseSchemePenalty": - out.OffenseSchemePenalty = uint(in.Uint()) - case "DefenseSchemePenalty": - out.DefenseSchemePenalty = uint(in.Uint()) - case "DefaultOffense": - out.DefaultOffense = bool(in.Bool()) - case "DefaultDefense": - out.DefaultDefense = bool(in.Bool()) - case "PreviousWeekBye": - out.PreviousWeekBye = bool(in.Bool()) - case "FocusPlays": - out.FocusPlays = string(in.String()) - case "DoubleTeam": - out.DoubleTeam = int(in.Int()) - case "DefFormation1": - out.DefFormation1 = string(in.String()) - case "DefFormation1RunToPass": - out.DefFormation1RunToPass = int(in.Int()) - case "DefFormation1BlitzWeight": - out.DefFormation1BlitzWeight = int(in.Int()) - case "DefFormation1BlitzAggression": - out.DefFormation1BlitzAggression = string(in.String()) - case "DefFormation2": - out.DefFormation2 = string(in.String()) - case "DefFormation2RunToPass": - out.DefFormation2RunToPass = int(in.Int()) - case "DefFormation2BlitzWeight": - out.DefFormation2BlitzWeight = int(in.Int()) - case "DefFormation2BlitzAggression": - out.DefFormation2BlitzAggression = string(in.String()) - case "DefFormation3": - out.DefFormation3 = string(in.String()) - case "DefFormation3RunToPass": - out.DefFormation3RunToPass = int(in.Int()) - case "DefFormation3BlitzWeight": - out.DefFormation3BlitzWeight = int(in.Int()) - case "DefFormation3BlitzAggression": - out.DefFormation3BlitzAggression = string(in.String()) - case "DefFormation4": - out.DefFormation4 = string(in.String()) - case "DefFormation4RunToPass": - out.DefFormation4RunToPass = int(in.Int()) - case "DefFormation4BlitzWeight": - out.DefFormation4BlitzWeight = int(in.Int()) - case "DefFormation4BlitzAggression": - out.DefFormation4BlitzAggression = string(in.String()) - case "DefFormation5": - out.DefFormation5 = string(in.String()) - case "DefFormation5RunToPass": - out.DefFormation5RunToPass = int(in.Int()) - case "DefFormation5BlitzWeight": - out.DefFormation5BlitzWeight = int(in.Int()) - case "DefFormation5BlitzAggression": - out.DefFormation5BlitzAggression = string(in.String()) - case "OffFormation1Name": - out.OffFormation1Name = string(in.String()) - case "OffForm1Weight": - out.OffForm1Weight = int(in.Int()) - case "OffForm1TraditionalRun": - out.OffForm1TraditionalRun = int(in.Int()) - case "OffForm1OptionRun": - out.OffForm1OptionRun = int(in.Int()) - case "OffForm1Pass": - out.OffForm1Pass = int(in.Int()) - case "OffForm1RPO": - out.OffForm1RPO = int(in.Int()) - case "OffFormation2Name": - out.OffFormation2Name = string(in.String()) - case "OffForm2Weight": - out.OffForm2Weight = int(in.Int()) - case "OffForm2TraditionalRun": - out.OffForm2TraditionalRun = int(in.Int()) - case "OffForm2OptionRun": - out.OffForm2OptionRun = int(in.Int()) - case "OffForm2Pass": - out.OffForm2Pass = int(in.Int()) - case "OffForm2RPO": - out.OffForm2RPO = int(in.Int()) - case "OffFormation3Name": - out.OffFormation3Name = string(in.String()) - case "OffForm3Weight": - out.OffForm3Weight = int(in.Int()) - case "OffForm3TraditionalRun": - out.OffForm3TraditionalRun = int(in.Int()) - case "OffForm3OptionRun": - out.OffForm3OptionRun = int(in.Int()) - case "OffForm3Pass": - out.OffForm3Pass = int(in.Int()) - case "OffForm3RPO": - out.OffForm3RPO = int(in.Int()) - case "OffFormation4Name": - out.OffFormation4Name = string(in.String()) - case "OffForm4Weight": - out.OffForm4Weight = int(in.Int()) - case "OffForm4TraditionalRun": - out.OffForm4TraditionalRun = int(in.Int()) - case "OffForm4OptionRun": - out.OffForm4OptionRun = int(in.Int()) - case "OffForm4Pass": - out.OffForm4Pass = int(in.Int()) - case "OffForm4RPO": - out.OffForm4RPO = int(in.Int()) - case "OffFormation5Name": - out.OffFormation5Name = string(in.String()) - case "OffForm5Weight": - out.OffForm5Weight = int(in.Int()) - case "OffForm5TraditionalRun": - out.OffForm5TraditionalRun = int(in.Int()) - case "OffForm5OptionRun": - out.OffForm5OptionRun = int(in.Int()) - case "OffForm5Pass": - out.OffForm5Pass = int(in.Int()) - case "OffForm5RPO": - out.OffForm5RPO = int(in.Int()) - case "RunnerDistributionQB": - out.RunnerDistributionQB = int(in.Int()) - case "RunnerDistributionRB1": - out.RunnerDistributionRB1 = int(in.Int()) - case "RunnerDistributionRB2": - out.RunnerDistributionRB2 = int(in.Int()) - case "RunnerDistributionRB3": - out.RunnerDistributionRB3 = int(in.Int()) - case "RunnerDistributionFB1": - out.RunnerDistributionFB1 = int(in.Int()) - case "RunnerDistributionFB2": - out.RunnerDistributionFB2 = int(in.Int()) - case "RunnerDistributionWR": - out.RunnerDistributionWR = int(in.Int()) - case "RunnerDistributionWRPosition": - out.RunnerDistributionWRPosition = string(in.String()) - case "RunnerDistributionWRID": - out.RunnerDistributionWRID = uint(in.Uint()) - case "RunOutsideLeft": - out.RunOutsideLeft = int(in.Int()) - case "RunOutsideRight": - out.RunOutsideRight = int(in.Int()) - case "RunInsideLeft": - out.RunInsideLeft = int(in.Int()) - case "RunInsideRight": - out.RunInsideRight = int(in.Int()) - case "RunPowerLeft": - out.RunPowerLeft = int(in.Int()) - case "RunPowerRight": - out.RunPowerRight = int(in.Int()) - case "RunDrawLeft": - out.RunDrawLeft = int(in.Int()) - case "RunDrawRight": - out.RunDrawRight = int(in.Int()) - case "ReadOptionLeft": - out.ReadOptionLeft = int(in.Int()) - case "ReadOptionRight": - out.ReadOptionRight = int(in.Int()) - case "SpeedOptionLeft": - out.SpeedOptionLeft = int(in.Int()) - case "SpeedOptionRight": - out.SpeedOptionRight = int(in.Int()) - case "InvertedOptionLeft": - out.InvertedOptionLeft = int(in.Int()) - case "InvertedOptionRight": - out.InvertedOptionRight = int(in.Int()) - case "TripleOptionLeft": - out.TripleOptionLeft = int(in.Int()) - case "TripleOptionRight": - out.TripleOptionRight = int(in.Int()) - case "PassQuick": - out.PassQuick = int(in.Int()) - case "PassShort": - out.PassShort = int(in.Int()) - case "PassMedium": - out.PassMedium = int(in.Int()) - case "PassLong": - out.PassLong = int(in.Int()) - case "PassDeep": - out.PassDeep = int(in.Int()) - case "PassScreen": - out.PassScreen = int(in.Int()) - case "PassPAShort": - out.PassPAShort = int(in.Int()) - case "PassPAMedium": - out.PassPAMedium = int(in.Int()) - case "PassPALong": - out.PassPALong = int(in.Int()) - case "PassPADeep": - out.PassPADeep = int(in.Int()) - case "LeftVsRight": - out.LeftVsRight = int(in.Int()) - case "ChoiceOutside": - out.ChoiceOutside = int(in.Int()) - case "ChoiceInside": - out.ChoiceInside = int(in.Int()) - case "ChoicePower": - out.ChoicePower = int(in.Int()) - case "PeekOutside": - out.PeekOutside = int(in.Int()) - case "PeekInside": - out.PeekInside = int(in.Int()) - case "PeekPower": - out.PeekPower = int(in.Int()) - case "TargetingWR1": - out.TargetingWR1 = int(in.Int()) - case "TargetDepthWR1": - out.TargetDepthWR1 = string(in.String()) - case "TargetingWR2": - out.TargetingWR2 = int(in.Int()) - case "TargetDepthWR2": - out.TargetDepthWR2 = string(in.String()) - case "TargetingWR3": - out.TargetingWR3 = int(in.Int()) - case "TargetDepthWR3": - out.TargetDepthWR3 = string(in.String()) - case "TargetingWR4": - out.TargetingWR4 = int(in.Int()) - case "TargetDepthWR4": - out.TargetDepthWR4 = string(in.String()) - case "TargetingWR5": - out.TargetingWR5 = int(in.Int()) - case "TargetDepthWR5": - out.TargetDepthWR5 = string(in.String()) - case "TargetingTE1": - out.TargetingTE1 = int(in.Int()) - case "TargetDepthTE1": - out.TargetDepthTE1 = string(in.String()) - case "TargetingTE2": - out.TargetingTE2 = int(in.Int()) - case "TargetDepthTE2": - out.TargetDepthTE2 = string(in.String()) - case "TargetingTE3": - out.TargetingTE3 = int(in.Int()) - case "TargetDepthTE3": - out.TargetDepthTE3 = string(in.String()) - case "TargetingRB1": - out.TargetingRB1 = int(in.Int()) - case "TargetDepthRB1": - out.TargetDepthRB1 = string(in.String()) - case "TargetingRB2": - out.TargetingRB2 = int(in.Int()) - case "TargetDepthRB2": - out.TargetDepthRB2 = string(in.String()) - case "TargetingFB1": - out.TargetingFB1 = int(in.Int()) - case "TargetDepthFB1": - out.TargetDepthFB1 = string(in.String()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out *jwriter.Writer, in structs.NFLGameplan) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"OffRunToPassRatio\":" - out.RawString(prefix) - out.Int(int(in.OffRunToPassRatio)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"BlitzSafeties\":" - out.RawString(prefix) - out.Bool(bool(in.BlitzSafeties)) - } - { - const prefix string = ",\"BlitzCorners\":" - out.RawString(prefix) - out.Bool(bool(in.BlitzCorners)) - } - { - const prefix string = ",\"LinebackerCoverage\":" - out.RawString(prefix) - out.String(string(in.LinebackerCoverage)) - } - { - const prefix string = ",\"CornersCoverage\":" - out.RawString(prefix) - out.String(string(in.CornersCoverage)) - } - { - const prefix string = ",\"SafetiesCoverage\":" - out.RawString(prefix) - out.String(string(in.SafetiesCoverage)) - } - { - const prefix string = ",\"DiveFocus\":" - out.RawString(prefix) - out.Int(int(in.DiveFocus)) - } - { - const prefix string = ",\"PitchFocus\":" - out.RawString(prefix) - out.Int(int(in.PitchFocus)) - } - { - const prefix string = ",\"PrimaryHB\":" - out.RawString(prefix) - out.Int(int(in.PrimaryHB)) - } - { - const prefix string = ",\"MaximumFGDistance\":" - out.RawString(prefix) - out.Int(int(in.MaximumFGDistance)) - } - { - const prefix string = ",\"GoFor4AndShort\":" - out.RawString(prefix) - out.Int(int(in.GoFor4AndShort)) - } - { - const prefix string = ",\"GoFor4AndLong\":" - out.RawString(prefix) - out.Int(int(in.GoFor4AndLong)) - } - { - const prefix string = ",\"HasSchemePenalty\":" - out.RawString(prefix) - out.Bool(bool(in.HasSchemePenalty)) - } - { - const prefix string = ",\"OffenseSchemePenalty\":" - out.RawString(prefix) - out.Uint(uint(in.OffenseSchemePenalty)) - } - { - const prefix string = ",\"DefenseSchemePenalty\":" - out.RawString(prefix) - out.Uint(uint(in.DefenseSchemePenalty)) - } - { - const prefix string = ",\"DefaultOffense\":" - out.RawString(prefix) - out.Bool(bool(in.DefaultOffense)) - } - { - const prefix string = ",\"DefaultDefense\":" - out.RawString(prefix) - out.Bool(bool(in.DefaultDefense)) - } - { - const prefix string = ",\"PreviousWeekBye\":" - out.RawString(prefix) - out.Bool(bool(in.PreviousWeekBye)) - } - { - const prefix string = ",\"FocusPlays\":" - out.RawString(prefix) - out.String(string(in.FocusPlays)) - } - { - const prefix string = ",\"DoubleTeam\":" - out.RawString(prefix) - out.Int(int(in.DoubleTeam)) - } - { - const prefix string = ",\"DefFormation1\":" - out.RawString(prefix) - out.String(string(in.DefFormation1)) - } - { - const prefix string = ",\"DefFormation1RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation1RunToPass)) - } - { - const prefix string = ",\"DefFormation1BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation1BlitzWeight)) - } - { - const prefix string = ",\"DefFormation1BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation1BlitzAggression)) - } - { - const prefix string = ",\"DefFormation2\":" - out.RawString(prefix) - out.String(string(in.DefFormation2)) - } - { - const prefix string = ",\"DefFormation2RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation2RunToPass)) - } - { - const prefix string = ",\"DefFormation2BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation2BlitzWeight)) - } - { - const prefix string = ",\"DefFormation2BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation2BlitzAggression)) - } - { - const prefix string = ",\"DefFormation3\":" - out.RawString(prefix) - out.String(string(in.DefFormation3)) - } - { - const prefix string = ",\"DefFormation3RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation3RunToPass)) - } - { - const prefix string = ",\"DefFormation3BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation3BlitzWeight)) - } - { - const prefix string = ",\"DefFormation3BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation3BlitzAggression)) - } - { - const prefix string = ",\"DefFormation4\":" - out.RawString(prefix) - out.String(string(in.DefFormation4)) - } - { - const prefix string = ",\"DefFormation4RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation4RunToPass)) - } - { - const prefix string = ",\"DefFormation4BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation4BlitzWeight)) - } - { - const prefix string = ",\"DefFormation4BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation4BlitzAggression)) - } - { - const prefix string = ",\"DefFormation5\":" - out.RawString(prefix) - out.String(string(in.DefFormation5)) - } - { - const prefix string = ",\"DefFormation5RunToPass\":" - out.RawString(prefix) - out.Int(int(in.DefFormation5RunToPass)) - } - { - const prefix string = ",\"DefFormation5BlitzWeight\":" - out.RawString(prefix) - out.Int(int(in.DefFormation5BlitzWeight)) - } - { - const prefix string = ",\"DefFormation5BlitzAggression\":" - out.RawString(prefix) - out.String(string(in.DefFormation5BlitzAggression)) - } - { - const prefix string = ",\"OffFormation1Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation1Name)) - } - { - const prefix string = ",\"OffForm1Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm1Weight)) - } - { - const prefix string = ",\"OffForm1TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm1TraditionalRun)) - } - { - const prefix string = ",\"OffForm1OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm1OptionRun)) - } - { - const prefix string = ",\"OffForm1Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm1Pass)) - } - { - const prefix string = ",\"OffForm1RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm1RPO)) - } - { - const prefix string = ",\"OffFormation2Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation2Name)) - } - { - const prefix string = ",\"OffForm2Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm2Weight)) - } - { - const prefix string = ",\"OffForm2TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm2TraditionalRun)) - } - { - const prefix string = ",\"OffForm2OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm2OptionRun)) - } - { - const prefix string = ",\"OffForm2Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm2Pass)) - } - { - const prefix string = ",\"OffForm2RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm2RPO)) - } - { - const prefix string = ",\"OffFormation3Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation3Name)) - } - { - const prefix string = ",\"OffForm3Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm3Weight)) - } - { - const prefix string = ",\"OffForm3TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm3TraditionalRun)) - } - { - const prefix string = ",\"OffForm3OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm3OptionRun)) - } - { - const prefix string = ",\"OffForm3Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm3Pass)) - } - { - const prefix string = ",\"OffForm3RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm3RPO)) - } - { - const prefix string = ",\"OffFormation4Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation4Name)) - } - { - const prefix string = ",\"OffForm4Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm4Weight)) - } - { - const prefix string = ",\"OffForm4TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm4TraditionalRun)) - } - { - const prefix string = ",\"OffForm4OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm4OptionRun)) - } - { - const prefix string = ",\"OffForm4Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm4Pass)) - } - { - const prefix string = ",\"OffForm4RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm4RPO)) - } - { - const prefix string = ",\"OffFormation5Name\":" - out.RawString(prefix) - out.String(string(in.OffFormation5Name)) - } - { - const prefix string = ",\"OffForm5Weight\":" - out.RawString(prefix) - out.Int(int(in.OffForm5Weight)) - } - { - const prefix string = ",\"OffForm5TraditionalRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm5TraditionalRun)) - } - { - const prefix string = ",\"OffForm5OptionRun\":" - out.RawString(prefix) - out.Int(int(in.OffForm5OptionRun)) - } - { - const prefix string = ",\"OffForm5Pass\":" - out.RawString(prefix) - out.Int(int(in.OffForm5Pass)) - } - { - const prefix string = ",\"OffForm5RPO\":" - out.RawString(prefix) - out.Int(int(in.OffForm5RPO)) - } - { - const prefix string = ",\"RunnerDistributionQB\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionQB)) - } - { - const prefix string = ",\"RunnerDistributionRB1\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB1)) - } - { - const prefix string = ",\"RunnerDistributionRB2\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB2)) - } - { - const prefix string = ",\"RunnerDistributionRB3\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionRB3)) - } - { - const prefix string = ",\"RunnerDistributionFB1\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionFB1)) - } - { - const prefix string = ",\"RunnerDistributionFB2\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionFB2)) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "TotalBonus": + out.TotalBonus = float64(in.Float64()) + case "TotalSalary": + out.TotalSalary = float64(in.Float64()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "Rejections": + out.Rejections = int(in.Int()) + case "IsAccepted": + out.IsAccepted = bool(in.Bool()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsRejected": + out.IsRejected = bool(in.Bool()) + case "IsTag": + out.IsTag = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() } - { - const prefix string = ",\"RunnerDistributionWR\":" - out.RawString(prefix) - out.Int(int(in.RunnerDistributionWR)) + in.Delim('}') + if isTopLevel { + in.Consumed() } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out *jwriter.Writer, in structs.NFLExtensionOffer) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"RunnerDistributionWRPosition\":" - out.RawString(prefix) - out.String(string(in.RunnerDistributionWRPosition)) + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLPlayerID)) } { - const prefix string = ",\"RunnerDistributionWRID\":" + const prefix string = ",\"TeamID\":" out.RawString(prefix) - out.Uint(uint(in.RunnerDistributionWRID)) + out.Uint(uint(in.TeamID)) } { - const prefix string = ",\"RunOutsideLeft\":" + const prefix string = ",\"SeasonID\":" out.RawString(prefix) - out.Int(int(in.RunOutsideLeft)) + out.Uint(uint(in.SeasonID)) } { - const prefix string = ",\"RunOutsideRight\":" + const prefix string = ",\"Team\":" out.RawString(prefix) - out.Int(int(in.RunOutsideRight)) + out.String(string(in.Team)) } { - const prefix string = ",\"RunInsideLeft\":" + const prefix string = ",\"ContractLength\":" out.RawString(prefix) - out.Int(int(in.RunInsideLeft)) + out.Int(int(in.ContractLength)) } { - const prefix string = ",\"RunInsideRight\":" + const prefix string = ",\"Y1BaseSalary\":" out.RawString(prefix) - out.Int(int(in.RunInsideRight)) + out.Float64(float64(in.Y1BaseSalary)) } { - const prefix string = ",\"RunPowerLeft\":" + const prefix string = ",\"Y1Bonus\":" out.RawString(prefix) - out.Int(int(in.RunPowerLeft)) + out.Float64(float64(in.Y1Bonus)) } { - const prefix string = ",\"RunPowerRight\":" + const prefix string = ",\"Y2BaseSalary\":" out.RawString(prefix) - out.Int(int(in.RunPowerRight)) + out.Float64(float64(in.Y2BaseSalary)) } { - const prefix string = ",\"RunDrawLeft\":" + const prefix string = ",\"Y2Bonus\":" out.RawString(prefix) - out.Int(int(in.RunDrawLeft)) + out.Float64(float64(in.Y2Bonus)) } { - const prefix string = ",\"RunDrawRight\":" + const prefix string = ",\"Y3BaseSalary\":" out.RawString(prefix) - out.Int(int(in.RunDrawRight)) + out.Float64(float64(in.Y3BaseSalary)) } { - const prefix string = ",\"ReadOptionLeft\":" + const prefix string = ",\"Y3Bonus\":" out.RawString(prefix) - out.Int(int(in.ReadOptionLeft)) + out.Float64(float64(in.Y3Bonus)) } { - const prefix string = ",\"ReadOptionRight\":" + const prefix string = ",\"Y4BaseSalary\":" out.RawString(prefix) - out.Int(int(in.ReadOptionRight)) + out.Float64(float64(in.Y4BaseSalary)) } { - const prefix string = ",\"SpeedOptionLeft\":" + const prefix string = ",\"Y4Bonus\":" out.RawString(prefix) - out.Int(int(in.SpeedOptionLeft)) + out.Float64(float64(in.Y4Bonus)) } { - const prefix string = ",\"SpeedOptionRight\":" + const prefix string = ",\"Y5BaseSalary\":" out.RawString(prefix) - out.Int(int(in.SpeedOptionRight)) + out.Float64(float64(in.Y5BaseSalary)) } { - const prefix string = ",\"InvertedOptionLeft\":" + const prefix string = ",\"Y5Bonus\":" out.RawString(prefix) - out.Int(int(in.InvertedOptionLeft)) + out.Float64(float64(in.Y5Bonus)) } { - const prefix string = ",\"InvertedOptionRight\":" + const prefix string = ",\"TotalBonus\":" out.RawString(prefix) - out.Int(int(in.InvertedOptionRight)) + out.Float64(float64(in.TotalBonus)) } { - const prefix string = ",\"TripleOptionLeft\":" + const prefix string = ",\"TotalSalary\":" out.RawString(prefix) - out.Int(int(in.TripleOptionLeft)) + out.Float64(float64(in.TotalSalary)) } { - const prefix string = ",\"TripleOptionRight\":" + const prefix string = ",\"ContractValue\":" out.RawString(prefix) - out.Int(int(in.TripleOptionRight)) + out.Float64(float64(in.ContractValue)) } { - const prefix string = ",\"PassQuick\":" + const prefix string = ",\"BonusPercentage\":" out.RawString(prefix) - out.Int(int(in.PassQuick)) + out.Float64(float64(in.BonusPercentage)) } { - const prefix string = ",\"PassShort\":" + const prefix string = ",\"AAV\":" out.RawString(prefix) - out.Int(int(in.PassShort)) + out.Float64(float64(in.AAV)) } { - const prefix string = ",\"PassMedium\":" + const prefix string = ",\"Rejections\":" out.RawString(prefix) - out.Int(int(in.PassMedium)) + out.Int(int(in.Rejections)) } { - const prefix string = ",\"PassLong\":" + const prefix string = ",\"IsAccepted\":" out.RawString(prefix) - out.Int(int(in.PassLong)) + out.Bool(bool(in.IsAccepted)) } { - const prefix string = ",\"PassDeep\":" + const prefix string = ",\"IsActive\":" out.RawString(prefix) - out.Int(int(in.PassDeep)) + out.Bool(bool(in.IsActive)) } { - const prefix string = ",\"PassScreen\":" + const prefix string = ",\"IsRejected\":" out.RawString(prefix) - out.Int(int(in.PassScreen)) + out.Bool(bool(in.IsRejected)) } { - const prefix string = ",\"PassPAShort\":" + const prefix string = ",\"IsTag\":" out.RawString(prefix) - out.Int(int(in.PassPAShort)) + out.Bool(bool(in.IsTag)) } { - const prefix string = ",\"PassPAMedium\":" + const prefix string = ",\"ID\":" out.RawString(prefix) - out.Int(int(in.PassPAMedium)) + out.Uint(uint(in.ID)) } { - const prefix string = ",\"PassPALong\":" + const prefix string = ",\"CreatedAt\":" out.RawString(prefix) - out.Int(int(in.PassPALong)) + out.Raw((in.CreatedAt).MarshalJSON()) } { - const prefix string = ",\"PassPADeep\":" + const prefix string = ",\"UpdatedAt\":" out.RawString(prefix) - out.Int(int(in.PassPADeep)) + out.Raw((in.UpdatedAt).MarshalJSON()) } { - const prefix string = ",\"LeftVsRight\":" + const prefix string = ",\"DeletedAt\":" out.RawString(prefix) - out.Int(int(in.LeftVsRight)) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in *jlexer.Lexer, out *structs.NFLWaiverOffer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ID": + out.ID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "WaiverOrder": + out.WaiverOrder = uint(in.Uint()) + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "IsActive": + out.IsActive = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out *jwriter.Writer, in structs.NFLWaiverOffer) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"ChoiceOutside\":" - out.RawString(prefix) - out.Int(int(in.ChoiceOutside)) + const prefix string = ",\"ID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ID)) } { - const prefix string = ",\"ChoiceInside\":" + const prefix string = ",\"TeamID\":" out.RawString(prefix) - out.Int(int(in.ChoiceInside)) + out.Uint(uint(in.TeamID)) } { - const prefix string = ",\"ChoicePower\":" + const prefix string = ",\"Team\":" out.RawString(prefix) - out.Int(int(in.ChoicePower)) + out.String(string(in.Team)) } { - const prefix string = ",\"PeekOutside\":" + const prefix string = ",\"WaiverOrder\":" out.RawString(prefix) - out.Int(int(in.PeekOutside)) + out.Uint(uint(in.WaiverOrder)) } { - const prefix string = ",\"PeekInside\":" + const prefix string = ",\"NFLPlayerID\":" out.RawString(prefix) - out.Int(int(in.PeekInside)) + out.Uint(uint(in.NFLPlayerID)) } { - const prefix string = ",\"PeekPower\":" + const prefix string = ",\"IsActive\":" out.RawString(prefix) - out.Int(int(in.PeekPower)) + out.Bool(bool(in.IsActive)) + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in *jlexer.Lexer, out *structs.FreeAgencyOffer) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "TotalBonus": + out.TotalBonus = float64(in.Float64()) + case "TotalSalary": + out.TotalSalary = float64(in.Float64()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "AAV": + out.AAV = float64(in.Float64()) + case "Syncs": + out.Syncs = uint8(in.Uint8()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsRejected": + out.IsRejected = bool(in.Bool()) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out *jwriter.Writer, in structs.FreeAgencyOffer) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"TargetingWR1\":" - out.RawString(prefix) - out.Int(int(in.TargetingWR1)) + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.NFLPlayerID)) } { - const prefix string = ",\"TargetDepthWR1\":" + const prefix string = ",\"TeamID\":" out.RawString(prefix) - out.String(string(in.TargetDepthWR1)) + out.Uint(uint(in.TeamID)) } { - const prefix string = ",\"TargetingWR2\":" + const prefix string = ",\"Team\":" out.RawString(prefix) - out.Int(int(in.TargetingWR2)) + out.String(string(in.Team)) } { - const prefix string = ",\"TargetDepthWR2\":" + const prefix string = ",\"ContractLength\":" out.RawString(prefix) - out.String(string(in.TargetDepthWR2)) + out.Int(int(in.ContractLength)) } { - const prefix string = ",\"TargetingWR3\":" + const prefix string = ",\"Y1BaseSalary\":" out.RawString(prefix) - out.Int(int(in.TargetingWR3)) + out.Float64(float64(in.Y1BaseSalary)) } { - const prefix string = ",\"TargetDepthWR3\":" + const prefix string = ",\"Y1Bonus\":" out.RawString(prefix) - out.String(string(in.TargetDepthWR3)) + out.Float64(float64(in.Y1Bonus)) } { - const prefix string = ",\"TargetingWR4\":" + const prefix string = ",\"Y2BaseSalary\":" out.RawString(prefix) - out.Int(int(in.TargetingWR4)) + out.Float64(float64(in.Y2BaseSalary)) } { - const prefix string = ",\"TargetDepthWR4\":" + const prefix string = ",\"Y2Bonus\":" out.RawString(prefix) - out.String(string(in.TargetDepthWR4)) + out.Float64(float64(in.Y2Bonus)) } { - const prefix string = ",\"TargetingWR5\":" + const prefix string = ",\"Y3BaseSalary\":" out.RawString(prefix) - out.Int(int(in.TargetingWR5)) + out.Float64(float64(in.Y3BaseSalary)) } { - const prefix string = ",\"TargetDepthWR5\":" + const prefix string = ",\"Y3Bonus\":" out.RawString(prefix) - out.String(string(in.TargetDepthWR5)) + out.Float64(float64(in.Y3Bonus)) } { - const prefix string = ",\"TargetingTE1\":" + const prefix string = ",\"Y4BaseSalary\":" out.RawString(prefix) - out.Int(int(in.TargetingTE1)) + out.Float64(float64(in.Y4BaseSalary)) } { - const prefix string = ",\"TargetDepthTE1\":" + const prefix string = ",\"Y4Bonus\":" out.RawString(prefix) - out.String(string(in.TargetDepthTE1)) + out.Float64(float64(in.Y4Bonus)) } { - const prefix string = ",\"TargetingTE2\":" + const prefix string = ",\"Y5BaseSalary\":" out.RawString(prefix) - out.Int(int(in.TargetingTE2)) + out.Float64(float64(in.Y5BaseSalary)) } { - const prefix string = ",\"TargetDepthTE2\":" + const prefix string = ",\"Y5Bonus\":" out.RawString(prefix) - out.String(string(in.TargetDepthTE2)) + out.Float64(float64(in.Y5Bonus)) } { - const prefix string = ",\"TargetingTE3\":" + const prefix string = ",\"TotalBonus\":" out.RawString(prefix) - out.Int(int(in.TargetingTE3)) + out.Float64(float64(in.TotalBonus)) } { - const prefix string = ",\"TargetDepthTE3\":" + const prefix string = ",\"TotalSalary\":" out.RawString(prefix) - out.String(string(in.TargetDepthTE3)) + out.Float64(float64(in.TotalSalary)) } { - const prefix string = ",\"TargetingRB1\":" + const prefix string = ",\"ContractValue\":" out.RawString(prefix) - out.Int(int(in.TargetingRB1)) + out.Float64(float64(in.ContractValue)) } { - const prefix string = ",\"TargetDepthRB1\":" + const prefix string = ",\"BonusPercentage\":" out.RawString(prefix) - out.String(string(in.TargetDepthRB1)) + out.Float64(float64(in.BonusPercentage)) } { - const prefix string = ",\"TargetingRB2\":" + const prefix string = ",\"AAV\":" out.RawString(prefix) - out.Int(int(in.TargetingRB2)) + out.Float64(float64(in.AAV)) } { - const prefix string = ",\"TargetDepthRB2\":" + const prefix string = ",\"Syncs\":" out.RawString(prefix) - out.String(string(in.TargetDepthRB2)) + out.Uint8(uint8(in.Syncs)) } { - const prefix string = ",\"TargetingFB1\":" + const prefix string = ",\"IsActive\":" out.RawString(prefix) - out.Int(int(in.TargetingFB1)) + out.Bool(bool(in.IsActive)) } { - const prefix string = ",\"TargetDepthFB1\":" + const prefix string = ",\"IsRejected\":" out.RawString(prefix) - out.String(string(in.TargetDepthFB1)) + out.Bool(bool(in.IsRejected)) } { const prefix string = ",\"ID\":" @@ -5102,7 +4895,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in *jlexer.Lexer, out *structs.NFLDepthChart) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in *jlexer.Lexer, out *structs.NFLContract) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5121,31 +4914,64 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in *jlexer.Lexer, o continue } switch key { + case "PlayerID": + out.PlayerID = int(in.Int()) + case "NFLPlayerID": + out.NFLPlayerID = int(in.Int()) case "TeamID": - out.TeamID = int(in.Int()) - case "DepthChartPlayers": - if in.IsNull() { - in.Skip() - out.DepthChartPlayers = nil - } else { - in.Delim('[') - if out.DepthChartPlayers == nil { - if !in.IsDelim(']') { - out.DepthChartPlayers = make([]structs.NFLDepthChartPosition, 0, 0) - } else { - out.DepthChartPlayers = []structs.NFLDepthChartPosition{} - } - } else { - out.DepthChartPlayers = (out.DepthChartPlayers)[:0] - } - for !in.IsDelim(']') { - var v39 structs.NFLDepthChartPosition - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v39) - out.DepthChartPlayers = append(out.DepthChartPlayers, v39) - in.WantComma() - } - in.Delim(']') - } + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "OriginalTeamID": + out.OriginalTeamID = uint(in.Uint()) + case "OriginalTeam": + out.OriginalTeam = string(in.String()) + case "ContractLength": + out.ContractLength = int(in.Int()) + case "Y1BaseSalary": + out.Y1BaseSalary = float64(in.Float64()) + case "Y1Bonus": + out.Y1Bonus = float64(in.Float64()) + case "Y2BaseSalary": + out.Y2BaseSalary = float64(in.Float64()) + case "Y2Bonus": + out.Y2Bonus = float64(in.Float64()) + case "Y3BaseSalary": + out.Y3BaseSalary = float64(in.Float64()) + case "Y3Bonus": + out.Y3Bonus = float64(in.Float64()) + case "Y4BaseSalary": + out.Y4BaseSalary = float64(in.Float64()) + case "Y4Bonus": + out.Y4Bonus = float64(in.Float64()) + case "Y5BaseSalary": + out.Y5BaseSalary = float64(in.Float64()) + case "Y5Bonus": + out.Y5Bonus = float64(in.Float64()) + case "BonusPercentage": + out.BonusPercentage = float64(in.Float64()) + case "ContractType": + out.ContractType = string(in.String()) + case "ContractValue": + out.ContractValue = float64(in.Float64()) + case "SigningValue": + out.SigningValue = float64(in.Float64()) + case "IsActive": + out.IsActive = bool(in.Bool()) + case "IsComplete": + out.IsComplete = bool(in.Bool()) + case "IsExtended": + out.IsExtended = bool(in.Bool()) + case "HasProgressed": + out.HasProgressed = bool(in.Bool()) + case "PlayerRetired": + out.PlayerRetired = bool(in.Bool()) + case "TagType": + out.TagType = uint8(in.Uint8()) + case "IsTagged": + out.IsTagged = bool(in.Bool()) + case "IsCut": + out.IsCut = bool(in.Bool()) case "ID": out.ID = uint(in.Uint()) case "CreatedAt": @@ -5178,30 +5004,154 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out *jwriter.Writer, in structs.NFLDepthChart) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out *jwriter.Writer, in structs.NFLContract) { out.RawByte('{') first := true _ = first { - const prefix string = ",\"TeamID\":" + const prefix string = ",\"PlayerID\":" out.RawString(prefix[1:]) - out.Int(int(in.TeamID)) + out.Int(int(in.PlayerID)) } { - const prefix string = ",\"DepthChartPlayers\":" + const prefix string = ",\"NFLPlayerID\":" + out.RawString(prefix) + out.Int(int(in.NFLPlayerID)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"OriginalTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.OriginalTeamID)) + } + { + const prefix string = ",\"OriginalTeam\":" + out.RawString(prefix) + out.String(string(in.OriginalTeam)) + } + { + const prefix string = ",\"ContractLength\":" + out.RawString(prefix) + out.Int(int(in.ContractLength)) + } + { + const prefix string = ",\"Y1BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y1BaseSalary)) + } + { + const prefix string = ",\"Y1Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y1Bonus)) + } + { + const prefix string = ",\"Y2BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y2BaseSalary)) + } + { + const prefix string = ",\"Y2Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y2Bonus)) + } + { + const prefix string = ",\"Y3BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y3BaseSalary)) + } + { + const prefix string = ",\"Y3Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y3Bonus)) + } + { + const prefix string = ",\"Y4BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y4BaseSalary)) + } + { + const prefix string = ",\"Y4Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y4Bonus)) + } + { + const prefix string = ",\"Y5BaseSalary\":" + out.RawString(prefix) + out.Float64(float64(in.Y5BaseSalary)) + } + { + const prefix string = ",\"Y5Bonus\":" + out.RawString(prefix) + out.Float64(float64(in.Y5Bonus)) + } + { + const prefix string = ",\"BonusPercentage\":" + out.RawString(prefix) + out.Float64(float64(in.BonusPercentage)) + } + { + const prefix string = ",\"ContractType\":" + out.RawString(prefix) + out.String(string(in.ContractType)) + } + { + const prefix string = ",\"ContractValue\":" + out.RawString(prefix) + out.Float64(float64(in.ContractValue)) + } + { + const prefix string = ",\"SigningValue\":" + out.RawString(prefix) + out.Float64(float64(in.SigningValue)) + } + { + const prefix string = ",\"IsActive\":" + out.RawString(prefix) + out.Bool(bool(in.IsActive)) + } + { + const prefix string = ",\"IsComplete\":" + out.RawString(prefix) + out.Bool(bool(in.IsComplete)) + } + { + const prefix string = ",\"IsExtended\":" + out.RawString(prefix) + out.Bool(bool(in.IsExtended)) + } + { + const prefix string = ",\"HasProgressed\":" + out.RawString(prefix) + out.Bool(bool(in.HasProgressed)) + } + { + const prefix string = ",\"PlayerRetired\":" + out.RawString(prefix) + out.Bool(bool(in.PlayerRetired)) + } + { + const prefix string = ",\"TagType\":" + out.RawString(prefix) + out.Uint8(uint8(in.TagType)) + } + { + const prefix string = ",\"IsTagged\":" + out.RawString(prefix) + out.Bool(bool(in.IsTagged)) + } + { + const prefix string = ",\"IsCut\":" out.RawString(prefix) - if in.DepthChartPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v40, v41 := range in.DepthChartPlayers { - if v40 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v41) - } - out.RawByte(']') - } + out.Bool(bool(in.IsCut)) } { const prefix string = ",\"ID\":" @@ -5229,7 +5179,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in *jlexer.Lexer, out *structs.NFLDepthChartPosition) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in *jlexer.Lexer, out *structs.NFLPlayerSeasonStats) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5248,22 +5198,150 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in *jlexer.Lexer, o continue } switch key { - case "DepthChartID": - out.DepthChartID = uint(in.Uint()) - case "PlayerID": - out.PlayerID = uint(in.Uint()) - case "Position": - out.Position = string(in.String()) - case "PositionLevel": - out.PositionLevel = string(in.String()) - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "OriginalPosition": - out.OriginalPosition = string(in.String()) - case "NFLPlayer": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &out.NFLPlayer) + case "NFLPlayerID": + out.NFLPlayerID = uint(in.Uint()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Year": + out.Year = uint(in.Uint()) + case "GamesPlayed": + out.GamesPlayed = int(in.Int()) + case "QBRating": + out.QBRating = float64(in.Float64()) + case "Tackles": + out.Tackles = float64(in.Float64()) + case "RushingAvg": + out.RushingAvg = float64(in.Float64()) + case "PassingAvg": + out.PassingAvg = float64(in.Float64()) + case "ReceivingAvg": + out.ReceivingAvg = float64(in.Float64()) + case "Completion": + out.Completion = float64(in.Float64()) + case "PassingYards": + out.PassingYards = int16(in.Int16()) + case "PassAttempts": + out.PassAttempts = int16(in.Int16()) + case "PassCompletions": + out.PassCompletions = int16(in.Int16()) + case "PassingTDs": + out.PassingTDs = int16(in.Int16()) + case "Interceptions": + out.Interceptions = int16(in.Int16()) + case "LongestPass": + out.LongestPass = int16(in.Int16()) + case "Sacks": + out.Sacks = int16(in.Int16()) + case "RushAttempts": + out.RushAttempts = int16(in.Int16()) + case "RushingYards": + out.RushingYards = int16(in.Int16()) + case "RushingTDs": + out.RushingTDs = int16(in.Int16()) + case "Fumbles": + out.Fumbles = int16(in.Int16()) + case "LongestRush": + out.LongestRush = int16(in.Int16()) + case "Targets": + out.Targets = int16(in.Int16()) + case "Catches": + out.Catches = int16(in.Int16()) + case "ReceivingYards": + out.ReceivingYards = int16(in.Int16()) + case "ReceivingTDs": + out.ReceivingTDs = int16(in.Int16()) + case "LongestReception": + out.LongestReception = int16(in.Int16()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int16(in.Int16()) + case "RecoveredFumbles": + out.RecoveredFumbles = int16(in.Int16()) + case "PassDeflections": + out.PassDeflections = int16(in.Int16()) + case "InterceptionsCaught": + out.InterceptionsCaught = int16(in.Int16()) + case "Safeties": + out.Safeties = int16(in.Int16()) + case "DefensiveTDs": + out.DefensiveTDs = int16(in.Int16()) + case "FGMade": + out.FGMade = int16(in.Int16()) + case "FGAttempts": + out.FGAttempts = int16(in.Int16()) + case "LongestFG": + out.LongestFG = int16(in.Int16()) + case "ExtraPointsMade": + out.ExtraPointsMade = int16(in.Int16()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int16(in.Int16()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int16(in.Int16()) + case "Punts": + out.Punts = int16(in.Int16()) + case "GrossPuntDistance": + out.GrossPuntDistance = int16(in.Int16()) + case "NetPuntDistance": + out.NetPuntDistance = int16(in.Int16()) + case "PuntTouchbacks": + out.PuntTouchbacks = int16(in.Int16()) + case "PuntsInside20": + out.PuntsInside20 = int16(in.Int16()) + case "KickReturns": + out.KickReturns = int16(in.Int16()) + case "KickReturnTDs": + out.KickReturnTDs = int16(in.Int16()) + case "KickReturnYards": + out.KickReturnYards = int16(in.Int16()) + case "PuntReturns": + out.PuntReturns = int16(in.Int16()) + case "PuntReturnTDs": + out.PuntReturnTDs = int16(in.Int16()) + case "PuntReturnYards": + out.PuntReturnYards = int16(in.Int16()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int16(in.Int16()) + case "FGBlocked": + out.FGBlocked = int16(in.Int16()) + case "Snaps": + out.Snaps = int16(in.Int16()) + case "Pancakes": + out.Pancakes = int16(in.Int16()) + case "SacksAllowed": + out.SacksAllowed = int16(in.Int16()) + case "PlayedGame": + out.PlayedGame = int16(in.Int16()) + case "StartedGame": + out.StartedGame = int16(in.Int16()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) + case "WeeksOfRecovery": + out.WeeksOfRecovery = uint(in.Uint()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) case "ID": out.ID = uint(in.Uint()) case "CreatedAt": @@ -5296,393 +5374,553 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out *jwriter.Writer, in structs.NFLDepthChartPosition) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out *jwriter.Writer, in structs.NFLPlayerSeasonStats) { out.RawByte('{') first := true _ = first { - const prefix string = ",\"DepthChartID\":" + const prefix string = ",\"NFLPlayerID\":" out.RawString(prefix[1:]) - out.Uint(uint(in.DepthChartID)) + out.Uint(uint(in.NFLPlayerID)) } { - const prefix string = ",\"PlayerID\":" + const prefix string = ",\"SeasonID\":" out.RawString(prefix) - out.Uint(uint(in.PlayerID)) + out.Uint(uint(in.SeasonID)) } { - const prefix string = ",\"Position\":" + const prefix string = ",\"Year\":" out.RawString(prefix) - out.String(string(in.Position)) + out.Uint(uint(in.Year)) } { - const prefix string = ",\"PositionLevel\":" + const prefix string = ",\"GamesPlayed\":" out.RawString(prefix) - out.String(string(in.PositionLevel)) + out.Int(int(in.GamesPlayed)) } { - const prefix string = ",\"FirstName\":" + const prefix string = ",\"QBRating\":" out.RawString(prefix) - out.String(string(in.FirstName)) + out.Float64(float64(in.QBRating)) + } + { + const prefix string = ",\"Tackles\":" + out.RawString(prefix) + out.Float64(float64(in.Tackles)) + } + { + const prefix string = ",\"RushingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.RushingAvg)) + } + { + const prefix string = ",\"PassingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.PassingAvg)) + } + { + const prefix string = ",\"ReceivingAvg\":" + out.RawString(prefix) + out.Float64(float64(in.ReceivingAvg)) + } + { + const prefix string = ",\"Completion\":" + out.RawString(prefix) + out.Float64(float64(in.Completion)) + } + { + const prefix string = ",\"PassingYards\":" + out.RawString(prefix) + out.Int16(int16(in.PassingYards)) + } + { + const prefix string = ",\"PassAttempts\":" + out.RawString(prefix) + out.Int16(int16(in.PassAttempts)) + } + { + const prefix string = ",\"PassCompletions\":" + out.RawString(prefix) + out.Int16(int16(in.PassCompletions)) + } + { + const prefix string = ",\"PassingTDs\":" + out.RawString(prefix) + out.Int16(int16(in.PassingTDs)) + } + { + const prefix string = ",\"Interceptions\":" + out.RawString(prefix) + out.Int16(int16(in.Interceptions)) + } + { + const prefix string = ",\"LongestPass\":" + out.RawString(prefix) + out.Int16(int16(in.LongestPass)) + } + { + const prefix string = ",\"Sacks\":" + out.RawString(prefix) + out.Int16(int16(in.Sacks)) + } + { + const prefix string = ",\"RushAttempts\":" + out.RawString(prefix) + out.Int16(int16(in.RushAttempts)) + } + { + const prefix string = ",\"RushingYards\":" + out.RawString(prefix) + out.Int16(int16(in.RushingYards)) + } + { + const prefix string = ",\"RushingTDs\":" + out.RawString(prefix) + out.Int16(int16(in.RushingTDs)) + } + { + const prefix string = ",\"Fumbles\":" + out.RawString(prefix) + out.Int16(int16(in.Fumbles)) + } + { + const prefix string = ",\"LongestRush\":" + out.RawString(prefix) + out.Int16(int16(in.LongestRush)) + } + { + const prefix string = ",\"Targets\":" + out.RawString(prefix) + out.Int16(int16(in.Targets)) + } + { + const prefix string = ",\"Catches\":" + out.RawString(prefix) + out.Int16(int16(in.Catches)) + } + { + const prefix string = ",\"ReceivingYards\":" + out.RawString(prefix) + out.Int16(int16(in.ReceivingYards)) + } + { + const prefix string = ",\"ReceivingTDs\":" + out.RawString(prefix) + out.Int16(int16(in.ReceivingTDs)) + } + { + const prefix string = ",\"LongestReception\":" + out.RawString(prefix) + out.Int16(int16(in.LongestReception)) + } + { + const prefix string = ",\"SoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.SoloTackles)) + } + { + const prefix string = ",\"AssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.AssistedTackles)) + } + { + const prefix string = ",\"TacklesForLoss\":" + out.RawString(prefix) + out.Float64(float64(in.TacklesForLoss)) + } + { + const prefix string = ",\"SacksMade\":" + out.RawString(prefix) + out.Float64(float64(in.SacksMade)) } { - const prefix string = ",\"LastName\":" + const prefix string = ",\"ForcedFumbles\":" out.RawString(prefix) - out.String(string(in.LastName)) + out.Int16(int16(in.ForcedFumbles)) } { - const prefix string = ",\"OriginalPosition\":" + const prefix string = ",\"RecoveredFumbles\":" out.RawString(prefix) - out.String(string(in.OriginalPosition)) + out.Int16(int16(in.RecoveredFumbles)) } { - const prefix string = ",\"NFLPlayer\":" + const prefix string = ",\"PassDeflections\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, in.NFLPlayer) + out.Int16(int16(in.PassDeflections)) } { - const prefix string = ",\"ID\":" + const prefix string = ",\"InterceptionsCaught\":" out.RawString(prefix) - out.Uint(uint(in.ID)) + out.Int16(int16(in.InterceptionsCaught)) } { - const prefix string = ",\"CreatedAt\":" + const prefix string = ",\"Safeties\":" out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) + out.Int16(int16(in.Safeties)) } { - const prefix string = ",\"UpdatedAt\":" + const prefix string = ",\"DefensiveTDs\":" out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) + out.Int16(int16(in.DefensiveTDs)) } { - const prefix string = ",\"DeletedAt\":" + const prefix string = ",\"FGMade\":" out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } + out.Int16(int16(in.FGMade)) } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in *jlexer.Lexer, out *structs.NFLPlayer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return + { + const prefix string = ",\"FGAttempts\":" + out.RawString(prefix) + out.Int16(int16(in.FGAttempts)) } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "TeamID": - out.TeamID = int(in.Int()) - case "CollegeID": - out.CollegeID = uint(in.Uint()) - case "College": - out.College = string(in.String()) - case "TeamAbbr": - out.TeamAbbr = string(in.String()) - case "Experience": - out.Experience = uint(in.Uint()) - case "HighSchool": - out.HighSchool = string(in.String()) - case "Hometown": - out.Hometown = string(in.String()) - case "State": - out.State = string(in.String()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsPracticeSquad": - out.IsPracticeSquad = bool(in.Bool()) - case "IsFreeAgent": - out.IsFreeAgent = bool(in.Bool()) - case "IsWaived": - out.IsWaived = bool(in.Bool()) - case "IsOnTradeBlock": - out.IsOnTradeBlock = bool(in.Bool()) - case "IsAcceptingOffers": - out.IsAcceptingOffers = bool(in.Bool()) - case "IsNegotiating": - out.IsNegotiating = bool(in.Bool()) - case "NegotiationRound": - out.NegotiationRound = uint(in.Uint()) - case "SigningRound": - out.SigningRound = uint(in.Uint()) - case "MinimumValue": - out.MinimumValue = float64(in.Float64()) - case "OriginalMinimumValue": - out.OriginalMinimumValue = float64(in.Float64()) - case "AAV": - out.AAV = float64(in.Float64()) - case "OriginalAAV": - out.OriginalAAV = float64(in.Float64()) - case "DraftedTeamID": - out.DraftedTeamID = uint(in.Uint()) - case "DraftedTeam": - out.DraftedTeam = string(in.String()) - case "DraftedRound": - out.DraftedRound = uint(in.Uint()) - case "DraftPickID": - out.DraftPickID = uint(in.Uint()) - case "DraftedPick": - out.DraftedPick = uint(in.Uint()) - case "ShowLetterGrade": - out.ShowLetterGrade = bool(in.Bool()) - case "HasProgressed": - out.HasProgressed = bool(in.Bool()) - case "Rejections": - out.Rejections = int(in.Int()) - case "ProBowls": - out.ProBowls = uint8(in.Uint8()) - case "TagType": - out.TagType = uint8(in.Uint8()) - case "Stats": - if in.IsNull() { - in.Skip() - out.Stats = nil - } else { - in.Delim('[') - if out.Stats == nil { - if !in.IsDelim(']') { - out.Stats = make([]structs.NFLPlayerStats, 0, 0) - } else { - out.Stats = []structs.NFLPlayerStats{} - } - } else { - out.Stats = (out.Stats)[:0] - } - for !in.IsDelim(']') { - var v42 structs.NFLPlayerStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v42) - out.Stats = append(out.Stats, v42) - in.WantComma() - } - in.Delim(']') - } - case "SeasonStats": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &out.SeasonStats) - case "Contract": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &out.Contract) - case "Offers": - if in.IsNull() { - in.Skip() - out.Offers = nil - } else { - in.Delim('[') - if out.Offers == nil { - if !in.IsDelim(']') { - out.Offers = make([]structs.FreeAgencyOffer, 0, 0) - } else { - out.Offers = []structs.FreeAgencyOffer{} - } - } else { - out.Offers = (out.Offers)[:0] - } - for !in.IsDelim(']') { - var v43 structs.FreeAgencyOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v43) - out.Offers = append(out.Offers, v43) - in.WantComma() - } - in.Delim(']') - } - case "WaiverOffers": - if in.IsNull() { - in.Skip() - out.WaiverOffers = nil - } else { - in.Delim('[') - if out.WaiverOffers == nil { - if !in.IsDelim(']') { - out.WaiverOffers = make([]structs.NFLWaiverOffer, 0, 1) - } else { - out.WaiverOffers = []structs.NFLWaiverOffer{} - } - } else { - out.WaiverOffers = (out.WaiverOffers)[:0] - } - for !in.IsDelim(']') { - var v44 structs.NFLWaiverOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v44) - out.WaiverOffers = append(out.WaiverOffers, v44) - in.WantComma() - } - in.Delim(']') - } - case "Extensions": - if in.IsNull() { - in.Skip() - out.Extensions = nil - } else { - in.Delim('[') - if out.Extensions == nil { - if !in.IsDelim(']') { - out.Extensions = make([]structs.NFLExtensionOffer, 0, 0) - } else { - out.Extensions = []structs.NFLExtensionOffer{} - } - } else { - out.Extensions = (out.Extensions)[:0] - } - for !in.IsDelim(']') { - var v45 structs.NFLExtensionOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v45) - out.Extensions = append(out.Extensions, v45) - in.WantComma() - } - in.Delim(']') - } - case "FirstName": - out.FirstName = string(in.String()) - case "LastName": - out.LastName = string(in.String()) - case "Position": - out.Position = string(in.String()) - case "Archetype": - out.Archetype = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "Height": - out.Height = int(in.Int()) - case "Weight": - out.Weight = int(in.Int()) - case "Age": - out.Age = int(in.Int()) - case "Stars": - out.Stars = int(in.Int()) - case "Overall": - out.Overall = int(in.Int()) - case "Stamina": - out.Stamina = int(in.Int()) - case "Injury": - out.Injury = int(in.Int()) - case "FootballIQ": - out.FootballIQ = int(in.Int()) - case "Speed": - out.Speed = int(in.Int()) - case "Carrying": - out.Carrying = int(in.Int()) - case "Agility": - out.Agility = int(in.Int()) - case "Catching": - out.Catching = int(in.Int()) - case "RouteRunning": - out.RouteRunning = int(in.Int()) - case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) - case "ManCoverage": - out.ManCoverage = int(in.Int()) - case "Strength": - out.Strength = int(in.Int()) - case "Tackle": - out.Tackle = int(in.Int()) - case "PassBlock": - out.PassBlock = int(in.Int()) - case "RunBlock": - out.RunBlock = int(in.Int()) - case "PassRush": - out.PassRush = int(in.Int()) - case "RunDefense": - out.RunDefense = int(in.Int()) - case "ThrowPower": - out.ThrowPower = int(in.Int()) - case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) - case "KickAccuracy": - out.KickAccuracy = int(in.Int()) - case "KickPower": - out.KickPower = int(in.Int()) - case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) - case "PuntPower": - out.PuntPower = int(in.Int()) - case "Progression": - out.Progression = int(in.Int()) - case "Discipline": - out.Discipline = int(in.Int()) - case "PotentialGrade": - out.PotentialGrade = string(in.String()) - case "FreeAgency": - out.FreeAgency = string(in.String()) - case "Personality": - out.Personality = string(in.String()) - case "RecruitingBias": - out.RecruitingBias = string(in.String()) - case "WorkEthic": - out.WorkEthic = string(in.String()) - case "AcademicBias": - out.AcademicBias = string(in.String()) - case "IsInjured": - out.IsInjured = bool(in.Bool()) - case "InjuryName": - out.InjuryName = string(in.String()) - case "InjuryType": - out.InjuryType = string(in.String()) + { + const prefix string = ",\"LongestFG\":" + out.RawString(prefix) + out.Int16(int16(in.LongestFG)) + } + { + const prefix string = ",\"ExtraPointsMade\":" + out.RawString(prefix) + out.Int16(int16(in.ExtraPointsMade)) + } + { + const prefix string = ",\"ExtraPointsAttempted\":" + out.RawString(prefix) + out.Int16(int16(in.ExtraPointsAttempted)) + } + { + const prefix string = ",\"KickoffTouchbacks\":" + out.RawString(prefix) + out.Int16(int16(in.KickoffTouchbacks)) + } + { + const prefix string = ",\"Punts\":" + out.RawString(prefix) + out.Int16(int16(in.Punts)) + } + { + const prefix string = ",\"GrossPuntDistance\":" + out.RawString(prefix) + out.Int16(int16(in.GrossPuntDistance)) + } + { + const prefix string = ",\"NetPuntDistance\":" + out.RawString(prefix) + out.Int16(int16(in.NetPuntDistance)) + } + { + const prefix string = ",\"PuntTouchbacks\":" + out.RawString(prefix) + out.Int16(int16(in.PuntTouchbacks)) + } + { + const prefix string = ",\"PuntsInside20\":" + out.RawString(prefix) + out.Int16(int16(in.PuntsInside20)) + } + { + const prefix string = ",\"KickReturns\":" + out.RawString(prefix) + out.Int16(int16(in.KickReturns)) + } + { + const prefix string = ",\"KickReturnTDs\":" + out.RawString(prefix) + out.Int16(int16(in.KickReturnTDs)) + } + { + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int16(int16(in.KickReturnYards)) + } + { + const prefix string = ",\"PuntReturns\":" + out.RawString(prefix) + out.Int16(int16(in.PuntReturns)) + } + { + const prefix string = ",\"PuntReturnTDs\":" + out.RawString(prefix) + out.Int16(int16(in.PuntReturnTDs)) + } + { + const prefix string = ",\"PuntReturnYards\":" + out.RawString(prefix) + out.Int16(int16(in.PuntReturnYards)) + } + { + const prefix string = ",\"STSoloTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STSoloTackles)) + } + { + const prefix string = ",\"STAssistedTackles\":" + out.RawString(prefix) + out.Float64(float64(in.STAssistedTackles)) + } + { + const prefix string = ",\"PuntsBlocked\":" + out.RawString(prefix) + out.Int16(int16(in.PuntsBlocked)) + } + { + const prefix string = ",\"FGBlocked\":" + out.RawString(prefix) + out.Int16(int16(in.FGBlocked)) + } + { + const prefix string = ",\"Snaps\":" + out.RawString(prefix) + out.Int16(int16(in.Snaps)) + } + { + const prefix string = ",\"Pancakes\":" + out.RawString(prefix) + out.Int16(int16(in.Pancakes)) + } + { + const prefix string = ",\"SacksAllowed\":" + out.RawString(prefix) + out.Int16(int16(in.SacksAllowed)) + } + { + const prefix string = ",\"PlayedGame\":" + out.RawString(prefix) + out.Int16(int16(in.PlayedGame)) + } + { + const prefix string = ",\"StartedGame\":" + out.RawString(prefix) + out.Int16(int16(in.StartedGame)) + } + { + const prefix string = ",\"WasInjured\":" + out.RawString(prefix) + out.Bool(bool(in.WasInjured)) + } + { + const prefix string = ",\"WeeksOfRecovery\":" + out.RawString(prefix) + out.Uint(uint(in.WeeksOfRecovery)) + } + { + const prefix string = ",\"InjuryType\":" + out.RawString(prefix) + out.String(string(in.InjuryType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) + } + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"Team\":" + out.RawString(prefix) + out.String(string(in.Team)) + } + { + const prefix string = ",\"PreviousTeamID\":" + out.RawString(prefix) + out.Uint(uint(in.PreviousTeamID)) + } + { + const prefix string = ",\"PreviousTeam\":" + out.RawString(prefix) + out.String(string(in.PreviousTeam)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in *jlexer.Lexer, out *structs.NFLPlayerStats) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "IsPreseasonGame": + out.IsPreseasonGame = bool(in.Bool()) + case "NFLPlayerID": + out.NFLPlayerID = int(in.Int()) + case "GameID": + out.GameID = int(in.Int()) + case "WeekID": + out.WeekID = int(in.Int()) + case "SeasonID": + out.SeasonID = int(in.Int()) + case "OpposingTeam": + out.OpposingTeam = string(in.String()) + case "Year": + out.Year = int(in.Int()) + case "PassingYards": + out.PassingYards = int16(in.Int16()) + case "PassAttempts": + out.PassAttempts = int16(in.Int16()) + case "PassCompletions": + out.PassCompletions = int16(in.Int16()) + case "PassingTDs": + out.PassingTDs = int16(in.Int16()) + case "Interceptions": + out.Interceptions = int16(in.Int16()) + case "LongestPass": + out.LongestPass = int16(in.Int16()) + case "Sacks": + out.Sacks = int16(in.Int16()) + case "RushAttempts": + out.RushAttempts = int16(in.Int16()) + case "RushingYards": + out.RushingYards = int16(in.Int16()) + case "RushingTDs": + out.RushingTDs = int16(in.Int16()) + case "Fumbles": + out.Fumbles = int16(in.Int16()) + case "LongestRush": + out.LongestRush = int16(in.Int16()) + case "Targets": + out.Targets = int16(in.Int16()) + case "Catches": + out.Catches = int16(in.Int16()) + case "ReceivingYards": + out.ReceivingYards = int16(in.Int16()) + case "ReceivingTDs": + out.ReceivingTDs = int16(in.Int16()) + case "LongestReception": + out.LongestReception = int16(in.Int16()) + case "SoloTackles": + out.SoloTackles = float64(in.Float64()) + case "AssistedTackles": + out.AssistedTackles = float64(in.Float64()) + case "TacklesForLoss": + out.TacklesForLoss = float64(in.Float64()) + case "SacksMade": + out.SacksMade = float64(in.Float64()) + case "ForcedFumbles": + out.ForcedFumbles = int16(in.Int16()) + case "RecoveredFumbles": + out.RecoveredFumbles = int16(in.Int16()) + case "PassDeflections": + out.PassDeflections = int16(in.Int16()) + case "InterceptionsCaught": + out.InterceptionsCaught = int16(in.Int16()) + case "Safeties": + out.Safeties = int16(in.Int16()) + case "DefensiveTDs": + out.DefensiveTDs = int16(in.Int16()) + case "FGMade": + out.FGMade = int16(in.Int16()) + case "FGAttempts": + out.FGAttempts = int16(in.Int16()) + case "LongestFG": + out.LongestFG = int16(in.Int16()) + case "ExtraPointsMade": + out.ExtraPointsMade = int16(in.Int16()) + case "ExtraPointsAttempted": + out.ExtraPointsAttempted = int16(in.Int16()) + case "KickoffTouchbacks": + out.KickoffTouchbacks = int16(in.Int16()) + case "Punts": + out.Punts = int16(in.Int16()) + case "GrossPuntDistance": + out.GrossPuntDistance = int16(in.Int16()) + case "NetPuntDistance": + out.NetPuntDistance = int16(in.Int16()) + case "PuntTouchbacks": + out.PuntTouchbacks = int16(in.Int16()) + case "PuntsInside20": + out.PuntsInside20 = int16(in.Int16()) + case "KickReturns": + out.KickReturns = int16(in.Int16()) + case "KickReturnTDs": + out.KickReturnTDs = int16(in.Int16()) + case "KickReturnYards": + out.KickReturnYards = int16(in.Int16()) + case "PuntReturns": + out.PuntReturns = int16(in.Int16()) + case "PuntReturnTDs": + out.PuntReturnTDs = int16(in.Int16()) + case "PuntReturnYards": + out.PuntReturnYards = int16(in.Int16()) + case "STSoloTackles": + out.STSoloTackles = float64(in.Float64()) + case "STAssistedTackles": + out.STAssistedTackles = float64(in.Float64()) + case "PuntsBlocked": + out.PuntsBlocked = int16(in.Int16()) + case "FGBlocked": + out.FGBlocked = int16(in.Int16()) + case "Snaps": + out.Snaps = int16(in.Int16()) + case "Pancakes": + out.Pancakes = int16(in.Int16()) + case "SacksAllowed": + out.SacksAllowed = int16(in.Int16()) + case "PlayedGame": + out.PlayedGame = int16(in.Int16()) + case "StartedGame": + out.StartedGame = int16(in.Int16()) + case "WasInjured": + out.WasInjured = bool(in.Bool()) case "WeeksOfRecovery": out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryReserve": - out.InjuryReserve = bool(in.Bool()) - case "PrimeAge": - out.PrimeAge = uint(in.Uint()) - case "Clutch": - out.Clutch = int(in.Int()) - case "Shotgun": - out.Shotgun = int(in.Int()) - case "PositionTwo": - out.PositionTwo = string(in.String()) - case "ArchetypeTwo": - out.ArchetypeTwo = string(in.String()) - case "RelativeID": - out.RelativeID = uint(in.Uint()) - case "RelativeType": - out.RelativeType = uint(in.Uint()) - case "Notes": - out.Notes = string(in.String()) - case "ProgramPref": - out.ProgramPref = uint8(in.Uint8()) - case "ProfDevPref": - out.ProfDevPref = uint8(in.Uint8()) - case "TraditionsPref": - out.TraditionsPref = uint8(in.Uint8()) - case "FacilitiesPref": - out.FacilitiesPref = uint8(in.Uint8()) - case "AtmospherePref": - out.AtmospherePref = uint8(in.Uint8()) - case "AcademicsPref": - out.AcademicsPref = uint8(in.Uint8()) - case "ConferencePref": - out.ConferencePref = uint8(in.Uint8()) - case "CoachPref": - out.CoachPref = uint8(in.Uint8()) - case "SeasonMomentumPref": - out.SeasonMomentumPref = uint8(in.Uint8()) - case "CampusLifePref": - out.CampusLifePref = uint8(in.Uint8()) - case "ReligionPref": - out.ReligionPref = uint8(in.Uint8()) - case "ServiceAcademyPref": - out.ServiceAcademyPref = uint8(in.Uint8()) - case "SmallTownPref": - out.SmallTownPref = uint8(in.Uint8()) - case "BigCityPref": - out.BigCityPref = uint8(in.Uint8()) - case "MediaSpotlightPref": - out.MediaSpotlightPref = uint8(in.Uint8()) + case "InjuryType": + out.InjuryType = string(in.String()) + case "RevealResults": + out.RevealResults = bool(in.Bool()) + case "TeamID": + out.TeamID = uint(in.Uint()) + case "Team": + out.Team = string(in.String()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "GameType": + out.GameType = uint8(in.Uint8()) case "ID": out.ID = uint(in.Uint()) case "CreatedAt": @@ -5715,844 +5953,1056 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out *jwriter.Writer, in structs.NFLPlayer) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out *jwriter.Writer, in structs.NFLPlayerStats) { out.RawByte('{') first := true _ = first { - const prefix string = ",\"PlayerID\":" + const prefix string = ",\"IsPreseasonGame\":" out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Int(int(in.TeamID)) - } - { - const prefix string = ",\"CollegeID\":" - out.RawString(prefix) - out.Uint(uint(in.CollegeID)) - } - { - const prefix string = ",\"College\":" - out.RawString(prefix) - out.String(string(in.College)) - } - { - const prefix string = ",\"TeamAbbr\":" - out.RawString(prefix) - out.String(string(in.TeamAbbr)) - } - { - const prefix string = ",\"Experience\":" - out.RawString(prefix) - out.Uint(uint(in.Experience)) - } - { - const prefix string = ",\"HighSchool\":" - out.RawString(prefix) - out.String(string(in.HighSchool)) - } - { - const prefix string = ",\"Hometown\":" - out.RawString(prefix) - out.String(string(in.Hometown)) - } - { - const prefix string = ",\"State\":" - out.RawString(prefix) - out.String(string(in.State)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - { - const prefix string = ",\"IsPracticeSquad\":" - out.RawString(prefix) - out.Bool(bool(in.IsPracticeSquad)) - } - { - const prefix string = ",\"IsFreeAgent\":" - out.RawString(prefix) - out.Bool(bool(in.IsFreeAgent)) - } - { - const prefix string = ",\"IsWaived\":" - out.RawString(prefix) - out.Bool(bool(in.IsWaived)) + out.Bool(bool(in.IsPreseasonGame)) } { - const prefix string = ",\"IsOnTradeBlock\":" + const prefix string = ",\"NFLPlayerID\":" out.RawString(prefix) - out.Bool(bool(in.IsOnTradeBlock)) + out.Int(int(in.NFLPlayerID)) } { - const prefix string = ",\"IsAcceptingOffers\":" + const prefix string = ",\"GameID\":" out.RawString(prefix) - out.Bool(bool(in.IsAcceptingOffers)) + out.Int(int(in.GameID)) } { - const prefix string = ",\"IsNegotiating\":" + const prefix string = ",\"WeekID\":" out.RawString(prefix) - out.Bool(bool(in.IsNegotiating)) + out.Int(int(in.WeekID)) } { - const prefix string = ",\"NegotiationRound\":" + const prefix string = ",\"SeasonID\":" out.RawString(prefix) - out.Uint(uint(in.NegotiationRound)) + out.Int(int(in.SeasonID)) } { - const prefix string = ",\"SigningRound\":" + const prefix string = ",\"OpposingTeam\":" out.RawString(prefix) - out.Uint(uint(in.SigningRound)) + out.String(string(in.OpposingTeam)) } { - const prefix string = ",\"MinimumValue\":" + const prefix string = ",\"Year\":" out.RawString(prefix) - out.Float64(float64(in.MinimumValue)) + out.Int(int(in.Year)) } { - const prefix string = ",\"OriginalMinimumValue\":" + const prefix string = ",\"PassingYards\":" out.RawString(prefix) - out.Float64(float64(in.OriginalMinimumValue)) + out.Int16(int16(in.PassingYards)) } { - const prefix string = ",\"AAV\":" + const prefix string = ",\"PassAttempts\":" out.RawString(prefix) - out.Float64(float64(in.AAV)) + out.Int16(int16(in.PassAttempts)) } { - const prefix string = ",\"OriginalAAV\":" + const prefix string = ",\"PassCompletions\":" out.RawString(prefix) - out.Float64(float64(in.OriginalAAV)) + out.Int16(int16(in.PassCompletions)) } { - const prefix string = ",\"DraftedTeamID\":" + const prefix string = ",\"PassingTDs\":" out.RawString(prefix) - out.Uint(uint(in.DraftedTeamID)) + out.Int16(int16(in.PassingTDs)) } { - const prefix string = ",\"DraftedTeam\":" + const prefix string = ",\"Interceptions\":" out.RawString(prefix) - out.String(string(in.DraftedTeam)) + out.Int16(int16(in.Interceptions)) } { - const prefix string = ",\"DraftedRound\":" + const prefix string = ",\"LongestPass\":" out.RawString(prefix) - out.Uint(uint(in.DraftedRound)) + out.Int16(int16(in.LongestPass)) } { - const prefix string = ",\"DraftPickID\":" + const prefix string = ",\"Sacks\":" out.RawString(prefix) - out.Uint(uint(in.DraftPickID)) + out.Int16(int16(in.Sacks)) } { - const prefix string = ",\"DraftedPick\":" + const prefix string = ",\"RushAttempts\":" out.RawString(prefix) - out.Uint(uint(in.DraftedPick)) + out.Int16(int16(in.RushAttempts)) } { - const prefix string = ",\"ShowLetterGrade\":" + const prefix string = ",\"RushingYards\":" out.RawString(prefix) - out.Bool(bool(in.ShowLetterGrade)) + out.Int16(int16(in.RushingYards)) } { - const prefix string = ",\"HasProgressed\":" + const prefix string = ",\"RushingTDs\":" out.RawString(prefix) - out.Bool(bool(in.HasProgressed)) + out.Int16(int16(in.RushingTDs)) } { - const prefix string = ",\"Rejections\":" + const prefix string = ",\"Fumbles\":" out.RawString(prefix) - out.Int(int(in.Rejections)) + out.Int16(int16(in.Fumbles)) } { - const prefix string = ",\"ProBowls\":" + const prefix string = ",\"LongestRush\":" out.RawString(prefix) - out.Uint8(uint8(in.ProBowls)) + out.Int16(int16(in.LongestRush)) } { - const prefix string = ",\"TagType\":" + const prefix string = ",\"Targets\":" out.RawString(prefix) - out.Uint8(uint8(in.TagType)) + out.Int16(int16(in.Targets)) } { - const prefix string = ",\"Stats\":" + const prefix string = ",\"Catches\":" out.RawString(prefix) - if in.Stats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v46, v47 := range in.Stats { - if v46 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v47) - } - out.RawByte(']') - } + out.Int16(int16(in.Catches)) } { - const prefix string = ",\"SeasonStats\":" + const prefix string = ",\"ReceivingYards\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, in.SeasonStats) + out.Int16(int16(in.ReceivingYards)) } { - const prefix string = ",\"Contract\":" + const prefix string = ",\"ReceivingTDs\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, in.Contract) + out.Int16(int16(in.ReceivingTDs)) } { - const prefix string = ",\"Offers\":" + const prefix string = ",\"LongestReception\":" out.RawString(prefix) - if in.Offers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v48, v49 := range in.Offers { - if v48 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v49) - } - out.RawByte(']') - } + out.Int16(int16(in.LongestReception)) } { - const prefix string = ",\"WaiverOffers\":" + const prefix string = ",\"SoloTackles\":" out.RawString(prefix) - if in.WaiverOffers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v50, v51 := range in.WaiverOffers { - if v50 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v51) - } - out.RawByte(']') - } + out.Float64(float64(in.SoloTackles)) } { - const prefix string = ",\"Extensions\":" + const prefix string = ",\"AssistedTackles\":" out.RawString(prefix) - if in.Extensions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v52, v53 := range in.Extensions { - if v52 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v53) - } - out.RawByte(']') - } + out.Float64(float64(in.AssistedTackles)) } { - const prefix string = ",\"FirstName\":" + const prefix string = ",\"TacklesForLoss\":" out.RawString(prefix) - out.String(string(in.FirstName)) + out.Float64(float64(in.TacklesForLoss)) } { - const prefix string = ",\"LastName\":" + const prefix string = ",\"SacksMade\":" out.RawString(prefix) - out.String(string(in.LastName)) + out.Float64(float64(in.SacksMade)) } { - const prefix string = ",\"Position\":" + const prefix string = ",\"ForcedFumbles\":" out.RawString(prefix) - out.String(string(in.Position)) + out.Int16(int16(in.ForcedFumbles)) } { - const prefix string = ",\"Archetype\":" + const prefix string = ",\"RecoveredFumbles\":" out.RawString(prefix) - out.String(string(in.Archetype)) + out.Int16(int16(in.RecoveredFumbles)) } { - const prefix string = ",\"PreviousTeamID\":" + const prefix string = ",\"PassDeflections\":" out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) + out.Int16(int16(in.PassDeflections)) } { - const prefix string = ",\"PreviousTeam\":" + const prefix string = ",\"InterceptionsCaught\":" out.RawString(prefix) - out.String(string(in.PreviousTeam)) + out.Int16(int16(in.InterceptionsCaught)) } { - const prefix string = ",\"Height\":" + const prefix string = ",\"Safeties\":" out.RawString(prefix) - out.Int(int(in.Height)) + out.Int16(int16(in.Safeties)) } { - const prefix string = ",\"Weight\":" + const prefix string = ",\"DefensiveTDs\":" out.RawString(prefix) - out.Int(int(in.Weight)) + out.Int16(int16(in.DefensiveTDs)) } { - const prefix string = ",\"Age\":" + const prefix string = ",\"FGMade\":" out.RawString(prefix) - out.Int(int(in.Age)) + out.Int16(int16(in.FGMade)) } { - const prefix string = ",\"Stars\":" + const prefix string = ",\"FGAttempts\":" out.RawString(prefix) - out.Int(int(in.Stars)) + out.Int16(int16(in.FGAttempts)) } { - const prefix string = ",\"Overall\":" + const prefix string = ",\"LongestFG\":" out.RawString(prefix) - out.Int(int(in.Overall)) + out.Int16(int16(in.LongestFG)) } { - const prefix string = ",\"Stamina\":" + const prefix string = ",\"ExtraPointsMade\":" out.RawString(prefix) - out.Int(int(in.Stamina)) + out.Int16(int16(in.ExtraPointsMade)) } { - const prefix string = ",\"Injury\":" + const prefix string = ",\"ExtraPointsAttempted\":" out.RawString(prefix) - out.Int(int(in.Injury)) + out.Int16(int16(in.ExtraPointsAttempted)) } { - const prefix string = ",\"FootballIQ\":" + const prefix string = ",\"KickoffTouchbacks\":" out.RawString(prefix) - out.Int(int(in.FootballIQ)) + out.Int16(int16(in.KickoffTouchbacks)) } { - const prefix string = ",\"Speed\":" + const prefix string = ",\"Punts\":" out.RawString(prefix) - out.Int(int(in.Speed)) + out.Int16(int16(in.Punts)) } { - const prefix string = ",\"Carrying\":" + const prefix string = ",\"GrossPuntDistance\":" out.RawString(prefix) - out.Int(int(in.Carrying)) + out.Int16(int16(in.GrossPuntDistance)) } { - const prefix string = ",\"Agility\":" + const prefix string = ",\"NetPuntDistance\":" out.RawString(prefix) - out.Int(int(in.Agility)) + out.Int16(int16(in.NetPuntDistance)) } { - const prefix string = ",\"Catching\":" + const prefix string = ",\"PuntTouchbacks\":" out.RawString(prefix) - out.Int(int(in.Catching)) + out.Int16(int16(in.PuntTouchbacks)) } { - const prefix string = ",\"RouteRunning\":" + const prefix string = ",\"PuntsInside20\":" out.RawString(prefix) - out.Int(int(in.RouteRunning)) + out.Int16(int16(in.PuntsInside20)) } { - const prefix string = ",\"ZoneCoverage\":" + const prefix string = ",\"KickReturns\":" out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) + out.Int16(int16(in.KickReturns)) } { - const prefix string = ",\"ManCoverage\":" + const prefix string = ",\"KickReturnTDs\":" out.RawString(prefix) - out.Int(int(in.ManCoverage)) + out.Int16(int16(in.KickReturnTDs)) } { - const prefix string = ",\"Strength\":" + const prefix string = ",\"KickReturnYards\":" out.RawString(prefix) - out.Int(int(in.Strength)) + out.Int16(int16(in.KickReturnYards)) } { - const prefix string = ",\"Tackle\":" + const prefix string = ",\"PuntReturns\":" out.RawString(prefix) - out.Int(int(in.Tackle)) + out.Int16(int16(in.PuntReturns)) } { - const prefix string = ",\"PassBlock\":" + const prefix string = ",\"PuntReturnTDs\":" out.RawString(prefix) - out.Int(int(in.PassBlock)) + out.Int16(int16(in.PuntReturnTDs)) } { - const prefix string = ",\"RunBlock\":" + const prefix string = ",\"PuntReturnYards\":" out.RawString(prefix) - out.Int(int(in.RunBlock)) + out.Int16(int16(in.PuntReturnYards)) } { - const prefix string = ",\"PassRush\":" + const prefix string = ",\"STSoloTackles\":" out.RawString(prefix) - out.Int(int(in.PassRush)) + out.Float64(float64(in.STSoloTackles)) } { - const prefix string = ",\"RunDefense\":" + const prefix string = ",\"STAssistedTackles\":" out.RawString(prefix) - out.Int(int(in.RunDefense)) + out.Float64(float64(in.STAssistedTackles)) } { - const prefix string = ",\"ThrowPower\":" + const prefix string = ",\"PuntsBlocked\":" out.RawString(prefix) - out.Int(int(in.ThrowPower)) + out.Int16(int16(in.PuntsBlocked)) } { - const prefix string = ",\"ThrowAccuracy\":" + const prefix string = ",\"FGBlocked\":" out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) + out.Int16(int16(in.FGBlocked)) } { - const prefix string = ",\"KickAccuracy\":" + const prefix string = ",\"Snaps\":" out.RawString(prefix) - out.Int(int(in.KickAccuracy)) + out.Int16(int16(in.Snaps)) } { - const prefix string = ",\"KickPower\":" + const prefix string = ",\"Pancakes\":" out.RawString(prefix) - out.Int(int(in.KickPower)) + out.Int16(int16(in.Pancakes)) } { - const prefix string = ",\"PuntAccuracy\":" + const prefix string = ",\"SacksAllowed\":" out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) + out.Int16(int16(in.SacksAllowed)) } { - const prefix string = ",\"PuntPower\":" + const prefix string = ",\"PlayedGame\":" out.RawString(prefix) - out.Int(int(in.PuntPower)) + out.Int16(int16(in.PlayedGame)) } { - const prefix string = ",\"Progression\":" + const prefix string = ",\"StartedGame\":" out.RawString(prefix) - out.Int(int(in.Progression)) + out.Int16(int16(in.StartedGame)) } { - const prefix string = ",\"Discipline\":" + const prefix string = ",\"WasInjured\":" out.RawString(prefix) - out.Int(int(in.Discipline)) + out.Bool(bool(in.WasInjured)) } { - const prefix string = ",\"PotentialGrade\":" + const prefix string = ",\"WeeksOfRecovery\":" out.RawString(prefix) - out.String(string(in.PotentialGrade)) + out.Uint(uint(in.WeeksOfRecovery)) } { - const prefix string = ",\"FreeAgency\":" + const prefix string = ",\"InjuryType\":" out.RawString(prefix) - out.String(string(in.FreeAgency)) + out.String(string(in.InjuryType)) } { - const prefix string = ",\"Personality\":" + const prefix string = ",\"RevealResults\":" out.RawString(prefix) - out.String(string(in.Personality)) + out.Bool(bool(in.RevealResults)) } { - const prefix string = ",\"RecruitingBias\":" + const prefix string = ",\"TeamID\":" out.RawString(prefix) - out.String(string(in.RecruitingBias)) + out.Uint(uint(in.TeamID)) } { - const prefix string = ",\"WorkEthic\":" + const prefix string = ",\"Team\":" out.RawString(prefix) - out.String(string(in.WorkEthic)) + out.String(string(in.Team)) } { - const prefix string = ",\"AcademicBias\":" + const prefix string = ",\"PreviousTeamID\":" out.RawString(prefix) - out.String(string(in.AcademicBias)) + out.Uint(uint(in.PreviousTeamID)) } { - const prefix string = ",\"IsInjured\":" + const prefix string = ",\"PreviousTeam\":" out.RawString(prefix) - out.Bool(bool(in.IsInjured)) + out.String(string(in.PreviousTeam)) } { - const prefix string = ",\"InjuryName\":" + const prefix string = ",\"GameType\":" out.RawString(prefix) - out.String(string(in.InjuryName)) + out.Uint8(uint8(in.GameType)) } { - const prefix string = ",\"InjuryType\":" + const prefix string = ",\"ID\":" out.RawString(prefix) - out.String(string(in.InjuryType)) + out.Uint(uint(in.ID)) } { - const prefix string = ",\"WeeksOfRecovery\":" + const prefix string = ",\"CreatedAt\":" out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) + out.Raw((in.CreatedAt).MarshalJSON()) } { - const prefix string = ",\"InjuryReserve\":" + const prefix string = ",\"UpdatedAt\":" out.RawString(prefix) - out.Bool(bool(in.InjuryReserve)) + out.Raw((in.UpdatedAt).MarshalJSON()) } { - const prefix string = ",\"PrimeAge\":" + const prefix string = ",\"DeletedAt\":" out.RawString(prefix) - out.Uint(uint(in.PrimeAge)) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, out *BootstrapDataTeams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "AllCollegeTeams": + if in.IsNull() { + in.Skip() + out.AllCollegeTeams = nil + } else { + in.Delim('[') + if out.AllCollegeTeams == nil { + if !in.IsDelim(']') { + out.AllCollegeTeams = make([]structs.CollegeTeam, 0, 0) + } else { + out.AllCollegeTeams = []structs.CollegeTeam{} + } + } else { + out.AllCollegeTeams = (out.AllCollegeTeams)[:0] + } + for !in.IsDelim(']') { + var v49 structs.CollegeTeam + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v49) + out.AllCollegeTeams = append(out.AllCollegeTeams, v49) + in.WantComma() + } + in.Delim(']') + } + case "AllProTeams": + if in.IsNull() { + in.Skip() + out.AllProTeams = nil + } else { + in.Delim('[') + if out.AllProTeams == nil { + if !in.IsDelim(']') { + out.AllProTeams = make([]structs.NFLTeam, 0, 0) + } else { + out.AllProTeams = []structs.NFLTeam{} + } + } else { + out.AllProTeams = (out.AllProTeams)[:0] + } + for !in.IsDelim(']') { + var v50 structs.NFLTeam + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v50) + out.AllProTeams = append(out.AllProTeams, v50) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer, in BootstrapDataTeams) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"Clutch\":" - out.RawString(prefix) - out.Int(int(in.Clutch)) + const prefix string = ",\"AllCollegeTeams\":" + out.RawString(prefix[1:]) + if in.AllCollegeTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v51, v52 := range in.AllCollegeTeams { + if v51 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v52) + } + out.RawByte(']') + } } { - const prefix string = ",\"Shotgun\":" + const prefix string = ",\"AllProTeams\":" out.RawString(prefix) - out.Int(int(in.Shotgun)) + if in.AllProTeams == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v53, v54 := range in.AllProTeams { + if v53 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v54) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BootstrapDataTeams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BootstrapDataTeams) MarshalEasyJSON(w *jwriter.Writer) { + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BootstrapDataTeams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BootstrapDataTeams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(l, v) +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in *jlexer.Lexer, out *structs.NFLTeam) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return } - { - const prefix string = ",\"PositionTwo\":" - out.RawString(prefix) - out.String(string(in.PositionTwo)) + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "ConferenceID": + out.ConferenceID = uint(in.Uint()) + case "Conference": + out.Conference = string(in.String()) + case "DivisionID": + out.DivisionID = uint(in.Uint()) + case "Division": + out.Division = string(in.String()) + case "NFLOwnerID": + out.NFLOwnerID = uint(in.Uint()) + case "NFLOwnerName": + out.NFLOwnerName = string(in.String()) + case "NFLCoachID": + out.NFLCoachID = uint(in.Uint()) + case "NFLCoachName": + out.NFLCoachName = string(in.String()) + case "NFLGMID": + out.NFLGMID = uint(in.Uint()) + case "NFLGMName": + out.NFLGMName = string(in.String()) + case "NFLAssistantID": + out.NFLAssistantID = uint(in.Uint()) + case "NFLAssistantName": + out.NFLAssistantName = string(in.String()) + case "WaiverOrder": + out.WaiverOrder = uint(in.Uint()) + case "UsedTagThisSeason": + out.UsedTagThisSeason = bool(in.Bool()) + case "Capsheet": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &out.Capsheet) + case "Contracts": + if in.IsNull() { + in.Skip() + out.Contracts = nil + } else { + in.Delim('[') + if out.Contracts == nil { + if !in.IsDelim(']') { + out.Contracts = make([]structs.NFLContract, 0, 0) + } else { + out.Contracts = []structs.NFLContract{} + } + } else { + out.Contracts = (out.Contracts)[:0] + } + for !in.IsDelim(']') { + var v55 structs.NFLContract + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &v55) + out.Contracts = append(out.Contracts, v55) + in.WantComma() + } + in.Delim(']') + } + case "DraftPicks": + if in.IsNull() { + in.Skip() + out.DraftPicks = nil + } else { + in.Delim('[') + if out.DraftPicks == nil { + if !in.IsDelim(']') { + out.DraftPicks = make([]structs.NFLDraftPick, 0, 0) + } else { + out.DraftPicks = []structs.NFLDraftPick{} + } + } else { + out.DraftPicks = (out.DraftPicks)[:0] + } + for !in.IsDelim(']') { + var v56 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v56) + out.DraftPicks = append(out.DraftPicks, v56) + in.WantComma() + } + in.Delim(']') + } + case "TeamStats": + if in.IsNull() { + in.Skip() + out.TeamStats = nil + } else { + in.Delim('[') + if out.TeamStats == nil { + if !in.IsDelim(']') { + out.TeamStats = make([]structs.NFLTeamStats, 0, 0) + } else { + out.TeamStats = []structs.NFLTeamStats{} + } + } else { + out.TeamStats = (out.TeamStats)[:0] + } + for !in.IsDelim(']') { + var v57 structs.NFLTeamStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v57) + out.TeamStats = append(out.TeamStats, v57) + in.WantComma() + } + in.Delim(']') + } + case "TeamSeasonStats": + if in.IsNull() { + in.Skip() + out.TeamSeasonStats = nil + } else { + in.Delim('[') + if out.TeamSeasonStats == nil { + if !in.IsDelim(']') { + out.TeamSeasonStats = make([]structs.NFLTeamSeasonStats, 0, 0) + } else { + out.TeamSeasonStats = []structs.NFLTeamSeasonStats{} + } + } else { + out.TeamSeasonStats = (out.TeamSeasonStats)[:0] + } + for !in.IsDelim(']') { + var v58 structs.NFLTeamSeasonStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v58) + out.TeamSeasonStats = append(out.TeamSeasonStats, v58) + in.WantComma() + } + in.Delim(']') + } + case "TeamDepthChart": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &out.TeamDepthChart) + case "TeamGameplan": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &out.TeamGameplan) + case "Standings": + if in.IsNull() { + in.Skip() + out.Standings = nil + } else { + in.Delim('[') + if out.Standings == nil { + if !in.IsDelim(']') { + out.Standings = make([]structs.NFLStandings, 0, 0) + } else { + out.Standings = []structs.NFLStandings{} + } + } else { + out.Standings = (out.Standings)[:0] + } + for !in.IsDelim(']') { + var v59 structs.NFLStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v59) + out.Standings = append(out.Standings, v59) + in.WantComma() + } + in.Delim(']') + } + case "TeamName": + out.TeamName = string(in.String()) + case "Mascot": + out.Mascot = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "Coach": + out.Coach = string(in.String()) + case "City": + out.City = string(in.String()) + case "State": + out.State = string(in.String()) + case "Country": + out.Country = string(in.String()) + case "StadiumID": + out.StadiumID = uint(in.Uint()) + case "Stadium": + out.Stadium = string(in.String()) + case "StadiumCapacity": + out.StadiumCapacity = int(in.Int()) + case "RecordAttendance": + out.RecordAttendance = int(in.Int()) + case "Enrollment": + out.Enrollment = int(in.Int()) + case "FirstPlayed": + out.FirstPlayed = int(in.Int()) + case "ColorOne": + out.ColorOne = string(in.String()) + case "ColorTwo": + out.ColorTwo = string(in.String()) + case "ColorThree": + out.ColorThree = string(in.String()) + case "DiscordID": + out.DiscordID = string(in.String()) + case "OverallGrade": + out.OverallGrade = string(in.String()) + case "OffenseGrade": + out.OffenseGrade = string(in.String()) + case "DefenseGrade": + out.DefenseGrade = string(in.String()) + case "SpecialTeamsGrade": + out.SpecialTeamsGrade = string(in.String()) + case "PenaltyMarks": + out.PenaltyMarks = uint8(in.Uint8()) + case "JerseyType": + out.JerseyType = uint8(in.Uint8()) + case "LastLogin": + if data := in.Raw(); in.Ok() { + in.AddError((out.LastLogin).UnmarshalJSON(data)) + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() } - { - const prefix string = ",\"ArchetypeTwo\":" - out.RawString(prefix) - out.String(string(in.ArchetypeTwo)) + in.Delim('}') + if isTopLevel { + in.Consumed() } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out *jwriter.Writer, in structs.NFLTeam) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"RelativeID\":" - out.RawString(prefix) - out.Uint(uint(in.RelativeID)) + const prefix string = ",\"ConferenceID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.ConferenceID)) } { - const prefix string = ",\"RelativeType\":" + const prefix string = ",\"Conference\":" out.RawString(prefix) - out.Uint(uint(in.RelativeType)) + out.String(string(in.Conference)) } { - const prefix string = ",\"Notes\":" + const prefix string = ",\"DivisionID\":" out.RawString(prefix) - out.String(string(in.Notes)) + out.Uint(uint(in.DivisionID)) } { - const prefix string = ",\"ProgramPref\":" + const prefix string = ",\"Division\":" out.RawString(prefix) - out.Uint8(uint8(in.ProgramPref)) + out.String(string(in.Division)) } { - const prefix string = ",\"ProfDevPref\":" + const prefix string = ",\"NFLOwnerID\":" out.RawString(prefix) - out.Uint8(uint8(in.ProfDevPref)) + out.Uint(uint(in.NFLOwnerID)) } { - const prefix string = ",\"TraditionsPref\":" + const prefix string = ",\"NFLOwnerName\":" out.RawString(prefix) - out.Uint8(uint8(in.TraditionsPref)) + out.String(string(in.NFLOwnerName)) } { - const prefix string = ",\"FacilitiesPref\":" + const prefix string = ",\"NFLCoachID\":" out.RawString(prefix) - out.Uint8(uint8(in.FacilitiesPref)) + out.Uint(uint(in.NFLCoachID)) } { - const prefix string = ",\"AtmospherePref\":" + const prefix string = ",\"NFLCoachName\":" out.RawString(prefix) - out.Uint8(uint8(in.AtmospherePref)) + out.String(string(in.NFLCoachName)) } { - const prefix string = ",\"AcademicsPref\":" + const prefix string = ",\"NFLGMID\":" out.RawString(prefix) - out.Uint8(uint8(in.AcademicsPref)) + out.Uint(uint(in.NFLGMID)) } { - const prefix string = ",\"ConferencePref\":" + const prefix string = ",\"NFLGMName\":" out.RawString(prefix) - out.Uint8(uint8(in.ConferencePref)) + out.String(string(in.NFLGMName)) } { - const prefix string = ",\"CoachPref\":" + const prefix string = ",\"NFLAssistantID\":" out.RawString(prefix) - out.Uint8(uint8(in.CoachPref)) + out.Uint(uint(in.NFLAssistantID)) } { - const prefix string = ",\"SeasonMomentumPref\":" + const prefix string = ",\"NFLAssistantName\":" out.RawString(prefix) - out.Uint8(uint8(in.SeasonMomentumPref)) + out.String(string(in.NFLAssistantName)) } { - const prefix string = ",\"CampusLifePref\":" + const prefix string = ",\"WaiverOrder\":" out.RawString(prefix) - out.Uint8(uint8(in.CampusLifePref)) + out.Uint(uint(in.WaiverOrder)) } { - const prefix string = ",\"ReligionPref\":" + const prefix string = ",\"UsedTagThisSeason\":" out.RawString(prefix) - out.Uint8(uint8(in.ReligionPref)) + out.Bool(bool(in.UsedTagThisSeason)) } { - const prefix string = ",\"ServiceAcademyPref\":" + const prefix string = ",\"Capsheet\":" out.RawString(prefix) - out.Uint8(uint8(in.ServiceAcademyPref)) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, in.Capsheet) } { - const prefix string = ",\"SmallTownPref\":" + const prefix string = ",\"Contracts\":" out.RawString(prefix) - out.Uint8(uint8(in.SmallTownPref)) + if in.Contracts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v60, v61 := range in.Contracts { + if v60 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v61) + } + out.RawByte(']') + } } { - const prefix string = ",\"BigCityPref\":" + const prefix string = ",\"DraftPicks\":" out.RawString(prefix) - out.Uint8(uint8(in.BigCityPref)) + if in.DraftPicks == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v62, v63 := range in.DraftPicks { + if v62 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v63) + } + out.RawByte(']') + } } { - const prefix string = ",\"MediaSpotlightPref\":" + const prefix string = ",\"TeamStats\":" out.RawString(prefix) - out.Uint8(uint8(in.MediaSpotlightPref)) + if in.TeamStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v64, v65 := range in.TeamStats { + if v64 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v65) + } + out.RawByte(']') + } } { - const prefix string = ",\"ID\":" + const prefix string = ",\"TeamSeasonStats\":" out.RawString(prefix) - out.Uint(uint(in.ID)) + if in.TeamSeasonStats == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v66, v67 := range in.TeamSeasonStats { + if v66 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v67) + } + out.RawByte(']') + } } { - const prefix string = ",\"CreatedAt\":" + const prefix string = ",\"TeamDepthChart\":" out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, in.TeamDepthChart) } { - const prefix string = ",\"UpdatedAt\":" + const prefix string = ",\"TeamGameplan\":" out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, in.TeamGameplan) } { - const prefix string = ",\"DeletedAt\":" + const prefix string = ",\"Standings\":" out.RawString(prefix) - if in.DeletedAt == nil { + if in.Standings == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in *jlexer.Lexer, out *structs.NFLExtensionOffer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "NFLPlayerID": - out.NFLPlayerID = uint(in.Uint()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "ContractLength": - out.ContractLength = int(in.Int()) - case "Y1BaseSalary": - out.Y1BaseSalary = float64(in.Float64()) - case "Y1Bonus": - out.Y1Bonus = float64(in.Float64()) - case "Y2BaseSalary": - out.Y2BaseSalary = float64(in.Float64()) - case "Y2Bonus": - out.Y2Bonus = float64(in.Float64()) - case "Y3BaseSalary": - out.Y3BaseSalary = float64(in.Float64()) - case "Y3Bonus": - out.Y3Bonus = float64(in.Float64()) - case "Y4BaseSalary": - out.Y4BaseSalary = float64(in.Float64()) - case "Y4Bonus": - out.Y4Bonus = float64(in.Float64()) - case "Y5BaseSalary": - out.Y5BaseSalary = float64(in.Float64()) - case "Y5Bonus": - out.Y5Bonus = float64(in.Float64()) - case "TotalBonus": - out.TotalBonus = float64(in.Float64()) - case "TotalSalary": - out.TotalSalary = float64(in.Float64()) - case "ContractValue": - out.ContractValue = float64(in.Float64()) - case "BonusPercentage": - out.BonusPercentage = float64(in.Float64()) - case "AAV": - out.AAV = float64(in.Float64()) - case "Rejections": - out.Rejections = int(in.Int()) - case "IsAccepted": - out.IsAccepted = bool(in.Bool()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsRejected": - out.IsRejected = bool(in.Bool()) - case "IsTag": - out.IsTag = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + out.RawByte('[') + for v68, v69 := range in.Standings { + if v68 > 0 { + out.RawByte(',') } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v69) } - default: - in.SkipRecursive() + out.RawByte(']') } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out *jwriter.Writer, in structs.NFLExtensionOffer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.NFLPlayerID)) } { - const prefix string = ",\"TeamID\":" + const prefix string = ",\"TeamName\":" out.RawString(prefix) - out.Uint(uint(in.TeamID)) + out.String(string(in.TeamName)) } { - const prefix string = ",\"SeasonID\":" + const prefix string = ",\"Mascot\":" out.RawString(prefix) - out.Uint(uint(in.SeasonID)) + out.String(string(in.Mascot)) } { - const prefix string = ",\"Team\":" + const prefix string = ",\"TeamAbbr\":" out.RawString(prefix) - out.String(string(in.Team)) + out.String(string(in.TeamAbbr)) } { - const prefix string = ",\"ContractLength\":" + const prefix string = ",\"Coach\":" out.RawString(prefix) - out.Int(int(in.ContractLength)) + out.String(string(in.Coach)) } { - const prefix string = ",\"Y1BaseSalary\":" + const prefix string = ",\"City\":" out.RawString(prefix) - out.Float64(float64(in.Y1BaseSalary)) + out.String(string(in.City)) } { - const prefix string = ",\"Y1Bonus\":" + const prefix string = ",\"State\":" out.RawString(prefix) - out.Float64(float64(in.Y1Bonus)) + out.String(string(in.State)) } { - const prefix string = ",\"Y2BaseSalary\":" + const prefix string = ",\"Country\":" out.RawString(prefix) - out.Float64(float64(in.Y2BaseSalary)) + out.String(string(in.Country)) } { - const prefix string = ",\"Y2Bonus\":" + const prefix string = ",\"StadiumID\":" out.RawString(prefix) - out.Float64(float64(in.Y2Bonus)) + out.Uint(uint(in.StadiumID)) } { - const prefix string = ",\"Y3BaseSalary\":" + const prefix string = ",\"Stadium\":" out.RawString(prefix) - out.Float64(float64(in.Y3BaseSalary)) + out.String(string(in.Stadium)) } { - const prefix string = ",\"Y3Bonus\":" + const prefix string = ",\"StadiumCapacity\":" out.RawString(prefix) - out.Float64(float64(in.Y3Bonus)) + out.Int(int(in.StadiumCapacity)) } { - const prefix string = ",\"Y4BaseSalary\":" + const prefix string = ",\"RecordAttendance\":" out.RawString(prefix) - out.Float64(float64(in.Y4BaseSalary)) + out.Int(int(in.RecordAttendance)) } { - const prefix string = ",\"Y4Bonus\":" + const prefix string = ",\"Enrollment\":" out.RawString(prefix) - out.Float64(float64(in.Y4Bonus)) + out.Int(int(in.Enrollment)) } { - const prefix string = ",\"Y5BaseSalary\":" + const prefix string = ",\"FirstPlayed\":" out.RawString(prefix) - out.Float64(float64(in.Y5BaseSalary)) + out.Int(int(in.FirstPlayed)) } { - const prefix string = ",\"Y5Bonus\":" + const prefix string = ",\"ColorOne\":" out.RawString(prefix) - out.Float64(float64(in.Y5Bonus)) + out.String(string(in.ColorOne)) } { - const prefix string = ",\"TotalBonus\":" + const prefix string = ",\"ColorTwo\":" out.RawString(prefix) - out.Float64(float64(in.TotalBonus)) + out.String(string(in.ColorTwo)) } { - const prefix string = ",\"TotalSalary\":" + const prefix string = ",\"ColorThree\":" out.RawString(prefix) - out.Float64(float64(in.TotalSalary)) + out.String(string(in.ColorThree)) } { - const prefix string = ",\"ContractValue\":" + const prefix string = ",\"DiscordID\":" out.RawString(prefix) - out.Float64(float64(in.ContractValue)) + out.String(string(in.DiscordID)) } { - const prefix string = ",\"BonusPercentage\":" + const prefix string = ",\"OverallGrade\":" out.RawString(prefix) - out.Float64(float64(in.BonusPercentage)) + out.String(string(in.OverallGrade)) } { - const prefix string = ",\"AAV\":" + const prefix string = ",\"OffenseGrade\":" out.RawString(prefix) - out.Float64(float64(in.AAV)) + out.String(string(in.OffenseGrade)) } { - const prefix string = ",\"Rejections\":" + const prefix string = ",\"DefenseGrade\":" out.RawString(prefix) - out.Int(int(in.Rejections)) + out.String(string(in.DefenseGrade)) } { - const prefix string = ",\"IsAccepted\":" + const prefix string = ",\"SpecialTeamsGrade\":" out.RawString(prefix) - out.Bool(bool(in.IsAccepted)) + out.String(string(in.SpecialTeamsGrade)) } { - const prefix string = ",\"IsActive\":" + const prefix string = ",\"PenaltyMarks\":" out.RawString(prefix) - out.Bool(bool(in.IsActive)) + out.Uint8(uint8(in.PenaltyMarks)) } { - const prefix string = ",\"IsRejected\":" + const prefix string = ",\"JerseyType\":" out.RawString(prefix) - out.Bool(bool(in.IsRejected)) + out.Uint8(uint8(in.JerseyType)) } { - const prefix string = ",\"IsTag\":" + const prefix string = ",\"LastLogin\":" out.RawString(prefix) - out.Bool(bool(in.IsTag)) + out.Raw((in.LastLogin).MarshalJSON()) } { const prefix string = ",\"ID\":" @@ -6580,84 +7030,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in *jlexer.Lexer, out *structs.NFLWaiverOffer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "ID": - out.ID = uint(in.Uint()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "WaiverOrder": - out.WaiverOrder = uint(in.Uint()) - case "NFLPlayerID": - out.NFLPlayerID = uint(in.Uint()) - case "IsActive": - out.IsActive = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out *jwriter.Writer, in structs.NFLWaiverOffer) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"ID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"WaiverOrder\":" - out.RawString(prefix) - out.Uint(uint(in.WaiverOrder)) - } - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix) - out.Uint(uint(in.NFLPlayerID)) - } - { - const prefix string = ",\"IsActive\":" - out.RawString(prefix) - out.Bool(bool(in.IsActive)) - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in *jlexer.Lexer, out *structs.FreeAgencyOffer) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in *jlexer.Lexer, out *structs.NFLStandings) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6676,50 +7049,70 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in *jlexer.Lexer, o continue } switch key { - case "NFLPlayerID": - out.NFLPlayerID = uint(in.Uint()) case "TeamID": out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "ContractLength": - out.ContractLength = int(in.Int()) - case "Y1BaseSalary": - out.Y1BaseSalary = float64(in.Float64()) - case "Y1Bonus": - out.Y1Bonus = float64(in.Float64()) - case "Y2BaseSalary": - out.Y2BaseSalary = float64(in.Float64()) - case "Y2Bonus": - out.Y2Bonus = float64(in.Float64()) - case "Y3BaseSalary": - out.Y3BaseSalary = float64(in.Float64()) - case "Y3Bonus": - out.Y3Bonus = float64(in.Float64()) - case "Y4BaseSalary": - out.Y4BaseSalary = float64(in.Float64()) - case "Y4Bonus": - out.Y4Bonus = float64(in.Float64()) - case "Y5BaseSalary": - out.Y5BaseSalary = float64(in.Float64()) - case "Y5Bonus": - out.Y5Bonus = float64(in.Float64()) - case "TotalBonus": - out.TotalBonus = float64(in.Float64()) - case "TotalSalary": - out.TotalSalary = float64(in.Float64()) - case "ContractValue": - out.ContractValue = float64(in.Float64()) - case "BonusPercentage": - out.BonusPercentage = float64(in.Float64()) - case "AAV": - out.AAV = float64(in.Float64()) - case "Syncs": - out.Syncs = uint8(in.Uint8()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsRejected": - out.IsRejected = bool(in.Bool()) + case "TeamName": + out.TeamName = string(in.String()) + case "Mascot": + out.Mascot = string(in.String()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Season": + out.Season = uint(in.Uint()) + case "LeagueID": + out.LeagueID = uint(in.Uint()) + case "LeagueName": + out.LeagueName = string(in.String()) + case "ConferenceID": + out.ConferenceID = uint(in.Uint()) + case "ConferenceName": + out.ConferenceName = string(in.String()) + case "TotalTies": + out.TotalTies = uint(in.Uint()) + case "ConferenceTies": + out.ConferenceTies = uint(in.Uint()) + case "DivisionID": + out.DivisionID = uint(in.Uint()) + case "DivisionName": + out.DivisionName = string(in.String()) + case "DivisionWins": + out.DivisionWins = uint(in.Uint()) + case "DivisionLosses": + out.DivisionLosses = uint(in.Uint()) + case "DivisionTies": + out.DivisionTies = uint(in.Uint()) + case "PostSeasonStatus": + out.PostSeasonStatus = string(in.String()) + case "TotalWins": + out.TotalWins = int(in.Int()) + case "TotalLosses": + out.TotalLosses = int(in.Int()) + case "ConferenceWins": + out.ConferenceWins = int(in.Int()) + case "ConferenceLosses": + out.ConferenceLosses = int(in.Int()) + case "RankedWins": + out.RankedWins = int(in.Int()) + case "RankedLosses": + out.RankedLosses = int(in.Int()) + case "PointsFor": + out.PointsFor = int(in.Int()) + case "PointsAgainst": + out.PointsAgainst = int(in.Int()) + case "Streak": + out.Streak = int(in.Int()) + case "HomeWins": + out.HomeWins = int(in.Int()) + case "AwayWins": + out.AwayWins = int(in.Int()) + case "Coach": + out.Coach = string(in.String()) + case "TeamAbbr": + out.TeamAbbr = string(in.String()) + case "TotalWinPercentage": + out.TotalWinPercentage = float32(in.Float32()) + case "ConfWinPercentage": + out.ConfWinPercentage = float32(in.Float32()) case "ID": out.ID = uint(in.Uint()) case "CreatedAt": @@ -6747,314 +7140,494 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in *jlexer.Lexer, o } in.WantComma() } - in.Delim('}') - if isTopLevel { - in.Consumed() + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out *jwriter.Writer, in structs.NFLStandings) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.TeamID)) + } + { + const prefix string = ",\"TeamName\":" + out.RawString(prefix) + out.String(string(in.TeamName)) + } + { + const prefix string = ",\"Mascot\":" + out.RawString(prefix) + out.String(string(in.Mascot)) + } + { + const prefix string = ",\"SeasonID\":" + out.RawString(prefix) + out.Uint(uint(in.SeasonID)) + } + { + const prefix string = ",\"Season\":" + out.RawString(prefix) + out.Uint(uint(in.Season)) } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out *jwriter.Writer, in structs.FreeAgencyOffer) { - out.RawByte('{') - first := true - _ = first { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.NFLPlayerID)) + const prefix string = ",\"LeagueID\":" + out.RawString(prefix) + out.Uint(uint(in.LeagueID)) } { - const prefix string = ",\"TeamID\":" + const prefix string = ",\"LeagueName\":" out.RawString(prefix) - out.Uint(uint(in.TeamID)) + out.String(string(in.LeagueName)) } { - const prefix string = ",\"Team\":" + const prefix string = ",\"ConferenceID\":" out.RawString(prefix) - out.String(string(in.Team)) + out.Uint(uint(in.ConferenceID)) } { - const prefix string = ",\"ContractLength\":" + const prefix string = ",\"ConferenceName\":" out.RawString(prefix) - out.Int(int(in.ContractLength)) + out.String(string(in.ConferenceName)) } { - const prefix string = ",\"Y1BaseSalary\":" + const prefix string = ",\"TotalTies\":" out.RawString(prefix) - out.Float64(float64(in.Y1BaseSalary)) + out.Uint(uint(in.TotalTies)) } { - const prefix string = ",\"Y1Bonus\":" + const prefix string = ",\"ConferenceTies\":" out.RawString(prefix) - out.Float64(float64(in.Y1Bonus)) + out.Uint(uint(in.ConferenceTies)) } { - const prefix string = ",\"Y2BaseSalary\":" + const prefix string = ",\"DivisionID\":" out.RawString(prefix) - out.Float64(float64(in.Y2BaseSalary)) + out.Uint(uint(in.DivisionID)) } { - const prefix string = ",\"Y2Bonus\":" + const prefix string = ",\"DivisionName\":" out.RawString(prefix) - out.Float64(float64(in.Y2Bonus)) + out.String(string(in.DivisionName)) } { - const prefix string = ",\"Y3BaseSalary\":" + const prefix string = ",\"DivisionWins\":" out.RawString(prefix) - out.Float64(float64(in.Y3BaseSalary)) + out.Uint(uint(in.DivisionWins)) } { - const prefix string = ",\"Y3Bonus\":" + const prefix string = ",\"DivisionLosses\":" out.RawString(prefix) - out.Float64(float64(in.Y3Bonus)) + out.Uint(uint(in.DivisionLosses)) } { - const prefix string = ",\"Y4BaseSalary\":" + const prefix string = ",\"DivisionTies\":" out.RawString(prefix) - out.Float64(float64(in.Y4BaseSalary)) + out.Uint(uint(in.DivisionTies)) } { - const prefix string = ",\"Y4Bonus\":" + const prefix string = ",\"PostSeasonStatus\":" out.RawString(prefix) - out.Float64(float64(in.Y4Bonus)) + out.String(string(in.PostSeasonStatus)) } { - const prefix string = ",\"Y5BaseSalary\":" + const prefix string = ",\"TotalWins\":" out.RawString(prefix) - out.Float64(float64(in.Y5BaseSalary)) + out.Int(int(in.TotalWins)) } { - const prefix string = ",\"Y5Bonus\":" + const prefix string = ",\"TotalLosses\":" out.RawString(prefix) - out.Float64(float64(in.Y5Bonus)) + out.Int(int(in.TotalLosses)) } { - const prefix string = ",\"TotalBonus\":" + const prefix string = ",\"ConferenceWins\":" out.RawString(prefix) - out.Float64(float64(in.TotalBonus)) + out.Int(int(in.ConferenceWins)) } { - const prefix string = ",\"TotalSalary\":" + const prefix string = ",\"ConferenceLosses\":" out.RawString(prefix) - out.Float64(float64(in.TotalSalary)) + out.Int(int(in.ConferenceLosses)) } { - const prefix string = ",\"ContractValue\":" + const prefix string = ",\"RankedWins\":" out.RawString(prefix) - out.Float64(float64(in.ContractValue)) + out.Int(int(in.RankedWins)) } { - const prefix string = ",\"BonusPercentage\":" + const prefix string = ",\"RankedLosses\":" out.RawString(prefix) - out.Float64(float64(in.BonusPercentage)) + out.Int(int(in.RankedLosses)) } { - const prefix string = ",\"AAV\":" + const prefix string = ",\"PointsFor\":" out.RawString(prefix) - out.Float64(float64(in.AAV)) + out.Int(int(in.PointsFor)) } { - const prefix string = ",\"Syncs\":" + const prefix string = ",\"PointsAgainst\":" out.RawString(prefix) - out.Uint8(uint8(in.Syncs)) + out.Int(int(in.PointsAgainst)) } { - const prefix string = ",\"IsActive\":" + const prefix string = ",\"Streak\":" out.RawString(prefix) - out.Bool(bool(in.IsActive)) + out.Int(int(in.Streak)) } { - const prefix string = ",\"IsRejected\":" + const prefix string = ",\"HomeWins\":" out.RawString(prefix) - out.Bool(bool(in.IsRejected)) + out.Int(int(in.HomeWins)) } { - const prefix string = ",\"ID\":" + const prefix string = ",\"AwayWins\":" out.RawString(prefix) - out.Uint(uint(in.ID)) + out.Int(int(in.AwayWins)) } { - const prefix string = ",\"CreatedAt\":" + const prefix string = ",\"Coach\":" out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) + out.String(string(in.Coach)) } { - const prefix string = ",\"UpdatedAt\":" + const prefix string = ",\"TeamAbbr\":" out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) + out.String(string(in.TeamAbbr)) } { - const prefix string = ",\"DeletedAt\":" + const prefix string = ",\"TotalWinPercentage\":" out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } + out.Float32(float32(in.TotalWinPercentage)) } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in *jlexer.Lexer, out *structs.NFLPlayerSeasonStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return + { + const prefix string = ",\"ConfWinPercentage\":" + out.RawString(prefix) + out.Float32(float32(in.ConfWinPercentage)) } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "NFLPlayerID": - out.NFLPlayerID = uint(in.Uint()) - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Year": - out.Year = uint(in.Uint()) - case "GamesPlayed": - out.GamesPlayed = int(in.Int()) - case "QBRating": - out.QBRating = float64(in.Float64()) - case "Tackles": - out.Tackles = float64(in.Float64()) - case "RushingAvg": - out.RushingAvg = float64(in.Float64()) - case "PassingAvg": - out.PassingAvg = float64(in.Float64()) - case "ReceivingAvg": - out.ReceivingAvg = float64(in.Float64()) - case "Completion": - out.Completion = float64(in.Float64()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassAttempts": - out.PassAttempts = int(in.Int()) - case "PassCompletions": - out.PassCompletions = int(in.Int()) - case "PassingTDs": - out.PassingTDs = int(in.Int()) - case "Interceptions": - out.Interceptions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "Sacks": - out.Sacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingTDs": - out.RushingTDs = int(in.Int()) - case "Fumbles": - out.Fumbles = int(in.Int()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "Targets": - out.Targets = int(in.Int()) - case "Catches": - out.Catches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "ReceivingTDs": - out.ReceivingTDs = int(in.Int()) - case "LongestReception": - out.LongestReception = int(in.Int()) - case "SoloTackles": - out.SoloTackles = float64(in.Float64()) - case "AssistedTackles": - out.AssistedTackles = float64(in.Float64()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "SacksMade": - out.SacksMade = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "RecoveredFumbles": - out.RecoveredFumbles = int(in.Int()) - case "PassDeflections": - out.PassDeflections = int(in.Int()) - case "InterceptionsCaught": - out.InterceptionsCaught = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "FGMade": - out.FGMade = int(in.Int()) - case "FGAttempts": - out.FGAttempts = int(in.Int()) - case "LongestFG": - out.LongestFG = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "KickoffTouchbacks": - out.KickoffTouchbacks = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "GrossPuntDistance": - out.GrossPuntDistance = int(in.Int()) - case "NetPuntDistance": - out.NetPuntDistance = int(in.Int()) - case "PuntTouchbacks": - out.PuntTouchbacks = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "KickReturns": - out.KickReturns = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "PuntReturns": - out.PuntReturns = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "STSoloTackles": - out.STSoloTackles = float64(in.Float64()) - case "STAssistedTackles": - out.STAssistedTackles = float64(in.Float64()) - case "PuntsBlocked": - out.PuntsBlocked = int(in.Int()) - case "FGBlocked": - out.FGBlocked = int(in.Int()) - case "Snaps": - out.Snaps = int(in.Int()) - case "Pancakes": - out.Pancakes = int(in.Int()) - case "SacksAllowed": - out.SacksAllowed = int(in.Int()) - case "PlayedGame": - out.PlayedGame = int(in.Int()) - case "StartedGame": - out.StartedGame = int(in.Int()) - case "WasInjured": - out.WasInjured = bool(in.Bool()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) + { + const prefix string = ",\"ID\":" + out.RawString(prefix) + out.Uint(uint(in.ID)) + } + { + const prefix string = ",\"CreatedAt\":" + out.RawString(prefix) + out.Raw((in.CreatedAt).MarshalJSON()) + } + { + const prefix string = ",\"UpdatedAt\":" + out.RawString(prefix) + out.Raw((in.UpdatedAt).MarshalJSON()) + } + { + const prefix string = ",\"DeletedAt\":" + out.RawString(prefix) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in *jlexer.Lexer, out *structs.NFLGameplan) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { case "TeamID": out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "GameType": - out.GameType = uint8(in.Uint8()) + case "OffensiveScheme": + out.OffensiveScheme = string(in.String()) + case "OffRunToPassRatio": + out.OffRunToPassRatio = int(in.Int()) + case "DefensiveScheme": + out.DefensiveScheme = string(in.String()) + case "BlitzSafeties": + out.BlitzSafeties = bool(in.Bool()) + case "BlitzCorners": + out.BlitzCorners = bool(in.Bool()) + case "LinebackerCoverage": + out.LinebackerCoverage = string(in.String()) + case "CornersCoverage": + out.CornersCoverage = string(in.String()) + case "SafetiesCoverage": + out.SafetiesCoverage = string(in.String()) + case "DiveFocus": + out.DiveFocus = int(in.Int()) + case "PitchFocus": + out.PitchFocus = int(in.Int()) + case "PrimaryHB": + out.PrimaryHB = int(in.Int()) + case "MaximumFGDistance": + out.MaximumFGDistance = int(in.Int()) + case "GoFor4AndShort": + out.GoFor4AndShort = int(in.Int()) + case "GoFor4AndLong": + out.GoFor4AndLong = int(in.Int()) + case "HasSchemePenalty": + out.HasSchemePenalty = bool(in.Bool()) + case "OffenseSchemePenalty": + out.OffenseSchemePenalty = uint(in.Uint()) + case "DefenseSchemePenalty": + out.DefenseSchemePenalty = uint(in.Uint()) + case "DefaultOffense": + out.DefaultOffense = bool(in.Bool()) + case "DefaultDefense": + out.DefaultDefense = bool(in.Bool()) + case "PreviousWeekBye": + out.PreviousWeekBye = bool(in.Bool()) + case "FocusPlays": + out.FocusPlays = string(in.String()) + case "DoubleTeam": + out.DoubleTeam = int(in.Int()) + case "DefFormation1": + out.DefFormation1 = string(in.String()) + case "DefFormation1RunToPass": + out.DefFormation1RunToPass = int(in.Int()) + case "DefFormation1BlitzWeight": + out.DefFormation1BlitzWeight = int(in.Int()) + case "DefFormation1BlitzAggression": + out.DefFormation1BlitzAggression = string(in.String()) + case "DefFormation2": + out.DefFormation2 = string(in.String()) + case "DefFormation2RunToPass": + out.DefFormation2RunToPass = int(in.Int()) + case "DefFormation2BlitzWeight": + out.DefFormation2BlitzWeight = int(in.Int()) + case "DefFormation2BlitzAggression": + out.DefFormation2BlitzAggression = string(in.String()) + case "DefFormation3": + out.DefFormation3 = string(in.String()) + case "DefFormation3RunToPass": + out.DefFormation3RunToPass = int(in.Int()) + case "DefFormation3BlitzWeight": + out.DefFormation3BlitzWeight = int(in.Int()) + case "DefFormation3BlitzAggression": + out.DefFormation3BlitzAggression = string(in.String()) + case "DefFormation4": + out.DefFormation4 = string(in.String()) + case "DefFormation4RunToPass": + out.DefFormation4RunToPass = int(in.Int()) + case "DefFormation4BlitzWeight": + out.DefFormation4BlitzWeight = int(in.Int()) + case "DefFormation4BlitzAggression": + out.DefFormation4BlitzAggression = string(in.String()) + case "DefFormation5": + out.DefFormation5 = string(in.String()) + case "DefFormation5RunToPass": + out.DefFormation5RunToPass = int(in.Int()) + case "DefFormation5BlitzWeight": + out.DefFormation5BlitzWeight = int(in.Int()) + case "DefFormation5BlitzAggression": + out.DefFormation5BlitzAggression = string(in.String()) + case "OffFormation1Name": + out.OffFormation1Name = string(in.String()) + case "OffForm1Weight": + out.OffForm1Weight = int(in.Int()) + case "OffForm1TraditionalRun": + out.OffForm1TraditionalRun = int(in.Int()) + case "OffForm1OptionRun": + out.OffForm1OptionRun = int(in.Int()) + case "OffForm1Pass": + out.OffForm1Pass = int(in.Int()) + case "OffForm1RPO": + out.OffForm1RPO = int(in.Int()) + case "OffFormation2Name": + out.OffFormation2Name = string(in.String()) + case "OffForm2Weight": + out.OffForm2Weight = int(in.Int()) + case "OffForm2TraditionalRun": + out.OffForm2TraditionalRun = int(in.Int()) + case "OffForm2OptionRun": + out.OffForm2OptionRun = int(in.Int()) + case "OffForm2Pass": + out.OffForm2Pass = int(in.Int()) + case "OffForm2RPO": + out.OffForm2RPO = int(in.Int()) + case "OffFormation3Name": + out.OffFormation3Name = string(in.String()) + case "OffForm3Weight": + out.OffForm3Weight = int(in.Int()) + case "OffForm3TraditionalRun": + out.OffForm3TraditionalRun = int(in.Int()) + case "OffForm3OptionRun": + out.OffForm3OptionRun = int(in.Int()) + case "OffForm3Pass": + out.OffForm3Pass = int(in.Int()) + case "OffForm3RPO": + out.OffForm3RPO = int(in.Int()) + case "OffFormation4Name": + out.OffFormation4Name = string(in.String()) + case "OffForm4Weight": + out.OffForm4Weight = int(in.Int()) + case "OffForm4TraditionalRun": + out.OffForm4TraditionalRun = int(in.Int()) + case "OffForm4OptionRun": + out.OffForm4OptionRun = int(in.Int()) + case "OffForm4Pass": + out.OffForm4Pass = int(in.Int()) + case "OffForm4RPO": + out.OffForm4RPO = int(in.Int()) + case "OffFormation5Name": + out.OffFormation5Name = string(in.String()) + case "OffForm5Weight": + out.OffForm5Weight = int(in.Int()) + case "OffForm5TraditionalRun": + out.OffForm5TraditionalRun = int(in.Int()) + case "OffForm5OptionRun": + out.OffForm5OptionRun = int(in.Int()) + case "OffForm5Pass": + out.OffForm5Pass = int(in.Int()) + case "OffForm5RPO": + out.OffForm5RPO = int(in.Int()) + case "RunnerDistributionQB": + out.RunnerDistributionQB = int(in.Int()) + case "RunnerDistributionRB1": + out.RunnerDistributionRB1 = int(in.Int()) + case "RunnerDistributionRB2": + out.RunnerDistributionRB2 = int(in.Int()) + case "RunnerDistributionRB3": + out.RunnerDistributionRB3 = int(in.Int()) + case "RunnerDistributionFB1": + out.RunnerDistributionFB1 = int(in.Int()) + case "RunnerDistributionFB2": + out.RunnerDistributionFB2 = int(in.Int()) + case "RunnerDistributionWR": + out.RunnerDistributionWR = int(in.Int()) + case "RunnerDistributionWRPosition": + out.RunnerDistributionWRPosition = string(in.String()) + case "RunnerDistributionWRID": + out.RunnerDistributionWRID = uint(in.Uint()) + case "RunOutsideLeft": + out.RunOutsideLeft = int(in.Int()) + case "RunOutsideRight": + out.RunOutsideRight = int(in.Int()) + case "RunInsideLeft": + out.RunInsideLeft = int(in.Int()) + case "RunInsideRight": + out.RunInsideRight = int(in.Int()) + case "RunPowerLeft": + out.RunPowerLeft = int(in.Int()) + case "RunPowerRight": + out.RunPowerRight = int(in.Int()) + case "RunDrawLeft": + out.RunDrawLeft = int(in.Int()) + case "RunDrawRight": + out.RunDrawRight = int(in.Int()) + case "ReadOptionLeft": + out.ReadOptionLeft = int(in.Int()) + case "ReadOptionRight": + out.ReadOptionRight = int(in.Int()) + case "SpeedOptionLeft": + out.SpeedOptionLeft = int(in.Int()) + case "SpeedOptionRight": + out.SpeedOptionRight = int(in.Int()) + case "InvertedOptionLeft": + out.InvertedOptionLeft = int(in.Int()) + case "InvertedOptionRight": + out.InvertedOptionRight = int(in.Int()) + case "TripleOptionLeft": + out.TripleOptionLeft = int(in.Int()) + case "TripleOptionRight": + out.TripleOptionRight = int(in.Int()) + case "PassQuick": + out.PassQuick = int(in.Int()) + case "PassShort": + out.PassShort = int(in.Int()) + case "PassMedium": + out.PassMedium = int(in.Int()) + case "PassLong": + out.PassLong = int(in.Int()) + case "PassDeep": + out.PassDeep = int(in.Int()) + case "PassScreen": + out.PassScreen = int(in.Int()) + case "PassPAShort": + out.PassPAShort = int(in.Int()) + case "PassPAMedium": + out.PassPAMedium = int(in.Int()) + case "PassPALong": + out.PassPALong = int(in.Int()) + case "PassPADeep": + out.PassPADeep = int(in.Int()) + case "LeftVsRight": + out.LeftVsRight = int(in.Int()) + case "ChoiceOutside": + out.ChoiceOutside = int(in.Int()) + case "ChoiceInside": + out.ChoiceInside = int(in.Int()) + case "ChoicePower": + out.ChoicePower = int(in.Int()) + case "PeekOutside": + out.PeekOutside = int(in.Int()) + case "PeekInside": + out.PeekInside = int(in.Int()) + case "PeekPower": + out.PeekPower = int(in.Int()) + case "TargetingWR1": + out.TargetingWR1 = int(in.Int()) + case "TargetDepthWR1": + out.TargetDepthWR1 = string(in.String()) + case "TargetingWR2": + out.TargetingWR2 = int(in.Int()) + case "TargetDepthWR2": + out.TargetDepthWR2 = string(in.String()) + case "TargetingWR3": + out.TargetingWR3 = int(in.Int()) + case "TargetDepthWR3": + out.TargetDepthWR3 = string(in.String()) + case "TargetingWR4": + out.TargetingWR4 = int(in.Int()) + case "TargetDepthWR4": + out.TargetDepthWR4 = string(in.String()) + case "TargetingWR5": + out.TargetingWR5 = int(in.Int()) + case "TargetDepthWR5": + out.TargetDepthWR5 = string(in.String()) + case "TargetingTE1": + out.TargetingTE1 = int(in.Int()) + case "TargetDepthTE1": + out.TargetDepthTE1 = string(in.String()) + case "TargetingTE2": + out.TargetingTE2 = int(in.Int()) + case "TargetDepthTE2": + out.TargetDepthTE2 = string(in.String()) + case "TargetingTE3": + out.TargetingTE3 = int(in.Int()) + case "TargetDepthTE3": + out.TargetDepthTE3 = string(in.String()) + case "TargetingRB1": + out.TargetingRB1 = int(in.Int()) + case "TargetDepthRB1": + out.TargetDepthRB1 = string(in.String()) + case "TargetingRB2": + out.TargetingRB2 = int(in.Int()) + case "TargetDepthRB2": + out.TargetDepthRB2 = string(in.String()) + case "TargetingFB1": + out.TargetingFB1 = int(in.Int()) + case "TargetDepthFB1": + out.TargetDepthFB1 = string(in.String()) case "ID": out.ID = uint(in.Uint()) case "CreatedAt": @@ -7087,933 +7660,958 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out *jwriter.Writer, in structs.NFLPlayerSeasonStats) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out *jwriter.Writer, in structs.NFLGameplan) { out.RawByte('{') first := true _ = first { - const prefix string = ",\"NFLPlayerID\":" + const prefix string = ",\"TeamID\":" out.RawString(prefix[1:]) - out.Uint(uint(in.NFLPlayerID)) - } - { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix) - out.Uint(uint(in.SeasonID)) - } - { - const prefix string = ",\"Year\":" - out.RawString(prefix) - out.Uint(uint(in.Year)) - } - { - const prefix string = ",\"GamesPlayed\":" - out.RawString(prefix) - out.Int(int(in.GamesPlayed)) - } - { - const prefix string = ",\"QBRating\":" - out.RawString(prefix) - out.Float64(float64(in.QBRating)) - } - { - const prefix string = ",\"Tackles\":" - out.RawString(prefix) - out.Float64(float64(in.Tackles)) - } - { - const prefix string = ",\"RushingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.RushingAvg)) - } - { - const prefix string = ",\"PassingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.PassingAvg)) - } - { - const prefix string = ",\"ReceivingAvg\":" - out.RawString(prefix) - out.Float64(float64(in.ReceivingAvg)) - } - { - const prefix string = ",\"Completion\":" - out.RawString(prefix) - out.Float64(float64(in.Completion)) - } - { - const prefix string = ",\"PassingYards\":" - out.RawString(prefix) - out.Int(int(in.PassingYards)) - } - { - const prefix string = ",\"PassAttempts\":" - out.RawString(prefix) - out.Int(int(in.PassAttempts)) - } - { - const prefix string = ",\"PassCompletions\":" - out.RawString(prefix) - out.Int(int(in.PassCompletions)) - } - { - const prefix string = ",\"PassingTDs\":" - out.RawString(prefix) - out.Int(int(in.PassingTDs)) - } - { - const prefix string = ",\"Interceptions\":" - out.RawString(prefix) - out.Int(int(in.Interceptions)) + out.Uint(uint(in.TeamID)) } { - const prefix string = ",\"LongestPass\":" + const prefix string = ",\"OffensiveScheme\":" out.RawString(prefix) - out.Int(int(in.LongestPass)) + out.String(string(in.OffensiveScheme)) } { - const prefix string = ",\"Sacks\":" + const prefix string = ",\"OffRunToPassRatio\":" out.RawString(prefix) - out.Int(int(in.Sacks)) + out.Int(int(in.OffRunToPassRatio)) } { - const prefix string = ",\"RushAttempts\":" + const prefix string = ",\"DefensiveScheme\":" out.RawString(prefix) - out.Int(int(in.RushAttempts)) + out.String(string(in.DefensiveScheme)) } { - const prefix string = ",\"RushingYards\":" + const prefix string = ",\"BlitzSafeties\":" out.RawString(prefix) - out.Int(int(in.RushingYards)) + out.Bool(bool(in.BlitzSafeties)) } { - const prefix string = ",\"RushingTDs\":" + const prefix string = ",\"BlitzCorners\":" out.RawString(prefix) - out.Int(int(in.RushingTDs)) + out.Bool(bool(in.BlitzCorners)) } { - const prefix string = ",\"Fumbles\":" + const prefix string = ",\"LinebackerCoverage\":" out.RawString(prefix) - out.Int(int(in.Fumbles)) + out.String(string(in.LinebackerCoverage)) } { - const prefix string = ",\"LongestRush\":" + const prefix string = ",\"CornersCoverage\":" out.RawString(prefix) - out.Int(int(in.LongestRush)) + out.String(string(in.CornersCoverage)) } { - const prefix string = ",\"Targets\":" + const prefix string = ",\"SafetiesCoverage\":" out.RawString(prefix) - out.Int(int(in.Targets)) + out.String(string(in.SafetiesCoverage)) } { - const prefix string = ",\"Catches\":" + const prefix string = ",\"DiveFocus\":" out.RawString(prefix) - out.Int(int(in.Catches)) + out.Int(int(in.DiveFocus)) } { - const prefix string = ",\"ReceivingYards\":" + const prefix string = ",\"PitchFocus\":" out.RawString(prefix) - out.Int(int(in.ReceivingYards)) + out.Int(int(in.PitchFocus)) } { - const prefix string = ",\"ReceivingTDs\":" + const prefix string = ",\"PrimaryHB\":" out.RawString(prefix) - out.Int(int(in.ReceivingTDs)) + out.Int(int(in.PrimaryHB)) } { - const prefix string = ",\"LongestReception\":" + const prefix string = ",\"MaximumFGDistance\":" out.RawString(prefix) - out.Int(int(in.LongestReception)) + out.Int(int(in.MaximumFGDistance)) } { - const prefix string = ",\"SoloTackles\":" + const prefix string = ",\"GoFor4AndShort\":" out.RawString(prefix) - out.Float64(float64(in.SoloTackles)) + out.Int(int(in.GoFor4AndShort)) } { - const prefix string = ",\"AssistedTackles\":" + const prefix string = ",\"GoFor4AndLong\":" out.RawString(prefix) - out.Float64(float64(in.AssistedTackles)) + out.Int(int(in.GoFor4AndLong)) } { - const prefix string = ",\"TacklesForLoss\":" + const prefix string = ",\"HasSchemePenalty\":" out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) + out.Bool(bool(in.HasSchemePenalty)) } { - const prefix string = ",\"SacksMade\":" + const prefix string = ",\"OffenseSchemePenalty\":" out.RawString(prefix) - out.Float64(float64(in.SacksMade)) + out.Uint(uint(in.OffenseSchemePenalty)) } { - const prefix string = ",\"ForcedFumbles\":" + const prefix string = ",\"DefenseSchemePenalty\":" out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) + out.Uint(uint(in.DefenseSchemePenalty)) } { - const prefix string = ",\"RecoveredFumbles\":" + const prefix string = ",\"DefaultOffense\":" out.RawString(prefix) - out.Int(int(in.RecoveredFumbles)) + out.Bool(bool(in.DefaultOffense)) } { - const prefix string = ",\"PassDeflections\":" + const prefix string = ",\"DefaultDefense\":" out.RawString(prefix) - out.Int(int(in.PassDeflections)) + out.Bool(bool(in.DefaultDefense)) } { - const prefix string = ",\"InterceptionsCaught\":" + const prefix string = ",\"PreviousWeekBye\":" out.RawString(prefix) - out.Int(int(in.InterceptionsCaught)) + out.Bool(bool(in.PreviousWeekBye)) } { - const prefix string = ",\"Safeties\":" + const prefix string = ",\"FocusPlays\":" out.RawString(prefix) - out.Int(int(in.Safeties)) + out.String(string(in.FocusPlays)) } { - const prefix string = ",\"DefensiveTDs\":" + const prefix string = ",\"DoubleTeam\":" out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) + out.Int(int(in.DoubleTeam)) } { - const prefix string = ",\"FGMade\":" + const prefix string = ",\"DefFormation1\":" out.RawString(prefix) - out.Int(int(in.FGMade)) + out.String(string(in.DefFormation1)) } { - const prefix string = ",\"FGAttempts\":" + const prefix string = ",\"DefFormation1RunToPass\":" out.RawString(prefix) - out.Int(int(in.FGAttempts)) + out.Int(int(in.DefFormation1RunToPass)) } { - const prefix string = ",\"LongestFG\":" + const prefix string = ",\"DefFormation1BlitzWeight\":" out.RawString(prefix) - out.Int(int(in.LongestFG)) + out.Int(int(in.DefFormation1BlitzWeight)) } { - const prefix string = ",\"ExtraPointsMade\":" + const prefix string = ",\"DefFormation1BlitzAggression\":" out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) + out.String(string(in.DefFormation1BlitzAggression)) } { - const prefix string = ",\"ExtraPointsAttempted\":" + const prefix string = ",\"DefFormation2\":" out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) + out.String(string(in.DefFormation2)) } { - const prefix string = ",\"KickoffTouchbacks\":" + const prefix string = ",\"DefFormation2RunToPass\":" out.RawString(prefix) - out.Int(int(in.KickoffTouchbacks)) + out.Int(int(in.DefFormation2RunToPass)) } { - const prefix string = ",\"Punts\":" + const prefix string = ",\"DefFormation2BlitzWeight\":" out.RawString(prefix) - out.Int(int(in.Punts)) + out.Int(int(in.DefFormation2BlitzWeight)) } { - const prefix string = ",\"GrossPuntDistance\":" + const prefix string = ",\"DefFormation2BlitzAggression\":" out.RawString(prefix) - out.Int(int(in.GrossPuntDistance)) + out.String(string(in.DefFormation2BlitzAggression)) } { - const prefix string = ",\"NetPuntDistance\":" + const prefix string = ",\"DefFormation3\":" out.RawString(prefix) - out.Int(int(in.NetPuntDistance)) + out.String(string(in.DefFormation3)) } { - const prefix string = ",\"PuntTouchbacks\":" + const prefix string = ",\"DefFormation3RunToPass\":" out.RawString(prefix) - out.Int(int(in.PuntTouchbacks)) + out.Int(int(in.DefFormation3RunToPass)) } { - const prefix string = ",\"PuntsInside20\":" + const prefix string = ",\"DefFormation3BlitzWeight\":" out.RawString(prefix) - out.Int(int(in.PuntsInside20)) + out.Int(int(in.DefFormation3BlitzWeight)) } { - const prefix string = ",\"KickReturns\":" + const prefix string = ",\"DefFormation3BlitzAggression\":" out.RawString(prefix) - out.Int(int(in.KickReturns)) + out.String(string(in.DefFormation3BlitzAggression)) } { - const prefix string = ",\"KickReturnTDs\":" + const prefix string = ",\"DefFormation4\":" out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) + out.String(string(in.DefFormation4)) } { - const prefix string = ",\"KickReturnYards\":" + const prefix string = ",\"DefFormation4RunToPass\":" out.RawString(prefix) - out.Int(int(in.KickReturnYards)) + out.Int(int(in.DefFormation4RunToPass)) } { - const prefix string = ",\"PuntReturns\":" + const prefix string = ",\"DefFormation4BlitzWeight\":" out.RawString(prefix) - out.Int(int(in.PuntReturns)) + out.Int(int(in.DefFormation4BlitzWeight)) } { - const prefix string = ",\"PuntReturnTDs\":" + const prefix string = ",\"DefFormation4BlitzAggression\":" out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) + out.String(string(in.DefFormation4BlitzAggression)) } { - const prefix string = ",\"PuntReturnYards\":" + const prefix string = ",\"DefFormation5\":" out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) + out.String(string(in.DefFormation5)) } { - const prefix string = ",\"STSoloTackles\":" + const prefix string = ",\"DefFormation5RunToPass\":" out.RawString(prefix) - out.Float64(float64(in.STSoloTackles)) + out.Int(int(in.DefFormation5RunToPass)) } { - const prefix string = ",\"STAssistedTackles\":" + const prefix string = ",\"DefFormation5BlitzWeight\":" out.RawString(prefix) - out.Float64(float64(in.STAssistedTackles)) + out.Int(int(in.DefFormation5BlitzWeight)) } { - const prefix string = ",\"PuntsBlocked\":" + const prefix string = ",\"DefFormation5BlitzAggression\":" out.RawString(prefix) - out.Int(int(in.PuntsBlocked)) + out.String(string(in.DefFormation5BlitzAggression)) } { - const prefix string = ",\"FGBlocked\":" + const prefix string = ",\"OffFormation1Name\":" out.RawString(prefix) - out.Int(int(in.FGBlocked)) + out.String(string(in.OffFormation1Name)) } { - const prefix string = ",\"Snaps\":" + const prefix string = ",\"OffForm1Weight\":" out.RawString(prefix) - out.Int(int(in.Snaps)) + out.Int(int(in.OffForm1Weight)) } { - const prefix string = ",\"Pancakes\":" + const prefix string = ",\"OffForm1TraditionalRun\":" out.RawString(prefix) - out.Int(int(in.Pancakes)) + out.Int(int(in.OffForm1TraditionalRun)) } { - const prefix string = ",\"SacksAllowed\":" + const prefix string = ",\"OffForm1OptionRun\":" out.RawString(prefix) - out.Int(int(in.SacksAllowed)) + out.Int(int(in.OffForm1OptionRun)) } { - const prefix string = ",\"PlayedGame\":" + const prefix string = ",\"OffForm1Pass\":" out.RawString(prefix) - out.Int(int(in.PlayedGame)) + out.Int(int(in.OffForm1Pass)) } { - const prefix string = ",\"StartedGame\":" + const prefix string = ",\"OffForm1RPO\":" out.RawString(prefix) - out.Int(int(in.StartedGame)) + out.Int(int(in.OffForm1RPO)) } { - const prefix string = ",\"WasInjured\":" + const prefix string = ",\"OffFormation2Name\":" out.RawString(prefix) - out.Bool(bool(in.WasInjured)) + out.String(string(in.OffFormation2Name)) } { - const prefix string = ",\"WeeksOfRecovery\":" + const prefix string = ",\"OffForm2Weight\":" out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) + out.Int(int(in.OffForm2Weight)) } { - const prefix string = ",\"InjuryType\":" + const prefix string = ",\"OffForm2TraditionalRun\":" out.RawString(prefix) - out.String(string(in.InjuryType)) + out.Int(int(in.OffForm2TraditionalRun)) } { - const prefix string = ",\"RevealResults\":" + const prefix string = ",\"OffForm2OptionRun\":" out.RawString(prefix) - out.Bool(bool(in.RevealResults)) + out.Int(int(in.OffForm2OptionRun)) } { - const prefix string = ",\"TeamID\":" + const prefix string = ",\"OffForm2Pass\":" out.RawString(prefix) - out.Uint(uint(in.TeamID)) + out.Int(int(in.OffForm2Pass)) } { - const prefix string = ",\"Team\":" + const prefix string = ",\"OffForm2RPO\":" out.RawString(prefix) - out.String(string(in.Team)) + out.Int(int(in.OffForm2RPO)) } { - const prefix string = ",\"PreviousTeamID\":" + const prefix string = ",\"OffFormation3Name\":" out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) + out.String(string(in.OffFormation3Name)) } { - const prefix string = ",\"PreviousTeam\":" + const prefix string = ",\"OffForm3Weight\":" out.RawString(prefix) - out.String(string(in.PreviousTeam)) + out.Int(int(in.OffForm3Weight)) } { - const prefix string = ",\"GameType\":" + const prefix string = ",\"OffForm3TraditionalRun\":" out.RawString(prefix) - out.Uint8(uint8(in.GameType)) + out.Int(int(in.OffForm3TraditionalRun)) } { - const prefix string = ",\"ID\":" + const prefix string = ",\"OffForm3OptionRun\":" out.RawString(prefix) - out.Uint(uint(in.ID)) + out.Int(int(in.OffForm3OptionRun)) } { - const prefix string = ",\"CreatedAt\":" + const prefix string = ",\"OffForm3Pass\":" out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) + out.Int(int(in.OffForm3Pass)) } { - const prefix string = ",\"UpdatedAt\":" + const prefix string = ",\"OffForm3RPO\":" out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) + out.Int(int(in.OffForm3RPO)) } { - const prefix string = ",\"DeletedAt\":" + const prefix string = ",\"OffFormation4Name\":" out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in *jlexer.Lexer, out *structs.NFLPlayerStats) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return + out.String(string(in.OffFormation4Name)) } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "IsPreseasonGame": - out.IsPreseasonGame = bool(in.Bool()) - case "NFLPlayerID": - out.NFLPlayerID = int(in.Int()) - case "GameID": - out.GameID = int(in.Int()) - case "WeekID": - out.WeekID = int(in.Int()) - case "SeasonID": - out.SeasonID = int(in.Int()) - case "OpposingTeam": - out.OpposingTeam = string(in.String()) - case "Year": - out.Year = int(in.Int()) - case "PassingYards": - out.PassingYards = int(in.Int()) - case "PassAttempts": - out.PassAttempts = int(in.Int()) - case "PassCompletions": - out.PassCompletions = int(in.Int()) - case "PassingTDs": - out.PassingTDs = int(in.Int()) - case "Interceptions": - out.Interceptions = int(in.Int()) - case "LongestPass": - out.LongestPass = int(in.Int()) - case "Sacks": - out.Sacks = int(in.Int()) - case "RushAttempts": - out.RushAttempts = int(in.Int()) - case "RushingYards": - out.RushingYards = int(in.Int()) - case "RushingTDs": - out.RushingTDs = int(in.Int()) - case "Fumbles": - out.Fumbles = int(in.Int()) - case "LongestRush": - out.LongestRush = int(in.Int()) - case "Targets": - out.Targets = int(in.Int()) - case "Catches": - out.Catches = int(in.Int()) - case "ReceivingYards": - out.ReceivingYards = int(in.Int()) - case "ReceivingTDs": - out.ReceivingTDs = int(in.Int()) - case "LongestReception": - out.LongestReception = int(in.Int()) - case "SoloTackles": - out.SoloTackles = float64(in.Float64()) - case "AssistedTackles": - out.AssistedTackles = float64(in.Float64()) - case "TacklesForLoss": - out.TacklesForLoss = float64(in.Float64()) - case "SacksMade": - out.SacksMade = float64(in.Float64()) - case "ForcedFumbles": - out.ForcedFumbles = int(in.Int()) - case "RecoveredFumbles": - out.RecoveredFumbles = int(in.Int()) - case "PassDeflections": - out.PassDeflections = int(in.Int()) - case "InterceptionsCaught": - out.InterceptionsCaught = int(in.Int()) - case "Safeties": - out.Safeties = int(in.Int()) - case "DefensiveTDs": - out.DefensiveTDs = int(in.Int()) - case "FGMade": - out.FGMade = int(in.Int()) - case "FGAttempts": - out.FGAttempts = int(in.Int()) - case "LongestFG": - out.LongestFG = int(in.Int()) - case "ExtraPointsMade": - out.ExtraPointsMade = int(in.Int()) - case "ExtraPointsAttempted": - out.ExtraPointsAttempted = int(in.Int()) - case "KickoffTouchbacks": - out.KickoffTouchbacks = int(in.Int()) - case "Punts": - out.Punts = int(in.Int()) - case "GrossPuntDistance": - out.GrossPuntDistance = int(in.Int()) - case "NetPuntDistance": - out.NetPuntDistance = int(in.Int()) - case "PuntTouchbacks": - out.PuntTouchbacks = int(in.Int()) - case "PuntsInside20": - out.PuntsInside20 = int(in.Int()) - case "KickReturns": - out.KickReturns = int(in.Int()) - case "KickReturnTDs": - out.KickReturnTDs = int(in.Int()) - case "KickReturnYards": - out.KickReturnYards = int(in.Int()) - case "PuntReturns": - out.PuntReturns = int(in.Int()) - case "PuntReturnTDs": - out.PuntReturnTDs = int(in.Int()) - case "PuntReturnYards": - out.PuntReturnYards = int(in.Int()) - case "STSoloTackles": - out.STSoloTackles = float64(in.Float64()) - case "STAssistedTackles": - out.STAssistedTackles = float64(in.Float64()) - case "PuntsBlocked": - out.PuntsBlocked = int(in.Int()) - case "FGBlocked": - out.FGBlocked = int(in.Int()) - case "Snaps": - out.Snaps = int(in.Int()) - case "Pancakes": - out.Pancakes = int(in.Int()) - case "SacksAllowed": - out.SacksAllowed = int(in.Int()) - case "PlayedGame": - out.PlayedGame = int(in.Int()) - case "StartedGame": - out.StartedGame = int(in.Int()) - case "WasInjured": - out.WasInjured = bool(in.Bool()) - case "WeeksOfRecovery": - out.WeeksOfRecovery = uint(in.Uint()) - case "InjuryType": - out.InjuryType = string(in.String()) - case "RevealResults": - out.RevealResults = bool(in.Bool()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "GameType": - out.GameType = uint8(in.Uint8()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() + { + const prefix string = ",\"OffForm4Weight\":" + out.RawString(prefix) + out.Int(int(in.OffForm4Weight)) } - in.Delim('}') - if isTopLevel { - in.Consumed() + { + const prefix string = ",\"OffForm4TraditionalRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4TraditionalRun)) } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out *jwriter.Writer, in structs.NFLPlayerStats) { - out.RawByte('{') - first := true - _ = first { - const prefix string = ",\"IsPreseasonGame\":" - out.RawString(prefix[1:]) - out.Bool(bool(in.IsPreseasonGame)) + const prefix string = ",\"OffForm4OptionRun\":" + out.RawString(prefix) + out.Int(int(in.OffForm4OptionRun)) } { - const prefix string = ",\"NFLPlayerID\":" + const prefix string = ",\"OffForm4Pass\":" out.RawString(prefix) - out.Int(int(in.NFLPlayerID)) + out.Int(int(in.OffForm4Pass)) } { - const prefix string = ",\"GameID\":" + const prefix string = ",\"OffForm4RPO\":" out.RawString(prefix) - out.Int(int(in.GameID)) + out.Int(int(in.OffForm4RPO)) } { - const prefix string = ",\"WeekID\":" + const prefix string = ",\"OffFormation5Name\":" out.RawString(prefix) - out.Int(int(in.WeekID)) + out.String(string(in.OffFormation5Name)) } { - const prefix string = ",\"SeasonID\":" + const prefix string = ",\"OffForm5Weight\":" out.RawString(prefix) - out.Int(int(in.SeasonID)) + out.Int(int(in.OffForm5Weight)) } { - const prefix string = ",\"OpposingTeam\":" + const prefix string = ",\"OffForm5TraditionalRun\":" out.RawString(prefix) - out.String(string(in.OpposingTeam)) + out.Int(int(in.OffForm5TraditionalRun)) } { - const prefix string = ",\"Year\":" + const prefix string = ",\"OffForm5OptionRun\":" out.RawString(prefix) - out.Int(int(in.Year)) + out.Int(int(in.OffForm5OptionRun)) } { - const prefix string = ",\"PassingYards\":" + const prefix string = ",\"OffForm5Pass\":" out.RawString(prefix) - out.Int(int(in.PassingYards)) + out.Int(int(in.OffForm5Pass)) } { - const prefix string = ",\"PassAttempts\":" + const prefix string = ",\"OffForm5RPO\":" out.RawString(prefix) - out.Int(int(in.PassAttempts)) + out.Int(int(in.OffForm5RPO)) } { - const prefix string = ",\"PassCompletions\":" + const prefix string = ",\"RunnerDistributionQB\":" out.RawString(prefix) - out.Int(int(in.PassCompletions)) + out.Int(int(in.RunnerDistributionQB)) } { - const prefix string = ",\"PassingTDs\":" + const prefix string = ",\"RunnerDistributionRB1\":" out.RawString(prefix) - out.Int(int(in.PassingTDs)) + out.Int(int(in.RunnerDistributionRB1)) } { - const prefix string = ",\"Interceptions\":" + const prefix string = ",\"RunnerDistributionRB2\":" out.RawString(prefix) - out.Int(int(in.Interceptions)) + out.Int(int(in.RunnerDistributionRB2)) } { - const prefix string = ",\"LongestPass\":" + const prefix string = ",\"RunnerDistributionRB3\":" out.RawString(prefix) - out.Int(int(in.LongestPass)) + out.Int(int(in.RunnerDistributionRB3)) } { - const prefix string = ",\"Sacks\":" + const prefix string = ",\"RunnerDistributionFB1\":" out.RawString(prefix) - out.Int(int(in.Sacks)) + out.Int(int(in.RunnerDistributionFB1)) } { - const prefix string = ",\"RushAttempts\":" + const prefix string = ",\"RunnerDistributionFB2\":" out.RawString(prefix) - out.Int(int(in.RushAttempts)) + out.Int(int(in.RunnerDistributionFB2)) } { - const prefix string = ",\"RushingYards\":" + const prefix string = ",\"RunnerDistributionWR\":" out.RawString(prefix) - out.Int(int(in.RushingYards)) + out.Int(int(in.RunnerDistributionWR)) } { - const prefix string = ",\"RushingTDs\":" + const prefix string = ",\"RunnerDistributionWRPosition\":" out.RawString(prefix) - out.Int(int(in.RushingTDs)) + out.String(string(in.RunnerDistributionWRPosition)) } { - const prefix string = ",\"Fumbles\":" + const prefix string = ",\"RunnerDistributionWRID\":" out.RawString(prefix) - out.Int(int(in.Fumbles)) + out.Uint(uint(in.RunnerDistributionWRID)) } { - const prefix string = ",\"LongestRush\":" + const prefix string = ",\"RunOutsideLeft\":" out.RawString(prefix) - out.Int(int(in.LongestRush)) + out.Int(int(in.RunOutsideLeft)) } { - const prefix string = ",\"Targets\":" + const prefix string = ",\"RunOutsideRight\":" out.RawString(prefix) - out.Int(int(in.Targets)) + out.Int(int(in.RunOutsideRight)) } { - const prefix string = ",\"Catches\":" + const prefix string = ",\"RunInsideLeft\":" out.RawString(prefix) - out.Int(int(in.Catches)) + out.Int(int(in.RunInsideLeft)) } { - const prefix string = ",\"ReceivingYards\":" + const prefix string = ",\"RunInsideRight\":" out.RawString(prefix) - out.Int(int(in.ReceivingYards)) + out.Int(int(in.RunInsideRight)) } { - const prefix string = ",\"ReceivingTDs\":" + const prefix string = ",\"RunPowerLeft\":" out.RawString(prefix) - out.Int(int(in.ReceivingTDs)) + out.Int(int(in.RunPowerLeft)) } { - const prefix string = ",\"LongestReception\":" + const prefix string = ",\"RunPowerRight\":" out.RawString(prefix) - out.Int(int(in.LongestReception)) + out.Int(int(in.RunPowerRight)) } { - const prefix string = ",\"SoloTackles\":" + const prefix string = ",\"RunDrawLeft\":" out.RawString(prefix) - out.Float64(float64(in.SoloTackles)) + out.Int(int(in.RunDrawLeft)) } { - const prefix string = ",\"AssistedTackles\":" + const prefix string = ",\"RunDrawRight\":" out.RawString(prefix) - out.Float64(float64(in.AssistedTackles)) + out.Int(int(in.RunDrawRight)) } { - const prefix string = ",\"TacklesForLoss\":" + const prefix string = ",\"ReadOptionLeft\":" out.RawString(prefix) - out.Float64(float64(in.TacklesForLoss)) + out.Int(int(in.ReadOptionLeft)) } { - const prefix string = ",\"SacksMade\":" + const prefix string = ",\"ReadOptionRight\":" out.RawString(prefix) - out.Float64(float64(in.SacksMade)) + out.Int(int(in.ReadOptionRight)) } { - const prefix string = ",\"ForcedFumbles\":" + const prefix string = ",\"SpeedOptionLeft\":" out.RawString(prefix) - out.Int(int(in.ForcedFumbles)) + out.Int(int(in.SpeedOptionLeft)) } { - const prefix string = ",\"RecoveredFumbles\":" + const prefix string = ",\"SpeedOptionRight\":" out.RawString(prefix) - out.Int(int(in.RecoveredFumbles)) + out.Int(int(in.SpeedOptionRight)) } { - const prefix string = ",\"PassDeflections\":" + const prefix string = ",\"InvertedOptionLeft\":" + out.RawString(prefix) + out.Int(int(in.InvertedOptionLeft)) + } + { + const prefix string = ",\"InvertedOptionRight\":" out.RawString(prefix) - out.Int(int(in.PassDeflections)) + out.Int(int(in.InvertedOptionRight)) } { - const prefix string = ",\"InterceptionsCaught\":" + const prefix string = ",\"TripleOptionLeft\":" out.RawString(prefix) - out.Int(int(in.InterceptionsCaught)) + out.Int(int(in.TripleOptionLeft)) } { - const prefix string = ",\"Safeties\":" + const prefix string = ",\"TripleOptionRight\":" out.RawString(prefix) - out.Int(int(in.Safeties)) + out.Int(int(in.TripleOptionRight)) } { - const prefix string = ",\"DefensiveTDs\":" + const prefix string = ",\"PassQuick\":" out.RawString(prefix) - out.Int(int(in.DefensiveTDs)) + out.Int(int(in.PassQuick)) } { - const prefix string = ",\"FGMade\":" + const prefix string = ",\"PassShort\":" out.RawString(prefix) - out.Int(int(in.FGMade)) + out.Int(int(in.PassShort)) } { - const prefix string = ",\"FGAttempts\":" + const prefix string = ",\"PassMedium\":" out.RawString(prefix) - out.Int(int(in.FGAttempts)) + out.Int(int(in.PassMedium)) } { - const prefix string = ",\"LongestFG\":" + const prefix string = ",\"PassLong\":" + out.RawString(prefix) + out.Int(int(in.PassLong)) + } + { + const prefix string = ",\"PassDeep\":" + out.RawString(prefix) + out.Int(int(in.PassDeep)) + } + { + const prefix string = ",\"PassScreen\":" + out.RawString(prefix) + out.Int(int(in.PassScreen)) + } + { + const prefix string = ",\"PassPAShort\":" + out.RawString(prefix) + out.Int(int(in.PassPAShort)) + } + { + const prefix string = ",\"PassPAMedium\":" + out.RawString(prefix) + out.Int(int(in.PassPAMedium)) + } + { + const prefix string = ",\"PassPALong\":" + out.RawString(prefix) + out.Int(int(in.PassPALong)) + } + { + const prefix string = ",\"PassPADeep\":" + out.RawString(prefix) + out.Int(int(in.PassPADeep)) + } + { + const prefix string = ",\"LeftVsRight\":" + out.RawString(prefix) + out.Int(int(in.LeftVsRight)) + } + { + const prefix string = ",\"ChoiceOutside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceOutside)) + } + { + const prefix string = ",\"ChoiceInside\":" + out.RawString(prefix) + out.Int(int(in.ChoiceInside)) + } + { + const prefix string = ",\"ChoicePower\":" + out.RawString(prefix) + out.Int(int(in.ChoicePower)) + } + { + const prefix string = ",\"PeekOutside\":" + out.RawString(prefix) + out.Int(int(in.PeekOutside)) + } + { + const prefix string = ",\"PeekInside\":" + out.RawString(prefix) + out.Int(int(in.PeekInside)) + } + { + const prefix string = ",\"PeekPower\":" + out.RawString(prefix) + out.Int(int(in.PeekPower)) + } + { + const prefix string = ",\"TargetingWR1\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR1)) + } + { + const prefix string = ",\"TargetDepthWR1\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR1)) + } + { + const prefix string = ",\"TargetingWR2\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR2)) + } + { + const prefix string = ",\"TargetDepthWR2\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR2)) + } + { + const prefix string = ",\"TargetingWR3\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR3)) + } + { + const prefix string = ",\"TargetDepthWR3\":" + out.RawString(prefix) + out.String(string(in.TargetDepthWR3)) + } + { + const prefix string = ",\"TargetingWR4\":" + out.RawString(prefix) + out.Int(int(in.TargetingWR4)) + } + { + const prefix string = ",\"TargetDepthWR4\":" out.RawString(prefix) - out.Int(int(in.LongestFG)) + out.String(string(in.TargetDepthWR4)) } { - const prefix string = ",\"ExtraPointsMade\":" + const prefix string = ",\"TargetingWR5\":" out.RawString(prefix) - out.Int(int(in.ExtraPointsMade)) + out.Int(int(in.TargetingWR5)) } { - const prefix string = ",\"ExtraPointsAttempted\":" + const prefix string = ",\"TargetDepthWR5\":" out.RawString(prefix) - out.Int(int(in.ExtraPointsAttempted)) + out.String(string(in.TargetDepthWR5)) } { - const prefix string = ",\"KickoffTouchbacks\":" + const prefix string = ",\"TargetingTE1\":" out.RawString(prefix) - out.Int(int(in.KickoffTouchbacks)) + out.Int(int(in.TargetingTE1)) } { - const prefix string = ",\"Punts\":" + const prefix string = ",\"TargetDepthTE1\":" out.RawString(prefix) - out.Int(int(in.Punts)) + out.String(string(in.TargetDepthTE1)) } { - const prefix string = ",\"GrossPuntDistance\":" + const prefix string = ",\"TargetingTE2\":" out.RawString(prefix) - out.Int(int(in.GrossPuntDistance)) + out.Int(int(in.TargetingTE2)) } { - const prefix string = ",\"NetPuntDistance\":" + const prefix string = ",\"TargetDepthTE2\":" out.RawString(prefix) - out.Int(int(in.NetPuntDistance)) + out.String(string(in.TargetDepthTE2)) } { - const prefix string = ",\"PuntTouchbacks\":" + const prefix string = ",\"TargetingTE3\":" out.RawString(prefix) - out.Int(int(in.PuntTouchbacks)) + out.Int(int(in.TargetingTE3)) } { - const prefix string = ",\"PuntsInside20\":" + const prefix string = ",\"TargetDepthTE3\":" out.RawString(prefix) - out.Int(int(in.PuntsInside20)) + out.String(string(in.TargetDepthTE3)) } { - const prefix string = ",\"KickReturns\":" + const prefix string = ",\"TargetingRB1\":" out.RawString(prefix) - out.Int(int(in.KickReturns)) + out.Int(int(in.TargetingRB1)) } { - const prefix string = ",\"KickReturnTDs\":" + const prefix string = ",\"TargetDepthRB1\":" out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) + out.String(string(in.TargetDepthRB1)) } { - const prefix string = ",\"KickReturnYards\":" + const prefix string = ",\"TargetingRB2\":" out.RawString(prefix) - out.Int(int(in.KickReturnYards)) + out.Int(int(in.TargetingRB2)) } { - const prefix string = ",\"PuntReturns\":" + const prefix string = ",\"TargetDepthRB2\":" out.RawString(prefix) - out.Int(int(in.PuntReturns)) + out.String(string(in.TargetDepthRB2)) } { - const prefix string = ",\"PuntReturnTDs\":" + const prefix string = ",\"TargetingFB1\":" out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) + out.Int(int(in.TargetingFB1)) } { - const prefix string = ",\"PuntReturnYards\":" + const prefix string = ",\"TargetDepthFB1\":" out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) + out.String(string(in.TargetDepthFB1)) } { - const prefix string = ",\"STSoloTackles\":" + const prefix string = ",\"ID\":" out.RawString(prefix) - out.Float64(float64(in.STSoloTackles)) + out.Uint(uint(in.ID)) } { - const prefix string = ",\"STAssistedTackles\":" + const prefix string = ",\"CreatedAt\":" out.RawString(prefix) - out.Float64(float64(in.STAssistedTackles)) + out.Raw((in.CreatedAt).MarshalJSON()) } { - const prefix string = ",\"PuntsBlocked\":" + const prefix string = ",\"UpdatedAt\":" out.RawString(prefix) - out.Int(int(in.PuntsBlocked)) + out.Raw((in.UpdatedAt).MarshalJSON()) } { - const prefix string = ",\"FGBlocked\":" + const prefix string = ",\"DeletedAt\":" out.RawString(prefix) - out.Int(int(in.FGBlocked)) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in *jlexer.Lexer, out *structs.NFLDepthChart) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "TeamID": + out.TeamID = int(in.Int()) + case "DepthChartPlayers": + if in.IsNull() { + in.Skip() + out.DepthChartPlayers = nil + } else { + in.Delim('[') + if out.DepthChartPlayers == nil { + if !in.IsDelim(']') { + out.DepthChartPlayers = make([]structs.NFLDepthChartPosition, 0, 0) + } else { + out.DepthChartPlayers = []structs.NFLDepthChartPosition{} + } + } else { + out.DepthChartPlayers = (out.DepthChartPlayers)[:0] + } + for !in.IsDelim(']') { + var v70 structs.NFLDepthChartPosition + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v70) + out.DepthChartPlayers = append(out.DepthChartPlayers, v70) + in.WantComma() + } + in.Delim(']') + } + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out *jwriter.Writer, in structs.NFLDepthChart) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"Snaps\":" - out.RawString(prefix) - out.Int(int(in.Snaps)) + const prefix string = ",\"TeamID\":" + out.RawString(prefix[1:]) + out.Int(int(in.TeamID)) } { - const prefix string = ",\"Pancakes\":" + const prefix string = ",\"DepthChartPlayers\":" out.RawString(prefix) - out.Int(int(in.Pancakes)) + if in.DepthChartPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v71, v72 := range in.DepthChartPlayers { + if v71 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v72) + } + out.RawByte(']') + } } { - const prefix string = ",\"SacksAllowed\":" + const prefix string = ",\"ID\":" out.RawString(prefix) - out.Int(int(in.SacksAllowed)) + out.Uint(uint(in.ID)) } { - const prefix string = ",\"PlayedGame\":" + const prefix string = ",\"CreatedAt\":" out.RawString(prefix) - out.Int(int(in.PlayedGame)) + out.Raw((in.CreatedAt).MarshalJSON()) } { - const prefix string = ",\"StartedGame\":" + const prefix string = ",\"UpdatedAt\":" out.RawString(prefix) - out.Int(int(in.StartedGame)) + out.Raw((in.UpdatedAt).MarshalJSON()) } { - const prefix string = ",\"WasInjured\":" + const prefix string = ",\"DeletedAt\":" out.RawString(prefix) - out.Bool(bool(in.WasInjured)) + if in.DeletedAt == nil { + out.RawString("null") + } else { + out.Raw((*in.DeletedAt).MarshalJSON()) + } + } + out.RawByte('}') +} +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in *jlexer.Lexer, out *structs.NFLDepthChartPosition) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "DepthChartID": + out.DepthChartID = uint(in.Uint()) + case "PlayerID": + out.PlayerID = uint(in.Uint()) + case "Position": + out.Position = string(in.String()) + case "PositionLevel": + out.PositionLevel = string(in.String()) + case "FirstName": + out.FirstName = string(in.String()) + case "LastName": + out.LastName = string(in.String()) + case "OriginalPosition": + out.OriginalPosition = string(in.String()) + case "NFLPlayer": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &out.NFLPlayer) + case "ID": + out.ID = uint(in.Uint()) + case "CreatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.CreatedAt).UnmarshalJSON(data)) + } + case "UpdatedAt": + if data := in.Raw(); in.Ok() { + in.AddError((out.UpdatedAt).UnmarshalJSON(data)) + } + case "DeletedAt": + if in.IsNull() { + in.Skip() + out.DeletedAt = nil + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out *jwriter.Writer, in structs.NFLDepthChartPosition) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"WeeksOfRecovery\":" - out.RawString(prefix) - out.Uint(uint(in.WeeksOfRecovery)) + const prefix string = ",\"DepthChartID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.DepthChartID)) } { - const prefix string = ",\"InjuryType\":" + const prefix string = ",\"PlayerID\":" out.RawString(prefix) - out.String(string(in.InjuryType)) + out.Uint(uint(in.PlayerID)) } { - const prefix string = ",\"RevealResults\":" + const prefix string = ",\"Position\":" out.RawString(prefix) - out.Bool(bool(in.RevealResults)) + out.String(string(in.Position)) } { - const prefix string = ",\"TeamID\":" + const prefix string = ",\"PositionLevel\":" out.RawString(prefix) - out.Uint(uint(in.TeamID)) + out.String(string(in.PositionLevel)) } { - const prefix string = ",\"Team\":" + const prefix string = ",\"FirstName\":" out.RawString(prefix) - out.String(string(in.Team)) + out.String(string(in.FirstName)) } { - const prefix string = ",\"PreviousTeamID\":" + const prefix string = ",\"LastName\":" out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) + out.String(string(in.LastName)) } { - const prefix string = ",\"PreviousTeam\":" + const prefix string = ",\"OriginalPosition\":" out.RawString(prefix) - out.String(string(in.PreviousTeam)) + out.String(string(in.OriginalPosition)) } { - const prefix string = ",\"GameType\":" + const prefix string = ",\"NFLPlayer\":" out.RawString(prefix) - out.Uint8(uint8(in.GameType)) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, in.NFLPlayer) } { const prefix string = ",\"ID\":" @@ -8041,7 +8639,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in *jlexer.Lexer, out *structs.NFLTeamSeasonStats) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in *jlexer.Lexer, out *structs.NFLTeamSeasonStats) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8264,7 +8862,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out *jwriter.Writer, in structs.NFLTeamSeasonStats) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out *jwriter.Writer, in structs.NFLTeamSeasonStats) { out.RawByte('{') first := true _ = first @@ -8724,7 +9322,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in *jlexer.Lexer, out *structs.NFLTeamStats) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in *jlexer.Lexer, out *structs.NFLTeamStats) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8941,7 +9539,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out *jwriter.Writer, in structs.NFLTeamStats) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out *jwriter.Writer, in structs.NFLTeamStats) { out.RawByte('{') first := true _ = first @@ -9240,339 +9838,125 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out *jwriter.Writer out.RawString(prefix) out.Float64(float64(in.PuntAverage)) } - { - const prefix string = ",\"Inside20YardLine\":" - out.RawString(prefix) - out.Int(int(in.Inside20YardLine)) - } - { - const prefix string = ",\"KickReturnYards\":" - out.RawString(prefix) - out.Int(int(in.KickReturnYards)) - } - { - const prefix string = ",\"KickReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.KickReturnTDs)) - } - { - const prefix string = ",\"PuntReturnYards\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnYards)) - } - { - const prefix string = ",\"PuntReturnTDs\":" - out.RawString(prefix) - out.Int(int(in.PuntReturnTDs)) - } - { - const prefix string = ",\"OffensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.OffensivePenalties)) - } - { - const prefix string = ",\"DefensivePenalties\":" - out.RawString(prefix) - out.Int(int(in.DefensivePenalties)) - } - { - const prefix string = ",\"OffPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.OffPenaltyYards)) - } - { - const prefix string = ",\"DefPenaltyYards\":" - out.RawString(prefix) - out.Int(int(in.DefPenaltyYards)) - } - { - const prefix string = ",\"Score1Q\":" - out.RawString(prefix) - out.Int(int(in.Score1Q)) - } - { - const prefix string = ",\"Score2Q\":" - out.RawString(prefix) - out.Int(int(in.Score2Q)) - } - { - const prefix string = ",\"Score3Q\":" - out.RawString(prefix) - out.Int(int(in.Score3Q)) - } - { - const prefix string = ",\"Score4Q\":" - out.RawString(prefix) - out.Int(int(in.Score4Q)) - } - { - const prefix string = ",\"Score5Q\":" - out.RawString(prefix) - out.Int(int(in.Score5Q)) - } - { - const prefix string = ",\"Score6Q\":" - out.RawString(prefix) - out.Int(int(in.Score6Q)) - } - { - const prefix string = ",\"Score7Q\":" - out.RawString(prefix) - out.Int(int(in.Score7Q)) - } - { - const prefix string = ",\"ScoreOT\":" - out.RawString(prefix) - out.Int(int(in.ScoreOT)) - } - { - const prefix string = ",\"OffensiveScheme\":" - out.RawString(prefix) - out.String(string(in.OffensiveScheme)) - } - { - const prefix string = ",\"DefensiveScheme\":" - out.RawString(prefix) - out.String(string(in.DefensiveScheme)) - } - { - const prefix string = ",\"OffensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.OffensiveSnaps)) - } - { - const prefix string = ",\"DefensiveSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.DefensiveSnaps)) - } - { - const prefix string = ",\"SpecialTeamSnaps\":" - out.RawString(prefix) - out.Uint16(uint16(in.SpecialTeamSnaps)) - } - { - const prefix string = ",\"GameType\":" - out.RawString(prefix) - out.Uint8(uint8(in.GameType)) - } - { - const prefix string = ",\"RevealResults\":" - out.RawString(prefix) - out.Bool(bool(in.RevealResults)) - } - { - const prefix string = ",\"ID\":" - out.RawString(prefix) - out.Uint(uint(in.ID)) - } - { - const prefix string = ",\"CreatedAt\":" - out.RawString(prefix) - out.Raw((in.CreatedAt).MarshalJSON()) - } - { - const prefix string = ",\"UpdatedAt\":" - out.RawString(prefix) - out.Raw((in.UpdatedAt).MarshalJSON()) - } - { - const prefix string = ",\"DeletedAt\":" - out.RawString(prefix) - if in.DeletedAt == nil { - out.RawString("null") - } else { - out.Raw((*in.DeletedAt).MarshalJSON()) - } - } - out.RawByte('}') -} -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in *jlexer.Lexer, out *structs.NFLDraftPick) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "SeasonID": - out.SeasonID = uint(in.Uint()) - case "Season": - out.Season = uint(in.Uint()) - case "DrafteeID": - out.DrafteeID = uint(in.Uint()) - case "DraftRound": - out.DraftRound = uint(in.Uint()) - case "DraftNumber": - out.DraftNumber = uint(in.Uint()) - case "OverallPickNumber": - out.OverallPickNumber = uint(in.Uint()) - case "TeamID": - out.TeamID = uint(in.Uint()) - case "Team": - out.Team = string(in.String()) - case "OriginalTeamID": - out.OriginalTeamID = uint(in.Uint()) - case "OriginalTeam": - out.OriginalTeam = string(in.String()) - case "PreviousTeamID": - out.PreviousTeamID = uint(in.Uint()) - case "PreviousTeam": - out.PreviousTeam = string(in.String()) - case "DraftValue": - out.DraftValue = float64(in.Float64()) - case "Notes": - out.Notes = string(in.String()) - case "SelectedPlayerID": - out.SelectedPlayerID = uint(in.Uint()) - case "SelectedPlayerName": - out.SelectedPlayerName = string(in.String()) - case "SelectedPlayerPosition": - out.SelectedPlayerPosition = string(in.String()) - case "IsCompensation": - out.IsCompensation = bool(in.Bool()) - case "IsVoid": - out.IsVoid = bool(in.Bool()) - case "ID": - out.ID = uint(in.Uint()) - case "CreatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreatedAt).UnmarshalJSON(data)) - } - case "UpdatedAt": - if data := in.Raw(); in.Ok() { - in.AddError((out.UpdatedAt).UnmarshalJSON(data)) - } - case "DeletedAt": - if in.IsNull() { - in.Skip() - out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() + { + const prefix string = ",\"Inside20YardLine\":" + out.RawString(prefix) + out.Int(int(in.Inside20YardLine)) } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out *jwriter.Writer, in structs.NFLDraftPick) { - out.RawByte('{') - first := true - _ = first { - const prefix string = ",\"SeasonID\":" - out.RawString(prefix[1:]) - out.Uint(uint(in.SeasonID)) + const prefix string = ",\"KickReturnYards\":" + out.RawString(prefix) + out.Int(int(in.KickReturnYards)) } { - const prefix string = ",\"Season\":" + const prefix string = ",\"KickReturnTDs\":" out.RawString(prefix) - out.Uint(uint(in.Season)) + out.Int(int(in.KickReturnTDs)) } { - const prefix string = ",\"DrafteeID\":" + const prefix string = ",\"PuntReturnYards\":" out.RawString(prefix) - out.Uint(uint(in.DrafteeID)) + out.Int(int(in.PuntReturnYards)) } { - const prefix string = ",\"DraftRound\":" + const prefix string = ",\"PuntReturnTDs\":" out.RawString(prefix) - out.Uint(uint(in.DraftRound)) + out.Int(int(in.PuntReturnTDs)) } { - const prefix string = ",\"DraftNumber\":" + const prefix string = ",\"OffensivePenalties\":" out.RawString(prefix) - out.Uint(uint(in.DraftNumber)) + out.Int(int(in.OffensivePenalties)) } { - const prefix string = ",\"OverallPickNumber\":" + const prefix string = ",\"DefensivePenalties\":" out.RawString(prefix) - out.Uint(uint(in.OverallPickNumber)) + out.Int(int(in.DefensivePenalties)) } { - const prefix string = ",\"TeamID\":" + const prefix string = ",\"OffPenaltyYards\":" out.RawString(prefix) - out.Uint(uint(in.TeamID)) + out.Int(int(in.OffPenaltyYards)) } { - const prefix string = ",\"Team\":" + const prefix string = ",\"DefPenaltyYards\":" out.RawString(prefix) - out.String(string(in.Team)) + out.Int(int(in.DefPenaltyYards)) } { - const prefix string = ",\"OriginalTeamID\":" + const prefix string = ",\"Score1Q\":" out.RawString(prefix) - out.Uint(uint(in.OriginalTeamID)) + out.Int(int(in.Score1Q)) } { - const prefix string = ",\"OriginalTeam\":" + const prefix string = ",\"Score2Q\":" out.RawString(prefix) - out.String(string(in.OriginalTeam)) + out.Int(int(in.Score2Q)) } { - const prefix string = ",\"PreviousTeamID\":" + const prefix string = ",\"Score3Q\":" out.RawString(prefix) - out.Uint(uint(in.PreviousTeamID)) + out.Int(int(in.Score3Q)) } { - const prefix string = ",\"PreviousTeam\":" + const prefix string = ",\"Score4Q\":" out.RawString(prefix) - out.String(string(in.PreviousTeam)) + out.Int(int(in.Score4Q)) } { - const prefix string = ",\"DraftValue\":" + const prefix string = ",\"Score5Q\":" out.RawString(prefix) - out.Float64(float64(in.DraftValue)) + out.Int(int(in.Score5Q)) } { - const prefix string = ",\"Notes\":" + const prefix string = ",\"Score6Q\":" out.RawString(prefix) - out.String(string(in.Notes)) + out.Int(int(in.Score6Q)) } { - const prefix string = ",\"SelectedPlayerID\":" + const prefix string = ",\"Score7Q\":" out.RawString(prefix) - out.Uint(uint(in.SelectedPlayerID)) + out.Int(int(in.Score7Q)) } { - const prefix string = ",\"SelectedPlayerName\":" + const prefix string = ",\"ScoreOT\":" out.RawString(prefix) - out.String(string(in.SelectedPlayerName)) + out.Int(int(in.ScoreOT)) } { - const prefix string = ",\"SelectedPlayerPosition\":" + const prefix string = ",\"OffensiveScheme\":" out.RawString(prefix) - out.String(string(in.SelectedPlayerPosition)) + out.String(string(in.OffensiveScheme)) } { - const prefix string = ",\"IsCompensation\":" + const prefix string = ",\"DefensiveScheme\":" out.RawString(prefix) - out.Bool(bool(in.IsCompensation)) + out.String(string(in.DefensiveScheme)) } { - const prefix string = ",\"IsVoid\":" + const prefix string = ",\"OffensiveSnaps\":" out.RawString(prefix) - out.Bool(bool(in.IsVoid)) + out.Uint16(uint16(in.OffensiveSnaps)) + } + { + const prefix string = ",\"DefensiveSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.DefensiveSnaps)) + } + { + const prefix string = ",\"SpecialTeamSnaps\":" + out.RawString(prefix) + out.Uint16(uint16(in.SpecialTeamSnaps)) + } + { + const prefix string = ",\"GameType\":" + out.RawString(prefix) + out.Uint8(uint8(in.GameType)) + } + { + const prefix string = ",\"RevealResults\":" + out.RawString(prefix) + out.Bool(bool(in.RevealResults)) } { const prefix string = ",\"ID\":" @@ -9600,7 +9984,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in *jlexer.Lexer, out *structs.NFLContract) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in *jlexer.Lexer, out *structs.NFLDraftPick) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9619,10 +10003,18 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in *jlexer.Lexer, ou continue } switch key { - case "PlayerID": - out.PlayerID = int(in.Int()) - case "NFLPlayerID": - out.NFLPlayerID = int(in.Int()) + case "SeasonID": + out.SeasonID = uint(in.Uint()) + case "Season": + out.Season = uint(in.Uint()) + case "DrafteeID": + out.DrafteeID = uint(in.Uint()) + case "DraftRound": + out.DraftRound = uint(in.Uint()) + case "DraftNumber": + out.DraftNumber = uint(in.Uint()) + case "OverallPickNumber": + out.OverallPickNumber = uint(in.Uint()) case "TeamID": out.TeamID = uint(in.Uint()) case "Team": @@ -9631,52 +10023,24 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in *jlexer.Lexer, ou out.OriginalTeamID = uint(in.Uint()) case "OriginalTeam": out.OriginalTeam = string(in.String()) - case "ContractLength": - out.ContractLength = int(in.Int()) - case "Y1BaseSalary": - out.Y1BaseSalary = float64(in.Float64()) - case "Y1Bonus": - out.Y1Bonus = float64(in.Float64()) - case "Y2BaseSalary": - out.Y2BaseSalary = float64(in.Float64()) - case "Y2Bonus": - out.Y2Bonus = float64(in.Float64()) - case "Y3BaseSalary": - out.Y3BaseSalary = float64(in.Float64()) - case "Y3Bonus": - out.Y3Bonus = float64(in.Float64()) - case "Y4BaseSalary": - out.Y4BaseSalary = float64(in.Float64()) - case "Y4Bonus": - out.Y4Bonus = float64(in.Float64()) - case "Y5BaseSalary": - out.Y5BaseSalary = float64(in.Float64()) - case "Y5Bonus": - out.Y5Bonus = float64(in.Float64()) - case "BonusPercentage": - out.BonusPercentage = float64(in.Float64()) - case "ContractType": - out.ContractType = string(in.String()) - case "ContractValue": - out.ContractValue = float64(in.Float64()) - case "SigningValue": - out.SigningValue = float64(in.Float64()) - case "IsActive": - out.IsActive = bool(in.Bool()) - case "IsComplete": - out.IsComplete = bool(in.Bool()) - case "IsExtended": - out.IsExtended = bool(in.Bool()) - case "HasProgressed": - out.HasProgressed = bool(in.Bool()) - case "PlayerRetired": - out.PlayerRetired = bool(in.Bool()) - case "TagType": - out.TagType = uint8(in.Uint8()) - case "IsTagged": - out.IsTagged = bool(in.Bool()) - case "IsCut": - out.IsCut = bool(in.Bool()) + case "PreviousTeamID": + out.PreviousTeamID = uint(in.Uint()) + case "PreviousTeam": + out.PreviousTeam = string(in.String()) + case "DraftValue": + out.DraftValue = float64(in.Float64()) + case "Notes": + out.Notes = string(in.String()) + case "SelectedPlayerID": + out.SelectedPlayerID = uint(in.Uint()) + case "SelectedPlayerName": + out.SelectedPlayerName = string(in.String()) + case "SelectedPlayerPosition": + out.SelectedPlayerPosition = string(in.String()) + case "IsCompensation": + out.IsCompensation = bool(in.Bool()) + case "IsVoid": + out.IsVoid = bool(in.Bool()) case "ID": out.ID = uint(in.Uint()) case "CreatedAt": @@ -9691,172 +10055,122 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in *jlexer.Lexer, ou if in.IsNull() { in.Skip() out.DeletedAt = nil - } else { - if out.DeletedAt == nil { - out.DeletedAt = new(time.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.DeletedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out *jwriter.Writer, in structs.NFLContract) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"PlayerID\":" - out.RawString(prefix[1:]) - out.Int(int(in.PlayerID)) - } - { - const prefix string = ",\"NFLPlayerID\":" - out.RawString(prefix) - out.Int(int(in.NFLPlayerID)) - } - { - const prefix string = ",\"TeamID\":" - out.RawString(prefix) - out.Uint(uint(in.TeamID)) - } - { - const prefix string = ",\"Team\":" - out.RawString(prefix) - out.String(string(in.Team)) - } - { - const prefix string = ",\"OriginalTeamID\":" - out.RawString(prefix) - out.Uint(uint(in.OriginalTeamID)) - } - { - const prefix string = ",\"OriginalTeam\":" - out.RawString(prefix) - out.String(string(in.OriginalTeam)) - } - { - const prefix string = ",\"ContractLength\":" - out.RawString(prefix) - out.Int(int(in.ContractLength)) - } - { - const prefix string = ",\"Y1BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y1BaseSalary)) - } - { - const prefix string = ",\"Y1Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y1Bonus)) + } else { + if out.DeletedAt == nil { + out.DeletedAt = new(time.Time) + } + if data := in.Raw(); in.Ok() { + in.AddError((*out.DeletedAt).UnmarshalJSON(data)) + } + } + default: + in.SkipRecursive() + } + in.WantComma() } - { - const prefix string = ",\"Y2BaseSalary\":" - out.RawString(prefix) - out.Float64(float64(in.Y2BaseSalary)) + in.Delim('}') + if isTopLevel { + in.Consumed() } +} +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out *jwriter.Writer, in structs.NFLDraftPick) { + out.RawByte('{') + first := true + _ = first { - const prefix string = ",\"Y2Bonus\":" - out.RawString(prefix) - out.Float64(float64(in.Y2Bonus)) + const prefix string = ",\"SeasonID\":" + out.RawString(prefix[1:]) + out.Uint(uint(in.SeasonID)) } { - const prefix string = ",\"Y3BaseSalary\":" + const prefix string = ",\"Season\":" out.RawString(prefix) - out.Float64(float64(in.Y3BaseSalary)) + out.Uint(uint(in.Season)) } { - const prefix string = ",\"Y3Bonus\":" + const prefix string = ",\"DrafteeID\":" out.RawString(prefix) - out.Float64(float64(in.Y3Bonus)) + out.Uint(uint(in.DrafteeID)) } { - const prefix string = ",\"Y4BaseSalary\":" + const prefix string = ",\"DraftRound\":" out.RawString(prefix) - out.Float64(float64(in.Y4BaseSalary)) + out.Uint(uint(in.DraftRound)) } { - const prefix string = ",\"Y4Bonus\":" + const prefix string = ",\"DraftNumber\":" out.RawString(prefix) - out.Float64(float64(in.Y4Bonus)) + out.Uint(uint(in.DraftNumber)) } { - const prefix string = ",\"Y5BaseSalary\":" + const prefix string = ",\"OverallPickNumber\":" out.RawString(prefix) - out.Float64(float64(in.Y5BaseSalary)) + out.Uint(uint(in.OverallPickNumber)) } { - const prefix string = ",\"Y5Bonus\":" + const prefix string = ",\"TeamID\":" out.RawString(prefix) - out.Float64(float64(in.Y5Bonus)) + out.Uint(uint(in.TeamID)) } { - const prefix string = ",\"BonusPercentage\":" + const prefix string = ",\"Team\":" out.RawString(prefix) - out.Float64(float64(in.BonusPercentage)) + out.String(string(in.Team)) } { - const prefix string = ",\"ContractType\":" + const prefix string = ",\"OriginalTeamID\":" out.RawString(prefix) - out.String(string(in.ContractType)) + out.Uint(uint(in.OriginalTeamID)) } { - const prefix string = ",\"ContractValue\":" + const prefix string = ",\"OriginalTeam\":" out.RawString(prefix) - out.Float64(float64(in.ContractValue)) + out.String(string(in.OriginalTeam)) } { - const prefix string = ",\"SigningValue\":" + const prefix string = ",\"PreviousTeamID\":" out.RawString(prefix) - out.Float64(float64(in.SigningValue)) + out.Uint(uint(in.PreviousTeamID)) } { - const prefix string = ",\"IsActive\":" + const prefix string = ",\"PreviousTeam\":" out.RawString(prefix) - out.Bool(bool(in.IsActive)) + out.String(string(in.PreviousTeam)) } { - const prefix string = ",\"IsComplete\":" + const prefix string = ",\"DraftValue\":" out.RawString(prefix) - out.Bool(bool(in.IsComplete)) + out.Float64(float64(in.DraftValue)) } { - const prefix string = ",\"IsExtended\":" + const prefix string = ",\"Notes\":" out.RawString(prefix) - out.Bool(bool(in.IsExtended)) + out.String(string(in.Notes)) } { - const prefix string = ",\"HasProgressed\":" + const prefix string = ",\"SelectedPlayerID\":" out.RawString(prefix) - out.Bool(bool(in.HasProgressed)) + out.Uint(uint(in.SelectedPlayerID)) } { - const prefix string = ",\"PlayerRetired\":" + const prefix string = ",\"SelectedPlayerName\":" out.RawString(prefix) - out.Bool(bool(in.PlayerRetired)) + out.String(string(in.SelectedPlayerName)) } { - const prefix string = ",\"TagType\":" + const prefix string = ",\"SelectedPlayerPosition\":" out.RawString(prefix) - out.Uint8(uint8(in.TagType)) + out.String(string(in.SelectedPlayerPosition)) } { - const prefix string = ",\"IsTagged\":" + const prefix string = ",\"IsCompensation\":" out.RawString(prefix) - out.Bool(bool(in.IsTagged)) + out.Bool(bool(in.IsCompensation)) } { - const prefix string = ",\"IsCut\":" + const prefix string = ",\"IsVoid\":" out.RawString(prefix) - out.Bool(bool(in.IsCut)) + out.Bool(bool(in.IsVoid)) } { const prefix string = ",\"ID\":" @@ -9884,7 +10198,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out *jwriter.Writer, } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in *jlexer.Lexer, out *structs.NFLCapsheet) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in *jlexer.Lexer, out *structs.NFLCapsheet) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9967,7 +10281,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out *jwriter.Writer, in structs.NFLCapsheet) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out *jwriter.Writer, in structs.NFLCapsheet) { out.RawByte('{') first := true _ = first @@ -10077,7 +10391,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out *jwriter.Writer, } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, out *structs.CollegeTeam) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in *jlexer.Lexer, out *structs.CollegeTeam) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10138,9 +10452,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, ou out.TeamStats = (out.TeamStats)[:0] } for !in.IsDelim(']') { - var v54 structs.CollegeTeamStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &v54) - out.TeamStats = append(out.TeamStats, v54) + var v73 structs.CollegeTeamStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs25(in, &v73) + out.TeamStats = append(out.TeamStats, v73) in.WantComma() } in.Delim(']') @@ -10169,9 +10483,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, ou out.TeamStandings = (out.TeamStandings)[:0] } for !in.IsDelim(']') { - var v55 structs.CollegeStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v55) - out.TeamStandings = append(out.TeamStandings, v55) + var v74 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v74) + out.TeamStandings = append(out.TeamStandings, v74) in.WantComma() } in.Delim(']') @@ -10258,7 +10572,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, ou in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out *jwriter.Writer, in structs.CollegeTeam) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out *jwriter.Writer, in structs.CollegeTeam) { out.RawByte('{') first := true _ = first @@ -10334,11 +10648,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v56, v57 := range in.TeamStats { - if v56 > 0 { + for v75, v76 := range in.TeamStats { + if v75 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, v57) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs25(out, v76) } out.RawByte(']') } @@ -10370,11 +10684,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v58, v59 := range in.TeamStandings { - if v58 > 0 { + for v77, v78 := range in.TeamStandings { + if v77 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v59) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v78) } out.RawByte(']') } @@ -10562,9 +10876,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in *jlexer.Lexer, o out.DepthChartPlayers = (out.DepthChartPlayers)[:0] } for !in.IsDelim(']') { - var v60 structs.CollegeDepthChartPosition - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in, &v60) - out.DepthChartPlayers = append(out.DepthChartPlayers, v60) + var v79 structs.CollegeDepthChartPosition + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs30(in, &v79) + out.DepthChartPlayers = append(out.DepthChartPlayers, v79) in.WantComma() } in.Delim(']') @@ -10609,11 +10923,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v61, v62 := range in.DepthChartPlayers { - if v61 > 0 { + for v80, v81 := range in.DepthChartPlayers { + if v80 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out, v62) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs30(out, v81) } out.RawByte(']') } @@ -13954,9 +14268,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in *jlexer.Lexer, o out.Recruits = (out.Recruits)[:0] } for !in.IsDelim(']') { - var v63 structs.RecruitPlayerProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v63) - out.Recruits = append(out.Recruits, v63) + var v82 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v82) + out.Recruits = append(out.Recruits, v82) in.WantComma() } in.Delim(']') @@ -13977,9 +14291,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in *jlexer.Lexer, o out.Affinities = (out.Affinities)[:0] } for !in.IsDelim(']') { - var v64 structs.ProfileAffinity - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in, &v64) - out.Affinities = append(out.Affinities, v64) + var v83 structs.ProfileAffinity + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs32(in, &v83) + out.Affinities = append(out.Affinities, v83) in.WantComma() } in.Delim(']') @@ -14274,11 +14588,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v65, v66 := range in.Recruits { - if v65 > 0 { + for v84, v85 := range in.Recruits { + if v84 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v66) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v85) } out.RawByte(']') } @@ -14290,11 +14604,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v67, v68 := range in.Affinities { - if v67 > 0 { + for v86, v87 := range in.Affinities { + if v86 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out, v68) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs32(out, v87) } out.RawByte(']') } @@ -14866,9 +15180,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, o out.RecruitPlayerProfiles = (out.RecruitPlayerProfiles)[:0] } for !in.IsDelim(']') { - var v69 structs.RecruitPlayerProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v69) - out.RecruitPlayerProfiles = append(out.RecruitPlayerProfiles, v69) + var v88 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v88) + out.RecruitPlayerProfiles = append(out.RecruitPlayerProfiles, v88) in.WantComma() } in.Delim(']') @@ -14886,63 +15200,63 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, o case "PreviousTeam": out.PreviousTeam = string(in.String()) case "Height": - out.Height = int(in.Int()) + out.Height = int8(in.Int8()) case "Weight": - out.Weight = int(in.Int()) + out.Weight = int8(in.Int8()) case "Age": - out.Age = int(in.Int()) + out.Age = int8(in.Int8()) case "Stars": - out.Stars = int(in.Int()) + out.Stars = int8(in.Int8()) case "Overall": - out.Overall = int(in.Int()) + out.Overall = int8(in.Int8()) case "Stamina": - out.Stamina = int(in.Int()) + out.Stamina = int8(in.Int8()) case "Injury": - out.Injury = int(in.Int()) + out.Injury = int8(in.Int8()) case "FootballIQ": - out.FootballIQ = int(in.Int()) + out.FootballIQ = int8(in.Int8()) case "Speed": - out.Speed = int(in.Int()) + out.Speed = int8(in.Int8()) case "Carrying": - out.Carrying = int(in.Int()) + out.Carrying = int8(in.Int8()) case "Agility": - out.Agility = int(in.Int()) + out.Agility = int8(in.Int8()) case "Catching": - out.Catching = int(in.Int()) + out.Catching = int8(in.Int8()) case "RouteRunning": - out.RouteRunning = int(in.Int()) + out.RouteRunning = int8(in.Int8()) case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) + out.ZoneCoverage = int8(in.Int8()) case "ManCoverage": - out.ManCoverage = int(in.Int()) + out.ManCoverage = int8(in.Int8()) case "Strength": - out.Strength = int(in.Int()) + out.Strength = int8(in.Int8()) case "Tackle": - out.Tackle = int(in.Int()) + out.Tackle = int8(in.Int8()) case "PassBlock": - out.PassBlock = int(in.Int()) + out.PassBlock = int8(in.Int8()) case "RunBlock": - out.RunBlock = int(in.Int()) + out.RunBlock = int8(in.Int8()) case "PassRush": - out.PassRush = int(in.Int()) + out.PassRush = int8(in.Int8()) case "RunDefense": - out.RunDefense = int(in.Int()) + out.RunDefense = int8(in.Int8()) case "ThrowPower": - out.ThrowPower = int(in.Int()) + out.ThrowPower = int8(in.Int8()) case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) + out.ThrowAccuracy = int8(in.Int8()) case "KickAccuracy": - out.KickAccuracy = int(in.Int()) + out.KickAccuracy = int8(in.Int8()) case "KickPower": - out.KickPower = int(in.Int()) + out.KickPower = int8(in.Int8()) case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) + out.PuntAccuracy = int8(in.Int8()) case "PuntPower": - out.PuntPower = int(in.Int()) + out.PuntPower = int8(in.Int8()) case "Progression": - out.Progression = int(in.Int()) + out.Progression = int8(in.Int8()) case "Discipline": - out.Discipline = int(in.Int()) + out.Discipline = int8(in.Int8()) case "PotentialGrade": out.PotentialGrade = string(in.String()) case "FreeAgency": @@ -15144,11 +15458,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v70, v71 := range in.RecruitPlayerProfiles { - if v70 > 0 { + for v89, v90 := range in.RecruitPlayerProfiles { + if v89 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v71) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v90) } out.RawByte(']') } @@ -15186,147 +15500,147 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer { const prefix string = ",\"Height\":" out.RawString(prefix) - out.Int(int(in.Height)) + out.Int8(int8(in.Height)) } { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int(int(in.Weight)) + out.Int8(int8(in.Weight)) } { const prefix string = ",\"Age\":" out.RawString(prefix) - out.Int(int(in.Age)) + out.Int8(int8(in.Age)) } { const prefix string = ",\"Stars\":" out.RawString(prefix) - out.Int(int(in.Stars)) + out.Int8(int8(in.Stars)) } { const prefix string = ",\"Overall\":" out.RawString(prefix) - out.Int(int(in.Overall)) + out.Int8(int8(in.Overall)) } { const prefix string = ",\"Stamina\":" out.RawString(prefix) - out.Int(int(in.Stamina)) + out.Int8(int8(in.Stamina)) } { const prefix string = ",\"Injury\":" out.RawString(prefix) - out.Int(int(in.Injury)) + out.Int8(int8(in.Injury)) } { const prefix string = ",\"FootballIQ\":" out.RawString(prefix) - out.Int(int(in.FootballIQ)) + out.Int8(int8(in.FootballIQ)) } { const prefix string = ",\"Speed\":" out.RawString(prefix) - out.Int(int(in.Speed)) + out.Int8(int8(in.Speed)) } { const prefix string = ",\"Carrying\":" out.RawString(prefix) - out.Int(int(in.Carrying)) + out.Int8(int8(in.Carrying)) } { const prefix string = ",\"Agility\":" out.RawString(prefix) - out.Int(int(in.Agility)) + out.Int8(int8(in.Agility)) } { const prefix string = ",\"Catching\":" out.RawString(prefix) - out.Int(int(in.Catching)) + out.Int8(int8(in.Catching)) } { const prefix string = ",\"RouteRunning\":" out.RawString(prefix) - out.Int(int(in.RouteRunning)) + out.Int8(int8(in.RouteRunning)) } { const prefix string = ",\"ZoneCoverage\":" out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) + out.Int8(int8(in.ZoneCoverage)) } { const prefix string = ",\"ManCoverage\":" out.RawString(prefix) - out.Int(int(in.ManCoverage)) + out.Int8(int8(in.ManCoverage)) } { const prefix string = ",\"Strength\":" out.RawString(prefix) - out.Int(int(in.Strength)) + out.Int8(int8(in.Strength)) } { const prefix string = ",\"Tackle\":" out.RawString(prefix) - out.Int(int(in.Tackle)) + out.Int8(int8(in.Tackle)) } { const prefix string = ",\"PassBlock\":" out.RawString(prefix) - out.Int(int(in.PassBlock)) + out.Int8(int8(in.PassBlock)) } { const prefix string = ",\"RunBlock\":" out.RawString(prefix) - out.Int(int(in.RunBlock)) + out.Int8(int8(in.RunBlock)) } { const prefix string = ",\"PassRush\":" out.RawString(prefix) - out.Int(int(in.PassRush)) + out.Int8(int8(in.PassRush)) } { const prefix string = ",\"RunDefense\":" out.RawString(prefix) - out.Int(int(in.RunDefense)) + out.Int8(int8(in.RunDefense)) } { const prefix string = ",\"ThrowPower\":" out.RawString(prefix) - out.Int(int(in.ThrowPower)) + out.Int8(int8(in.ThrowPower)) } { const prefix string = ",\"ThrowAccuracy\":" out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) + out.Int8(int8(in.ThrowAccuracy)) } { const prefix string = ",\"KickAccuracy\":" out.RawString(prefix) - out.Int(int(in.KickAccuracy)) + out.Int8(int8(in.KickAccuracy)) } { const prefix string = ",\"KickPower\":" out.RawString(prefix) - out.Int(int(in.KickPower)) + out.Int8(int8(in.KickPower)) } { const prefix string = ",\"PuntAccuracy\":" out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) + out.Int8(int8(in.PuntAccuracy)) } { const prefix string = ",\"PuntPower\":" out.RawString(prefix) - out.Int(int(in.PuntPower)) + out.Int8(int8(in.PuntPower)) } { const prefix string = ",\"Progression\":" out.RawString(prefix) - out.Int(int(in.Progression)) + out.Int8(int8(in.Progression)) } { const prefix string = ",\"Discipline\":" out.RawString(prefix) - out.Int(int(in.Discipline)) + out.Int8(int8(in.Discipline)) } { const prefix string = ",\"PotentialGrade\":" @@ -15899,7 +16213,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs23(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, out *BootstrapDataTeamRoster) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, out *BootstrapDataTeamRoster) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -15927,9 +16241,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v72 structs.NFLContract - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &v72) - (out.ContractMap)[key] = v72 + var v91 structs.NFLContract + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &v91) + (out.ContractMap)[key] = v91 in.WantComma() } in.Delim('}') @@ -15943,9 +16257,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v73 structs.NFLExtensionOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v73) - (out.ExtensionMap)[key] = v73 + var v92 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in, &v92) + (out.ExtensionMap)[key] = v92 in.WantComma() } in.Delim('}') @@ -15966,9 +16280,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o out.CollegePromises = (out.CollegePromises)[:0] } for !in.IsDelim(']') { - var v74 structs.CollegePromise - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v74) - out.CollegePromises = append(out.CollegePromises, v74) + var v93 structs.CollegePromise + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v93) + out.CollegePromises = append(out.CollegePromises, v93) in.WantComma() } in.Delim(']') @@ -15982,30 +16296,30 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v75 []structs.NFLTradeProposal + var v94 []structs.NFLTradeProposal if in.IsNull() { in.Skip() - v75 = nil + v94 = nil } else { in.Delim('[') - if v75 == nil { + if v94 == nil { if !in.IsDelim(']') { - v75 = make([]structs.NFLTradeProposal, 0, 0) + v94 = make([]structs.NFLTradeProposal, 0, 0) } else { - v75 = []structs.NFLTradeProposal{} + v94 = []structs.NFLTradeProposal{} } } else { - v75 = (v75)[:0] + v94 = (v94)[:0] } for !in.IsDelim(']') { - var v76 structs.NFLTradeProposal - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v76) - v75 = append(v75, v76) + var v95 structs.NFLTradeProposal + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in, &v95) + v94 = append(v94, v95) in.WantComma() } in.Delim(']') } - (out.TradeProposals)[key] = v75 + (out.TradeProposals)[key] = v94 in.WantComma() } in.Delim('}') @@ -16019,9 +16333,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v77 structs.NFLTradePreferences - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &v77) - (out.TradePreferences)[key] = v77 + var v96 structs.NFLTradePreferences + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in, &v96) + (out.TradePreferences)[key] = v96 in.WantComma() } in.Delim('}') @@ -16042,9 +16356,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o out.NFLDraftPicks = (out.NFLDraftPicks)[:0] } for !in.IsDelim(']') { - var v78 structs.NFLDraftPick - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v78) - out.NFLDraftPicks = append(out.NFLDraftPicks, v78) + var v97 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v97) + out.NFLDraftPicks = append(out.NFLDraftPicks, v97) in.WantComma() } in.Delim(']') @@ -16059,7 +16373,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer, in BootstrapDataTeamRoster) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer, in BootstrapDataTeamRoster) { out.RawByte('{') first := true _ = first @@ -16070,16 +16384,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v79First := true - for v79Name, v79Value := range in.ContractMap { - if v79First { - v79First = false + v98First := true + for v98Name, v98Value := range in.ContractMap { + if v98First { + v98First = false } else { out.RawByte(',') } - out.UintStr(uint(v79Name)) + out.UintStr(uint(v98Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v79Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs9(out, v98Value) } out.RawByte('}') } @@ -16091,16 +16405,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v80First := true - for v80Name, v80Value := range in.ExtensionMap { - if v80First { - v80First = false + v99First := true + for v99Name, v99Value := range in.ExtensionMap { + if v99First { + v99First = false } else { out.RawByte(',') } - out.UintStr(uint(v80Name)) + out.UintStr(uint(v99Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v80Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out, v99Value) } out.RawByte('}') } @@ -16112,11 +16426,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v81, v82 := range in.CollegePromises { - if v81 > 0 { + for v100, v101 := range in.CollegePromises { + if v100 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v82) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v101) } out.RawByte(']') } @@ -16128,24 +16442,24 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v83First := true - for v83Name, v83Value := range in.TradeProposals { - if v83First { - v83First = false + v102First := true + for v102Name, v102Value := range in.TradeProposals { + if v102First { + v102First = false } else { out.RawByte(',') } - out.UintStr(uint(v83Name)) + out.UintStr(uint(v102Name)) out.RawByte(':') - if v83Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if v102Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v84, v85 := range v83Value { - if v84 > 0 { + for v103, v104 := range v102Value { + if v103 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v85) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out, v104) } out.RawByte(']') } @@ -16160,16 +16474,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v86First := true - for v86Name, v86Value := range in.TradePreferences { - if v86First { - v86First = false + v105First := true + for v105Name, v105Value := range in.TradePreferences { + if v105First { + v105First = false } else { out.RawByte(',') } - out.UintStr(uint(v86Name)) + out.UintStr(uint(v105Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, v86Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs36(out, v105Value) } out.RawByte('}') } @@ -16181,11 +16495,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v87, v88 := range in.NFLDraftPicks { - if v87 > 0 { + for v106, v107 := range in.NFLDraftPicks { + if v106 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v88) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v107) } out.RawByte(']') } @@ -16196,25 +16510,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v BootstrapDataTeamRoster) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataTeamRoster) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers2(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataTeamRoster) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataTeamRoster) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers2(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(l, v) } func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs36(in *jlexer.Lexer, out *structs.NFLTradePreferences) { isTopLevel := in.IsStart() @@ -16605,9 +16919,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in *jlexer.Lexer, o out.NFLTeamTradeOptions = (out.NFLTeamTradeOptions)[:0] } for !in.IsDelim(']') { - var v89 structs.NFLTradeOption - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v89) - out.NFLTeamTradeOptions = append(out.NFLTeamTradeOptions, v89) + var v108 structs.NFLTradeOption + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v108) + out.NFLTeamTradeOptions = append(out.NFLTeamTradeOptions, v108) in.WantComma() } in.Delim(']') @@ -16628,9 +16942,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs35(in *jlexer.Lexer, o out.RecepientTeamTradeOptions = (out.RecepientTeamTradeOptions)[:0] } for !in.IsDelim(']') { - var v90 structs.NFLTradeOption - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v90) - out.RecepientTeamTradeOptions = append(out.RecepientTeamTradeOptions, v90) + var v109 structs.NFLTradeOption + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs37(in, &v109) + out.RecepientTeamTradeOptions = append(out.RecepientTeamTradeOptions, v109) in.WantComma() } in.Delim(']') @@ -16713,11 +17027,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v91, v92 := range in.NFLTeamTradeOptions { - if v91 > 0 { + for v110, v111 := range in.NFLTeamTradeOptions { + if v110 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v92) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v111) } out.RawByte(']') } @@ -16729,11 +17043,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs35(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v93, v94 := range in.RecepientTeamTradeOptions { - if v93 > 0 { + for v112, v113 := range in.RecepientTeamTradeOptions { + if v112 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v94) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs37(out, v113) } out.RawByte(']') } @@ -17019,7 +17333,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, out *BootstrapDataStats) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, out *BootstrapDataStats) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -17039,7 +17353,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o } switch key { case "PostSeasonAwards": - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in, &out.PostSeasonAwards) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &out.PostSeasonAwards) case "HistoricCollegePlayers": if in.IsNull() { in.Skip() @@ -17056,9 +17370,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.HistoricCollegePlayers = (out.HistoricCollegePlayers)[:0] } for !in.IsDelim(']') { - var v95 structs.HistoricCollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &v95) - out.HistoricCollegePlayers = append(out.HistoricCollegePlayers, v95) + var v114 structs.HistoricCollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &v114) + out.HistoricCollegePlayers = append(out.HistoricCollegePlayers, v114) in.WantComma() } in.Delim(']') @@ -17079,9 +17393,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o out.RetiredPlayers = (out.RetiredPlayers)[:0] } for !in.IsDelim(']') { - var v96 structs.NFLRetiredPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v96) - out.RetiredPlayers = append(out.RetiredPlayers, v96) + var v115 structs.NFLRetiredPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v115) + out.RetiredPlayers = append(out.RetiredPlayers, v115) in.WantComma() } in.Delim(']') @@ -17096,14 +17410,14 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer, in BootstrapDataStats) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer, in BootstrapDataStats) { out.RawByte('{') first := true _ = first { const prefix string = ",\"PostSeasonAwards\":" out.RawString(prefix[1:]) - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out, in.PostSeasonAwards) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, in.PostSeasonAwards) } { const prefix string = ",\"HistoricCollegePlayers\":" @@ -17112,11 +17426,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v97, v98 := range in.HistoricCollegePlayers { - if v97 > 0 { + for v116, v117 := range in.HistoricCollegePlayers { + if v116 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, v98) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, v117) } out.RawByte(']') } @@ -17128,11 +17442,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v99, v100 := range in.RetiredPlayers { - if v99 > 0 { + for v118, v119 := range in.RetiredPlayers { + if v118 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v100) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v119) } out.RawByte(']') } @@ -17143,25 +17457,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v BootstrapDataStats) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataStats) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers3(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataStats) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataStats) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers3(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(l, v) } func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, out *structs.NFLRetiredPlayer) { isTopLevel := in.IsStart() @@ -17262,15 +17576,15 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, o out.Stats = (out.Stats)[:0] } for !in.IsDelim(']') { - var v101 structs.NFLPlayerStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs18(in, &v101) - out.Stats = append(out.Stats, v101) + var v120 structs.NFLPlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, &v120) + out.Stats = append(out.Stats, v120) in.WantComma() } in.Delim(']') } case "SeasonStats": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &out.SeasonStats) + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &out.SeasonStats) case "Contract": easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs9(in, &out.Contract) case "Offers": @@ -17289,9 +17603,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, o out.Offers = (out.Offers)[:0] } for !in.IsDelim(']') { - var v102 structs.FreeAgencyOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v102) - out.Offers = append(out.Offers, v102) + var v121 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v121) + out.Offers = append(out.Offers, v121) in.WantComma() } in.Delim(']') @@ -17312,9 +17626,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, o out.WaiverOffers = (out.WaiverOffers)[:0] } for !in.IsDelim(']') { - var v103 structs.NFLWaiverOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v103) - out.WaiverOffers = append(out.WaiverOffers, v103) + var v122 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v122) + out.WaiverOffers = append(out.WaiverOffers, v122) in.WantComma() } in.Delim(']') @@ -17335,9 +17649,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, o out.Extensions = (out.Extensions)[:0] } for !in.IsDelim(']') { - var v104 structs.NFLExtensionOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs22(in, &v104) - out.Extensions = append(out.Extensions, v104) + var v123 structs.NFLExtensionOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs12(in, &v123) + out.Extensions = append(out.Extensions, v123) in.WantComma() } in.Delim(']') @@ -17355,63 +17669,63 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, o case "PreviousTeam": out.PreviousTeam = string(in.String()) case "Height": - out.Height = int(in.Int()) + out.Height = int8(in.Int8()) case "Weight": - out.Weight = int(in.Int()) + out.Weight = int8(in.Int8()) case "Age": - out.Age = int(in.Int()) + out.Age = int8(in.Int8()) case "Stars": - out.Stars = int(in.Int()) + out.Stars = int8(in.Int8()) case "Overall": - out.Overall = int(in.Int()) + out.Overall = int8(in.Int8()) case "Stamina": - out.Stamina = int(in.Int()) + out.Stamina = int8(in.Int8()) case "Injury": - out.Injury = int(in.Int()) + out.Injury = int8(in.Int8()) case "FootballIQ": - out.FootballIQ = int(in.Int()) + out.FootballIQ = int8(in.Int8()) case "Speed": - out.Speed = int(in.Int()) + out.Speed = int8(in.Int8()) case "Carrying": - out.Carrying = int(in.Int()) + out.Carrying = int8(in.Int8()) case "Agility": - out.Agility = int(in.Int()) + out.Agility = int8(in.Int8()) case "Catching": - out.Catching = int(in.Int()) + out.Catching = int8(in.Int8()) case "RouteRunning": - out.RouteRunning = int(in.Int()) + out.RouteRunning = int8(in.Int8()) case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) + out.ZoneCoverage = int8(in.Int8()) case "ManCoverage": - out.ManCoverage = int(in.Int()) + out.ManCoverage = int8(in.Int8()) case "Strength": - out.Strength = int(in.Int()) + out.Strength = int8(in.Int8()) case "Tackle": - out.Tackle = int(in.Int()) + out.Tackle = int8(in.Int8()) case "PassBlock": - out.PassBlock = int(in.Int()) + out.PassBlock = int8(in.Int8()) case "RunBlock": - out.RunBlock = int(in.Int()) + out.RunBlock = int8(in.Int8()) case "PassRush": - out.PassRush = int(in.Int()) + out.PassRush = int8(in.Int8()) case "RunDefense": - out.RunDefense = int(in.Int()) + out.RunDefense = int8(in.Int8()) case "ThrowPower": - out.ThrowPower = int(in.Int()) + out.ThrowPower = int8(in.Int8()) case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) + out.ThrowAccuracy = int8(in.Int8()) case "KickAccuracy": - out.KickAccuracy = int(in.Int()) + out.KickAccuracy = int8(in.Int8()) case "KickPower": - out.KickPower = int(in.Int()) + out.KickPower = int8(in.Int8()) case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) + out.PuntAccuracy = int8(in.Int8()) case "PuntPower": - out.PuntPower = int(in.Int()) + out.PuntPower = int8(in.Int8()) case "Progression": - out.Progression = int(in.Int()) + out.Progression = int8(in.Int8()) case "Discipline": - out.Discipline = int(in.Int()) + out.Discipline = int8(in.Int8()) case "PotentialGrade": out.PotentialGrade = string(in.String()) case "FreeAgency": @@ -17683,11 +17997,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v105, v106 := range in.Stats { - if v105 > 0 { + for v124, v125 := range in.Stats { + if v124 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs18(out, v106) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, v125) } out.RawByte(']') } @@ -17695,7 +18009,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer { const prefix string = ",\"SeasonStats\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, in.SeasonStats) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, in.SeasonStats) } { const prefix string = ",\"Contract\":" @@ -17709,11 +18023,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v107, v108 := range in.Offers { - if v107 > 0 { + for v126, v127 := range in.Offers { + if v126 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v108) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v127) } out.RawByte(']') } @@ -17725,11 +18039,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v109, v110 := range in.WaiverOffers { - if v109 > 0 { + for v128, v129 := range in.WaiverOffers { + if v128 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v110) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v129) } out.RawByte(']') } @@ -17741,11 +18055,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v111, v112 := range in.Extensions { - if v111 > 0 { + for v130, v131 := range in.Extensions { + if v130 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs22(out, v112) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs12(out, v131) } out.RawByte(']') } @@ -17783,147 +18097,147 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer { const prefix string = ",\"Height\":" out.RawString(prefix) - out.Int(int(in.Height)) + out.Int8(int8(in.Height)) } { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int(int(in.Weight)) + out.Int8(int8(in.Weight)) } { const prefix string = ",\"Age\":" out.RawString(prefix) - out.Int(int(in.Age)) + out.Int8(int8(in.Age)) } { const prefix string = ",\"Stars\":" out.RawString(prefix) - out.Int(int(in.Stars)) + out.Int8(int8(in.Stars)) } { const prefix string = ",\"Overall\":" out.RawString(prefix) - out.Int(int(in.Overall)) + out.Int8(int8(in.Overall)) } { const prefix string = ",\"Stamina\":" out.RawString(prefix) - out.Int(int(in.Stamina)) + out.Int8(int8(in.Stamina)) } { const prefix string = ",\"Injury\":" out.RawString(prefix) - out.Int(int(in.Injury)) + out.Int8(int8(in.Injury)) } { const prefix string = ",\"FootballIQ\":" out.RawString(prefix) - out.Int(int(in.FootballIQ)) + out.Int8(int8(in.FootballIQ)) } { const prefix string = ",\"Speed\":" out.RawString(prefix) - out.Int(int(in.Speed)) + out.Int8(int8(in.Speed)) } { const prefix string = ",\"Carrying\":" out.RawString(prefix) - out.Int(int(in.Carrying)) + out.Int8(int8(in.Carrying)) } { const prefix string = ",\"Agility\":" out.RawString(prefix) - out.Int(int(in.Agility)) + out.Int8(int8(in.Agility)) } { const prefix string = ",\"Catching\":" out.RawString(prefix) - out.Int(int(in.Catching)) + out.Int8(int8(in.Catching)) } { const prefix string = ",\"RouteRunning\":" out.RawString(prefix) - out.Int(int(in.RouteRunning)) + out.Int8(int8(in.RouteRunning)) } { const prefix string = ",\"ZoneCoverage\":" out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) + out.Int8(int8(in.ZoneCoverage)) } { const prefix string = ",\"ManCoverage\":" out.RawString(prefix) - out.Int(int(in.ManCoverage)) + out.Int8(int8(in.ManCoverage)) } { const prefix string = ",\"Strength\":" out.RawString(prefix) - out.Int(int(in.Strength)) + out.Int8(int8(in.Strength)) } { const prefix string = ",\"Tackle\":" out.RawString(prefix) - out.Int(int(in.Tackle)) + out.Int8(int8(in.Tackle)) } { const prefix string = ",\"PassBlock\":" out.RawString(prefix) - out.Int(int(in.PassBlock)) + out.Int8(int8(in.PassBlock)) } { const prefix string = ",\"RunBlock\":" out.RawString(prefix) - out.Int(int(in.RunBlock)) + out.Int8(int8(in.RunBlock)) } { const prefix string = ",\"PassRush\":" out.RawString(prefix) - out.Int(int(in.PassRush)) + out.Int8(int8(in.PassRush)) } { const prefix string = ",\"RunDefense\":" out.RawString(prefix) - out.Int(int(in.RunDefense)) + out.Int8(int8(in.RunDefense)) } { const prefix string = ",\"ThrowPower\":" out.RawString(prefix) - out.Int(int(in.ThrowPower)) + out.Int8(int8(in.ThrowPower)) } { const prefix string = ",\"ThrowAccuracy\":" out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) + out.Int8(int8(in.ThrowAccuracy)) } { const prefix string = ",\"KickAccuracy\":" out.RawString(prefix) - out.Int(int(in.KickAccuracy)) + out.Int8(int8(in.KickAccuracy)) } { const prefix string = ",\"KickPower\":" out.RawString(prefix) - out.Int(int(in.KickPower)) + out.Int8(int8(in.KickPower)) } { const prefix string = ",\"PuntAccuracy\":" out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) + out.Int8(int8(in.PuntAccuracy)) } { const prefix string = ",\"PuntPower\":" out.RawString(prefix) - out.Int(int(in.PuntPower)) + out.Int8(int8(in.PuntPower)) } { const prefix string = ",\"Progression\":" out.RawString(prefix) - out.Int(int(in.Progression)) + out.Int8(int8(in.Progression)) } { const prefix string = ",\"Discipline\":" out.RawString(prefix) - out.Int(int(in.Discipline)) + out.Int8(int8(in.Discipline)) } { const prefix string = ",\"PotentialGrade\":" @@ -18180,9 +18494,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, o out.Stats = (out.Stats)[:0] } for !in.IsDelim(']') { - var v113 structs.CollegePlayerStats - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in, &v113) - out.Stats = append(out.Stats, v113) + var v132 structs.CollegePlayerStats + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs5(in, &v132) + out.Stats = append(out.Stats, v132) in.WantComma() } in.Delim(']') @@ -18208,63 +18522,63 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, o case "PreviousTeam": out.PreviousTeam = string(in.String()) case "Height": - out.Height = int(in.Int()) + out.Height = int8(in.Int8()) case "Weight": - out.Weight = int(in.Int()) + out.Weight = int8(in.Int8()) case "Age": - out.Age = int(in.Int()) + out.Age = int8(in.Int8()) case "Stars": - out.Stars = int(in.Int()) + out.Stars = int8(in.Int8()) case "Overall": - out.Overall = int(in.Int()) + out.Overall = int8(in.Int8()) case "Stamina": - out.Stamina = int(in.Int()) + out.Stamina = int8(in.Int8()) case "Injury": - out.Injury = int(in.Int()) + out.Injury = int8(in.Int8()) case "FootballIQ": - out.FootballIQ = int(in.Int()) + out.FootballIQ = int8(in.Int8()) case "Speed": - out.Speed = int(in.Int()) + out.Speed = int8(in.Int8()) case "Carrying": - out.Carrying = int(in.Int()) + out.Carrying = int8(in.Int8()) case "Agility": - out.Agility = int(in.Int()) + out.Agility = int8(in.Int8()) case "Catching": - out.Catching = int(in.Int()) + out.Catching = int8(in.Int8()) case "RouteRunning": - out.RouteRunning = int(in.Int()) + out.RouteRunning = int8(in.Int8()) case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) + out.ZoneCoverage = int8(in.Int8()) case "ManCoverage": - out.ManCoverage = int(in.Int()) + out.ManCoverage = int8(in.Int8()) case "Strength": - out.Strength = int(in.Int()) + out.Strength = int8(in.Int8()) case "Tackle": - out.Tackle = int(in.Int()) + out.Tackle = int8(in.Int8()) case "PassBlock": - out.PassBlock = int(in.Int()) + out.PassBlock = int8(in.Int8()) case "RunBlock": - out.RunBlock = int(in.Int()) + out.RunBlock = int8(in.Int8()) case "PassRush": - out.PassRush = int(in.Int()) + out.PassRush = int8(in.Int8()) case "RunDefense": - out.RunDefense = int(in.Int()) + out.RunDefense = int8(in.Int8()) case "ThrowPower": - out.ThrowPower = int(in.Int()) + out.ThrowPower = int8(in.Int8()) case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) + out.ThrowAccuracy = int8(in.Int8()) case "KickAccuracy": - out.KickAccuracy = int(in.Int()) + out.KickAccuracy = int8(in.Int8()) case "KickPower": - out.KickPower = int(in.Int()) + out.KickPower = int8(in.Int8()) case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) + out.PuntAccuracy = int8(in.Int8()) case "PuntPower": - out.PuntPower = int(in.Int()) + out.PuntPower = int8(in.Int8()) case "Progression": - out.Progression = int(in.Int()) + out.Progression = int8(in.Int8()) case "Discipline": - out.Discipline = int(in.Int()) + out.Discipline = int8(in.Int8()) case "PotentialGrade": out.PotentialGrade = string(in.String()) case "FreeAgency": @@ -18436,11 +18750,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v114, v115 := range in.Stats { - if v114 > 0 { + for v133, v134 := range in.Stats { + if v133 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out, v115) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs5(out, v134) } out.RawByte(']') } @@ -18498,147 +18812,147 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer { const prefix string = ",\"Height\":" out.RawString(prefix) - out.Int(int(in.Height)) + out.Int8(int8(in.Height)) } { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int(int(in.Weight)) + out.Int8(int8(in.Weight)) } { const prefix string = ",\"Age\":" out.RawString(prefix) - out.Int(int(in.Age)) + out.Int8(int8(in.Age)) } { const prefix string = ",\"Stars\":" out.RawString(prefix) - out.Int(int(in.Stars)) + out.Int8(int8(in.Stars)) } { const prefix string = ",\"Overall\":" out.RawString(prefix) - out.Int(int(in.Overall)) + out.Int8(int8(in.Overall)) } { const prefix string = ",\"Stamina\":" out.RawString(prefix) - out.Int(int(in.Stamina)) + out.Int8(int8(in.Stamina)) } { const prefix string = ",\"Injury\":" out.RawString(prefix) - out.Int(int(in.Injury)) + out.Int8(int8(in.Injury)) } { const prefix string = ",\"FootballIQ\":" out.RawString(prefix) - out.Int(int(in.FootballIQ)) + out.Int8(int8(in.FootballIQ)) } { const prefix string = ",\"Speed\":" out.RawString(prefix) - out.Int(int(in.Speed)) + out.Int8(int8(in.Speed)) } { const prefix string = ",\"Carrying\":" out.RawString(prefix) - out.Int(int(in.Carrying)) + out.Int8(int8(in.Carrying)) } { const prefix string = ",\"Agility\":" out.RawString(prefix) - out.Int(int(in.Agility)) + out.Int8(int8(in.Agility)) } { const prefix string = ",\"Catching\":" out.RawString(prefix) - out.Int(int(in.Catching)) + out.Int8(int8(in.Catching)) } { const prefix string = ",\"RouteRunning\":" out.RawString(prefix) - out.Int(int(in.RouteRunning)) + out.Int8(int8(in.RouteRunning)) } { const prefix string = ",\"ZoneCoverage\":" out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) + out.Int8(int8(in.ZoneCoverage)) } { const prefix string = ",\"ManCoverage\":" out.RawString(prefix) - out.Int(int(in.ManCoverage)) + out.Int8(int8(in.ManCoverage)) } { const prefix string = ",\"Strength\":" out.RawString(prefix) - out.Int(int(in.Strength)) + out.Int8(int8(in.Strength)) } { const prefix string = ",\"Tackle\":" out.RawString(prefix) - out.Int(int(in.Tackle)) + out.Int8(int8(in.Tackle)) } { const prefix string = ",\"PassBlock\":" out.RawString(prefix) - out.Int(int(in.PassBlock)) + out.Int8(int8(in.PassBlock)) } { const prefix string = ",\"RunBlock\":" out.RawString(prefix) - out.Int(int(in.RunBlock)) + out.Int8(int8(in.RunBlock)) } { const prefix string = ",\"PassRush\":" out.RawString(prefix) - out.Int(int(in.PassRush)) + out.Int8(int8(in.PassRush)) } { const prefix string = ",\"RunDefense\":" out.RawString(prefix) - out.Int(int(in.RunDefense)) + out.Int8(int8(in.RunDefense)) } { const prefix string = ",\"ThrowPower\":" out.RawString(prefix) - out.Int(int(in.ThrowPower)) + out.Int8(int8(in.ThrowPower)) } { const prefix string = ",\"ThrowAccuracy\":" out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) + out.Int8(int8(in.ThrowAccuracy)) } { const prefix string = ",\"KickAccuracy\":" out.RawString(prefix) - out.Int(int(in.KickAccuracy)) + out.Int8(int8(in.KickAccuracy)) } { const prefix string = ",\"KickPower\":" out.RawString(prefix) - out.Int(int(in.KickPower)) + out.Int8(int8(in.KickPower)) } { const prefix string = ",\"PuntAccuracy\":" out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) + out.Int8(int8(in.PuntAccuracy)) } { const prefix string = ",\"PuntPower\":" out.RawString(prefix) - out.Int(int(in.PuntPower)) + out.Int8(int8(in.PuntPower)) } { const prefix string = ",\"Progression\":" out.RawString(prefix) - out.Int(int(in.Progression)) + out.Int8(int8(in.Progression)) } { const prefix string = ",\"Discipline\":" out.RawString(prefix) - out.Int(int(in.Discipline)) + out.Int8(int8(in.Discipline)) } { const prefix string = ",\"PotentialGrade\":" @@ -18836,7 +19150,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, out *AwardsList) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in *jlexer.Lexer, out *AwardsList) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -18871,9 +19185,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.HeismanList = (out.HeismanList)[:0] } for !in.IsDelim(']') { - var v116 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v116) - out.HeismanList = append(out.HeismanList, v116) + var v135 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v135) + out.HeismanList = append(out.HeismanList, v135) in.WantComma() } in.Delim(']') @@ -18894,9 +19208,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.CoachOfTheYearList = (out.CoachOfTheYearList)[:0] } for !in.IsDelim(']') { - var v117 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v117) - out.CoachOfTheYearList = append(out.CoachOfTheYearList, v117) + var v136 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v136) + out.CoachOfTheYearList = append(out.CoachOfTheYearList, v136) in.WantComma() } in.Delim(']') @@ -18917,9 +19231,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.DaveyOBrienList = (out.DaveyOBrienList)[:0] } for !in.IsDelim(']') { - var v118 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v118) - out.DaveyOBrienList = append(out.DaveyOBrienList, v118) + var v137 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v137) + out.DaveyOBrienList = append(out.DaveyOBrienList, v137) in.WantComma() } in.Delim(']') @@ -18940,9 +19254,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.DoakWalkerList = (out.DoakWalkerList)[:0] } for !in.IsDelim(']') { - var v119 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v119) - out.DoakWalkerList = append(out.DoakWalkerList, v119) + var v138 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v138) + out.DoakWalkerList = append(out.DoakWalkerList, v138) in.WantComma() } in.Delim(']') @@ -18963,9 +19277,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.BiletnikoffList = (out.BiletnikoffList)[:0] } for !in.IsDelim(']') { - var v120 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v120) - out.BiletnikoffList = append(out.BiletnikoffList, v120) + var v139 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v139) + out.BiletnikoffList = append(out.BiletnikoffList, v139) in.WantComma() } in.Delim(']') @@ -18986,9 +19300,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.MackeyList = (out.MackeyList)[:0] } for !in.IsDelim(']') { - var v121 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v121) - out.MackeyList = append(out.MackeyList, v121) + var v140 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v140) + out.MackeyList = append(out.MackeyList, v140) in.WantComma() } in.Delim(']') @@ -19009,9 +19323,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.RimingtonList = (out.RimingtonList)[:0] } for !in.IsDelim(']') { - var v122 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v122) - out.RimingtonList = append(out.RimingtonList, v122) + var v141 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v141) + out.RimingtonList = append(out.RimingtonList, v141) in.WantComma() } in.Delim(']') @@ -19032,9 +19346,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.OutlandList = (out.OutlandList)[:0] } for !in.IsDelim(']') { - var v123 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v123) - out.OutlandList = append(out.OutlandList, v123) + var v142 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v142) + out.OutlandList = append(out.OutlandList, v142) in.WantComma() } in.Delim(']') @@ -19055,9 +19369,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.JoeMooreList = (out.JoeMooreList)[:0] } for !in.IsDelim(']') { - var v124 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v124) - out.JoeMooreList = append(out.JoeMooreList, v124) + var v143 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v143) + out.JoeMooreList = append(out.JoeMooreList, v143) in.WantComma() } in.Delim(']') @@ -19078,9 +19392,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.NagurskiList = (out.NagurskiList)[:0] } for !in.IsDelim(']') { - var v125 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v125) - out.NagurskiList = append(out.NagurskiList, v125) + var v144 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v144) + out.NagurskiList = append(out.NagurskiList, v144) in.WantComma() } in.Delim(']') @@ -19101,9 +19415,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.HendricksList = (out.HendricksList)[:0] } for !in.IsDelim(']') { - var v126 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v126) - out.HendricksList = append(out.HendricksList, v126) + var v145 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v145) + out.HendricksList = append(out.HendricksList, v145) in.WantComma() } in.Delim(']') @@ -19124,9 +19438,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.ThorpeList = (out.ThorpeList)[:0] } for !in.IsDelim(']') { - var v127 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v127) - out.ThorpeList = append(out.ThorpeList, v127) + var v146 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v146) + out.ThorpeList = append(out.ThorpeList, v146) in.WantComma() } in.Delim(']') @@ -19147,9 +19461,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.ButkusList = (out.ButkusList)[:0] } for !in.IsDelim(']') { - var v128 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v128) - out.ButkusList = append(out.ButkusList, v128) + var v147 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v147) + out.ButkusList = append(out.ButkusList, v147) in.WantComma() } in.Delim(']') @@ -19170,9 +19484,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.LouGrozaList = (out.LouGrozaList)[:0] } for !in.IsDelim(']') { - var v129 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v129) - out.LouGrozaList = append(out.LouGrozaList, v129) + var v148 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v148) + out.LouGrozaList = append(out.LouGrozaList, v148) in.WantComma() } in.Delim(']') @@ -19193,9 +19507,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.RayGuyList = (out.RayGuyList)[:0] } for !in.IsDelim(']') { - var v130 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v130) - out.RayGuyList = append(out.RayGuyList, v130) + var v149 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v149) + out.RayGuyList = append(out.RayGuyList, v149) in.WantComma() } in.Delim(']') @@ -19216,9 +19530,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o out.JetAward = (out.JetAward)[:0] } for !in.IsDelim(']') { - var v131 AwardsModel - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in, &v131) - out.JetAward = append(out.JetAward, v131) + var v150 AwardsModel + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in, &v150) + out.JetAward = append(out.JetAward, v150) in.WantComma() } in.Delim(']') @@ -19233,7 +19547,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers4(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer, in AwardsList) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out *jwriter.Writer, in AwardsList) { out.RawByte('{') first := true _ = first @@ -19244,11 +19558,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v132, v133 := range in.HeismanList { - if v132 > 0 { + for v151, v152 := range in.HeismanList { + if v151 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v133) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v152) } out.RawByte(']') } @@ -19260,11 +19574,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v134, v135 := range in.CoachOfTheYearList { - if v134 > 0 { + for v153, v154 := range in.CoachOfTheYearList { + if v153 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v135) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v154) } out.RawByte(']') } @@ -19276,11 +19590,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v136, v137 := range in.DaveyOBrienList { - if v136 > 0 { + for v155, v156 := range in.DaveyOBrienList { + if v155 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v137) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v156) } out.RawByte(']') } @@ -19292,11 +19606,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v138, v139 := range in.DoakWalkerList { - if v138 > 0 { + for v157, v158 := range in.DoakWalkerList { + if v157 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v139) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v158) } out.RawByte(']') } @@ -19308,11 +19622,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v140, v141 := range in.BiletnikoffList { - if v140 > 0 { + for v159, v160 := range in.BiletnikoffList { + if v159 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v141) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v160) } out.RawByte(']') } @@ -19324,11 +19638,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v142, v143 := range in.MackeyList { - if v142 > 0 { + for v161, v162 := range in.MackeyList { + if v161 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v143) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v162) } out.RawByte(']') } @@ -19340,11 +19654,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v144, v145 := range in.RimingtonList { - if v144 > 0 { + for v163, v164 := range in.RimingtonList { + if v163 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v145) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v164) } out.RawByte(']') } @@ -19356,11 +19670,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v146, v147 := range in.OutlandList { - if v146 > 0 { + for v165, v166 := range in.OutlandList { + if v165 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v147) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v166) } out.RawByte(']') } @@ -19372,11 +19686,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v148, v149 := range in.JoeMooreList { - if v148 > 0 { + for v167, v168 := range in.JoeMooreList { + if v167 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v149) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v168) } out.RawByte(']') } @@ -19388,11 +19702,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v150, v151 := range in.NagurskiList { - if v150 > 0 { + for v169, v170 := range in.NagurskiList { + if v169 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v151) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v170) } out.RawByte(']') } @@ -19404,11 +19718,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v152, v153 := range in.HendricksList { - if v152 > 0 { + for v171, v172 := range in.HendricksList { + if v171 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v153) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v172) } out.RawByte(']') } @@ -19420,11 +19734,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v154, v155 := range in.ThorpeList { - if v154 > 0 { + for v173, v174 := range in.ThorpeList { + if v173 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v155) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v174) } out.RawByte(']') } @@ -19436,11 +19750,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v156, v157 := range in.ButkusList { - if v156 > 0 { + for v175, v176 := range in.ButkusList { + if v175 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v157) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v176) } out.RawByte(']') } @@ -19452,11 +19766,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v158, v159 := range in.LouGrozaList { - if v158 > 0 { + for v177, v178 := range in.LouGrozaList { + if v177 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v159) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v178) } out.RawByte(']') } @@ -19468,11 +19782,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v160, v161 := range in.RayGuyList { - if v160 > 0 { + for v179, v180 := range in.RayGuyList { + if v179 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v161) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v180) } out.RawByte(']') } @@ -19484,18 +19798,18 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers4(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v162, v163 := range in.JetAward { - if v162 > 0 { + for v181, v182 := range in.JetAward { + if v181 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out, v163) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out, v182) } out.RawByte(']') } } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in *jlexer.Lexer, out *AwardsModel) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, out *AwardsModel) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -19542,7 +19856,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers5(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out *jwriter.Writer, in AwardsModel) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer, in AwardsModel) { out.RawByte('{') first := true _ = first @@ -19593,7 +19907,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers5(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, out *BootstrapDataScheduling) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, out *BootstrapDataScheduling) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -19628,9 +19942,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o out.OfficialPolls = (out.OfficialPolls)[:0] } for !in.IsDelim(']') { - var v164 structs.CollegePollOfficial - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &v164) - out.OfficialPolls = append(out.OfficialPolls, v164) + var v183 structs.CollegePollOfficial + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &v183) + out.OfficialPolls = append(out.OfficialPolls, v183) in.WantComma() } in.Delim(']') @@ -19653,9 +19967,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o out.HistoricCollegePlayers = (out.HistoricCollegePlayers)[:0] } for !in.IsDelim(']') { - var v165 structs.HistoricCollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &v165) - out.HistoricCollegePlayers = append(out.HistoricCollegePlayers, v165) + var v184 structs.HistoricCollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in, &v184) + out.HistoricCollegePlayers = append(out.HistoricCollegePlayers, v184) in.WantComma() } in.Delim(']') @@ -19676,9 +19990,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o out.RetiredPlayers = (out.RetiredPlayers)[:0] } for !in.IsDelim(']') { - var v166 structs.NFLRetiredPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v166) - out.RetiredPlayers = append(out.RetiredPlayers, v166) + var v185 structs.NFLRetiredPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v185) + out.RetiredPlayers = append(out.RetiredPlayers, v185) in.WantComma() } in.Delim(']') @@ -19699,9 +20013,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o out.Stadiums = (out.Stadiums)[:0] } for !in.IsDelim(']') { - var v167 structs.Stadium - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in, &v167) - out.Stadiums = append(out.Stadiums, v167) + var v186 structs.Stadium + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs42(in, &v186) + out.Stadiums = append(out.Stadiums, v186) in.WantComma() } in.Delim(']') @@ -19722,9 +20036,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o out.CFBGameRequests = (out.CFBGameRequests)[:0] } for !in.IsDelim(']') { - var v168 structs.CFBGameRequest - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in, &v168) - out.CFBGameRequests = append(out.CFBGameRequests, v168) + var v187 structs.CFBGameRequest + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs43(in, &v187) + out.CFBGameRequests = append(out.CFBGameRequests, v187) in.WantComma() } in.Delim(']') @@ -19745,9 +20059,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o out.NFLGameRequests = (out.NFLGameRequests)[:0] } for !in.IsDelim(']') { - var v169 structs.NFLGameRequest - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs44(in, &v169) - out.NFLGameRequests = append(out.NFLGameRequests, v169) + var v188 structs.NFLGameRequest + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs44(in, &v188) + out.NFLGameRequests = append(out.NFLGameRequests, v188) in.WantComma() } in.Delim(']') @@ -19761,9 +20075,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v170 structs.CollegeGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v170) - (out.CollegeGameplanMap)[key] = v170 + var v189 structs.CollegeGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v189) + (out.CollegeGameplanMap)[key] = v189 in.WantComma() } in.Delim('}') @@ -19777,9 +20091,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v171 structs.NFLGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v171) - (out.NFLGameplanMap)[key] = v171 + var v190 structs.NFLGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v190) + (out.NFLGameplanMap)[key] = v190 in.WantComma() } in.Delim('}') @@ -19794,7 +20108,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer, in BootstrapDataScheduling) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer, in BootstrapDataScheduling) { out.RawByte('{') first := true _ = first @@ -19805,11 +20119,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v172, v173 := range in.OfficialPolls { - if v172 > 0 { + for v191, v192 := range in.OfficialPolls { + if v191 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, v173) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, v192) } out.RawByte(']') } @@ -19826,11 +20140,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v174, v175 := range in.HistoricCollegePlayers { - if v174 > 0 { + for v193, v194 := range in.HistoricCollegePlayers { + if v193 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, v175) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out, v194) } out.RawByte(']') } @@ -19842,11 +20156,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v176, v177 := range in.RetiredPlayers { - if v176 > 0 { + for v195, v196 := range in.RetiredPlayers { + if v195 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v177) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v196) } out.RawByte(']') } @@ -19858,11 +20172,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v178, v179 := range in.Stadiums { - if v178 > 0 { + for v197, v198 := range in.Stadiums { + if v197 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out, v179) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs42(out, v198) } out.RawByte(']') } @@ -19874,11 +20188,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v180, v181 := range in.CFBGameRequests { - if v180 > 0 { + for v199, v200 := range in.CFBGameRequests { + if v199 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out, v181) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs43(out, v200) } out.RawByte(']') } @@ -19890,11 +20204,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v182, v183 := range in.NFLGameRequests { - if v182 > 0 { + for v201, v202 := range in.NFLGameRequests { + if v201 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs44(out, v183) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs44(out, v202) } out.RawByte(']') } @@ -19906,16 +20220,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v184First := true - for v184Name, v184Value := range in.CollegeGameplanMap { - if v184First { - v184First = false + v203First := true + for v203Name, v203Value := range in.CollegeGameplanMap { + if v203First { + v203First = false } else { out.RawByte(',') } - out.UintStr(uint(v184Name)) + out.UintStr(uint(v203Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v184Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v203Value) } out.RawByte('}') } @@ -19927,16 +20241,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v185First := true - for v185Name, v185Value := range in.NFLGameplanMap { - if v185First { - v185First = false + v204First := true + for v204Name, v204Value := range in.NFLGameplanMap { + if v204First { + v204First = false } else { out.RawByte(',') } - out.UintStr(uint(v185Name)) + out.UintStr(uint(v204Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v185Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v204Value) } out.RawByte('}') } @@ -19947,25 +20261,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v BootstrapDataScheduling) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataScheduling) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers6(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataScheduling) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataScheduling) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers6(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(l, v) } func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs44(in *jlexer.Lexer, out *structs.NFLGameRequest) { isTopLevel := in.IsStart() @@ -21741,7 +22055,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, out *BootstrapDataRecruiting) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, out *BootstrapDataRecruiting) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -21776,9 +22090,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.Recruits = (out.Recruits)[:0] } for !in.IsDelim(']') { - var v186 structs.Croot - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs45(in, &v186) - out.Recruits = append(out.Recruits, v186) + var v205 structs.Croot + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs45(in, &v205) + out.Recruits = append(out.Recruits, v205) in.WantComma() } in.Delim(']') @@ -21799,9 +22113,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o out.RecruitProfiles = (out.RecruitProfiles)[:0] } for !in.IsDelim(']') { - var v187 structs.RecruitPlayerProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v187) - out.RecruitProfiles = append(out.RecruitProfiles, v187) + var v206 structs.RecruitPlayerProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs31(in, &v206) + out.RecruitProfiles = append(out.RecruitProfiles, v206) in.WantComma() } in.Delim(']') @@ -21815,17 +22129,17 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v188 *structs.RecruitingTeamProfile + var v207 *structs.RecruitingTeamProfile if in.IsNull() { in.Skip() - v188 = nil + v207 = nil } else { - if v188 == nil { - v188 = new(structs.RecruitingTeamProfile) + if v207 == nil { + v207 = new(structs.RecruitingTeamProfile) } - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v188) + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v207) } - (out.TeamProfileMap)[key] = v188 + (out.TeamProfileMap)[key] = v207 in.WantComma() } in.Delim('}') @@ -21840,7 +22154,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer, in BootstrapDataRecruiting) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer, in BootstrapDataRecruiting) { out.RawByte('{') first := true _ = first @@ -21851,11 +22165,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v189, v190 := range in.Recruits { - if v189 > 0 { + for v208, v209 := range in.Recruits { + if v208 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs45(out, v190) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs45(out, v209) } out.RawByte(']') } @@ -21867,11 +22181,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v191, v192 := range in.RecruitProfiles { - if v191 > 0 { + for v210, v211 := range in.RecruitProfiles { + if v210 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v192) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs31(out, v211) } out.RawByte(']') } @@ -21883,19 +22197,19 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v193First := true - for v193Name, v193Value := range in.TeamProfileMap { - if v193First { - v193First = false + v212First := true + for v212Name, v212Value := range in.TeamProfileMap { + if v212First { + v212First = false } else { out.RawByte(',') } - out.String(string(v193Name)) + out.String(string(v212Name)) out.RawByte(':') - if v193Value == nil { + if v212Value == nil { out.RawString("null") } else { - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v193Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v212Value) } } out.RawByte('}') @@ -21907,25 +22221,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v BootstrapDataRecruiting) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataRecruiting) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers7(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataRecruiting) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataRecruiting) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers7(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(l, v) } func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs45(in *jlexer.Lexer, out *structs.Croot) { isTopLevel := in.IsStart() @@ -22018,9 +22332,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs45(in *jlexer.Lexer, o out.LeadingTeams = (out.LeadingTeams)[:0] } for !in.IsDelim(']') { - var v194 structs.LeadingTeams - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs46(in, &v194) - out.LeadingTeams = append(out.LeadingTeams, v194) + var v213 structs.LeadingTeams + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs46(in, &v213) + out.LeadingTeams = append(out.LeadingTeams, v213) in.WantComma() } in.Delim(']') @@ -22216,11 +22530,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs45(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v195, v196 := range in.LeadingTeams { - if v195 > 0 { + for v214, v215 := range in.LeadingTeams { + if v214 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs46(out, v196) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs46(out, v215) } out.RawByte(']') } @@ -22372,7 +22686,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs46(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, out *BootstrapDataPortal) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, out *BootstrapDataPortal) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -22400,17 +22714,17 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v197 *structs.RecruitingTeamProfile + var v216 *structs.RecruitingTeamProfile if in.IsNull() { in.Skip() - v197 = nil + v216 = nil } else { - if v197 == nil { - v197 = new(structs.RecruitingTeamProfile) + if v216 == nil { + v216 = new(structs.RecruitingTeamProfile) } - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v197) + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs24(in, v216) } - (out.TeamProfileMap)[key] = v197 + (out.TeamProfileMap)[key] = v216 in.WantComma() } in.Delim('}') @@ -22431,9 +22745,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o out.TransferPortalProfiles = (out.TransferPortalProfiles)[:0] } for !in.IsDelim(']') { - var v198 structs.TransferPortalProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs47(in, &v198) - out.TransferPortalProfiles = append(out.TransferPortalProfiles, v198) + var v217 structs.TransferPortalProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs47(in, &v217) + out.TransferPortalProfiles = append(out.TransferPortalProfiles, v217) in.WantComma() } in.Delim(']') @@ -22454,9 +22768,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o out.CollegePromises = (out.CollegePromises)[:0] } for !in.IsDelim(']') { - var v199 structs.CollegePromise - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v199) - out.CollegePromises = append(out.CollegePromises, v199) + var v218 structs.CollegePromise + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs34(in, &v218) + out.CollegePromises = append(out.CollegePromises, v218) in.WantComma() } in.Delim(']') @@ -22477,9 +22791,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o out.PortalPlayers = (out.PortalPlayers)[:0] } for !in.IsDelim(']') { - var v200 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v200) - out.PortalPlayers = append(out.PortalPlayers, v200) + var v219 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v219) + out.PortalPlayers = append(out.PortalPlayers, v219) in.WantComma() } in.Delim(']') @@ -22494,7 +22808,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer, in BootstrapDataPortal) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer, in BootstrapDataPortal) { out.RawByte('{') first := true _ = first @@ -22505,19 +22819,19 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer out.RawString(`null`) } else { out.RawByte('{') - v201First := true - for v201Name, v201Value := range in.TeamProfileMap { - if v201First { - v201First = false + v220First := true + for v220Name, v220Value := range in.TeamProfileMap { + if v220First { + v220First = false } else { out.RawByte(',') } - out.String(string(v201Name)) + out.String(string(v220Name)) out.RawByte(':') - if v201Value == nil { + if v220Value == nil { out.RawString("null") } else { - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v201Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs24(out, *v220Value) } } out.RawByte('}') @@ -22530,11 +22844,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v202, v203 := range in.TransferPortalProfiles { - if v202 > 0 { + for v221, v222 := range in.TransferPortalProfiles { + if v221 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs47(out, v203) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs47(out, v222) } out.RawByte(']') } @@ -22546,11 +22860,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v204, v205 := range in.CollegePromises { - if v204 > 0 { + for v223, v224 := range in.CollegePromises { + if v223 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v205) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs34(out, v224) } out.RawByte(']') } @@ -22562,11 +22876,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v206, v207 := range in.PortalPlayers { - if v206 > 0 { + for v225, v226 := range in.PortalPlayers { + if v225 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v207) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v226) } out.RawByte(']') } @@ -22577,25 +22891,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v BootstrapDataPortal) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataPortal) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers8(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataPortal) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataPortal) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers8(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(l, v) } func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs47(in *jlexer.Lexer, out *structs.TransferPortalProfile) { isTopLevel := in.IsStart() @@ -22813,7 +23127,7 @@ func easyjson83226b63EncodeDatabaseSql(out *jwriter.Writer, in sql.NullInt64) { } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, out *BootstrapDataNews) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out *BootstrapDataNews) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -22848,9 +23162,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, o out.CollegeNews = (out.CollegeNews)[:0] } for !in.IsDelim(']') { - var v208 structs.NewsLog - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs48(in, &v208) - out.CollegeNews = append(out.CollegeNews, v208) + var v227 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs48(in, &v227) + out.CollegeNews = append(out.CollegeNews, v227) in.WantComma() } in.Delim(']') @@ -22871,9 +23185,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, o out.ProNews = (out.ProNews)[:0] } for !in.IsDelim(']') { - var v209 structs.NewsLog - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs48(in, &v209) - out.ProNews = append(out.ProNews, v209) + var v228 structs.NewsLog + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs48(in, &v228) + out.ProNews = append(out.ProNews, v228) in.WantComma() } in.Delim(']') @@ -22888,7 +23202,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(in *jlexer.Lexer, o in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer, in BootstrapDataNews) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Writer, in BootstrapDataNews) { out.RawByte('{') first := true _ = first @@ -22899,11 +23213,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v210, v211 := range in.CollegeNews { - if v210 > 0 { + for v229, v230 := range in.CollegeNews { + if v229 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs48(out, v211) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs48(out, v230) } out.RawByte(']') } @@ -22915,11 +23229,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v212, v213 := range in.ProNews { - if v212 > 0 { + for v231, v232 := range in.ProNews { + if v231 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs48(out, v213) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs48(out, v232) } out.RawByte(']') } @@ -22930,25 +23244,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v BootstrapDataNews) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataNews) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers9(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataNews) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataNews) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers9(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(l, v) } func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs48(in *jlexer.Lexer, out *structs.NewsLog) { isTopLevel := in.IsStart() @@ -23080,7 +23394,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs48(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out *BootstrapDataLanding) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(in *jlexer.Lexer, out *BootstrapDataLanding) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -23100,44 +23414,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, } switch key { case "CollegeTeam": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &out.CollegeTeam) - case "CollegeRosterMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.CollegeRosterMap = make(map[uint][]structs.CollegePlayer) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v214 []structs.CollegePlayer - if in.IsNull() { - in.Skip() - v214 = nil - } else { - in.Delim('[') - if v214 == nil { - if !in.IsDelim(']') { - v214 = make([]structs.CollegePlayer, 0, 0) - } else { - v214 = []structs.CollegePlayer{} - } - } else { - v214 = (v214)[:0] - } - for !in.IsDelim(']') { - var v215 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v215) - v214 = append(v214, v215) - in.WantComma() - } - in.Delim(']') - } - (out.CollegeRosterMap)[key] = v214 - in.WantComma() - } - in.Delim('}') - } + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &out.CollegeTeam) case "CollegeStandings": if in.IsNull() { in.Skip() @@ -23154,9 +23431,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.CollegeStandings = (out.CollegeStandings)[:0] } for !in.IsDelim(']') { - var v216 structs.CollegeStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v216) - out.CollegeStandings = append(out.CollegeStandings, v216) + var v233 structs.CollegeStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs1(in, &v233) + out.CollegeStandings = append(out.CollegeStandings, v233) in.WantComma() } in.Delim(']') @@ -23177,9 +23454,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.AllCollegeGames = (out.AllCollegeGames)[:0] } for !in.IsDelim(']') { - var v217 structs.CollegeGame - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v217) - out.AllCollegeGames = append(out.AllCollegeGames, v217) + var v234 structs.CollegeGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs4(in, &v234) + out.AllCollegeGames = append(out.AllCollegeGames, v234) in.WantComma() } in.Delim(']') @@ -23200,9 +23477,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.OfficialPolls = (out.OfficialPolls)[:0] } for !in.IsDelim(']') { - var v218 structs.CollegePollOfficial - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &v218) - out.OfficialPolls = append(out.OfficialPolls, v218) + var v235 structs.CollegePollOfficial + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs40(in, &v235) + out.OfficialPolls = append(out.OfficialPolls, v235) in.WantComma() } in.Delim(']') @@ -23223,9 +23500,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.TopCFBPassers = (out.TopCFBPassers)[:0] } for !in.IsDelim(']') { - var v219 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v219) - out.TopCFBPassers = append(out.TopCFBPassers, v219) + var v236 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v236) + out.TopCFBPassers = append(out.TopCFBPassers, v236) in.WantComma() } in.Delim(']') @@ -23246,9 +23523,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.TopCFBRushers = (out.TopCFBRushers)[:0] } for !in.IsDelim(']') { - var v220 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v220) - out.TopCFBRushers = append(out.TopCFBRushers, v220) + var v237 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v237) + out.TopCFBRushers = append(out.TopCFBRushers, v237) in.WantComma() } in.Delim(']') @@ -23269,61 +23546,112 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.TopCFBReceivers = (out.TopCFBReceivers)[:0] } for !in.IsDelim(']') { - var v221 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v221) - out.TopCFBReceivers = append(out.TopCFBReceivers, v221) + var v238 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v238) + out.TopCFBReceivers = append(out.TopCFBReceivers, v238) in.WantComma() } in.Delim(']') } - case "CollegeInjuryReport": + case "CollegeNotifications": if in.IsNull() { in.Skip() - out.CollegeInjuryReport = nil + out.CollegeNotifications = nil } else { in.Delim('[') - if out.CollegeInjuryReport == nil { + if out.CollegeNotifications == nil { if !in.IsDelim(']') { - out.CollegeInjuryReport = make([]structs.CollegePlayer, 0, 0) + out.CollegeNotifications = make([]structs.Notification, 0, 0) } else { - out.CollegeInjuryReport = []structs.CollegePlayer{} + out.CollegeNotifications = []structs.Notification{} } } else { - out.CollegeInjuryReport = (out.CollegeInjuryReport)[:0] + out.CollegeNotifications = (out.CollegeNotifications)[:0] } for !in.IsDelim(']') { - var v222 structs.CollegePlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v222) - out.CollegeInjuryReport = append(out.CollegeInjuryReport, v222) + var v239 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs49(in, &v239) + out.CollegeNotifications = append(out.CollegeNotifications, v239) in.WantComma() } in.Delim(']') } - case "CollegeNotifications": + case "ProTeam": + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &out.ProTeam) + case "ProRosterMap": if in.IsNull() { in.Skip() - out.CollegeNotifications = nil } else { - in.Delim('[') - if out.CollegeNotifications == nil { - if !in.IsDelim(']') { - out.CollegeNotifications = make([]structs.Notification, 0, 0) + in.Delim('{') + out.ProRosterMap = make(map[uint][]structs.NFLPlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v240 []structs.NFLPlayer + if in.IsNull() { + in.Skip() + v240 = nil + } else { + in.Delim('[') + if v240 == nil { + if !in.IsDelim(']') { + v240 = make([]structs.NFLPlayer, 0, 0) + } else { + v240 = []structs.NFLPlayer{} + } + } else { + v240 = (v240)[:0] + } + for !in.IsDelim(']') { + var v241 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v241) + v240 = append(v240, v241) + in.WantComma() + } + in.Delim(']') + } + (out.ProRosterMap)[key] = v240 + in.WantComma() + } + in.Delim('}') + } + case "CollegeRosterMap": + if in.IsNull() { + in.Skip() + } else { + in.Delim('{') + out.CollegeRosterMap = make(map[uint][]structs.CollegePlayer) + for !in.IsDelim('}') { + key := uint(in.UintStr()) + in.WantColon() + var v242 []structs.CollegePlayer + if in.IsNull() { + in.Skip() + v242 = nil } else { - out.CollegeNotifications = []structs.Notification{} + in.Delim('[') + if v242 == nil { + if !in.IsDelim(']') { + v242 = make([]structs.CollegePlayer, 0, 0) + } else { + v242 = []structs.CollegePlayer{} + } + } else { + v242 = (v242)[:0] + } + for !in.IsDelim(']') { + var v243 structs.CollegePlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in, &v243) + v242 = append(v242, v243) + in.WantComma() + } + in.Delim(']') } - } else { - out.CollegeNotifications = (out.CollegeNotifications)[:0] - } - for !in.IsDelim(']') { - var v223 structs.Notification - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs49(in, &v223) - out.CollegeNotifications = append(out.CollegeNotifications, v223) + (out.CollegeRosterMap)[key] = v242 in.WantComma() } - in.Delim(']') + in.Delim('}') } - case "ProTeam": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs7(in, &out.ProTeam) case "ProNotifications": if in.IsNull() { in.Skip() @@ -23340,9 +23668,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.ProNotifications = (out.ProNotifications)[:0] } for !in.IsDelim(']') { - var v224 structs.Notification - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs49(in, &v224) - out.ProNotifications = append(out.ProNotifications, v224) + var v244 structs.Notification + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs49(in, &v244) + out.ProNotifications = append(out.ProNotifications, v244) in.WantComma() } in.Delim(']') @@ -23363,9 +23691,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.ProStandings = (out.ProStandings)[:0] } for !in.IsDelim(']') { - var v225 structs.NFLStandings - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v225) - out.ProStandings = append(out.ProStandings, v225) + var v245 structs.NFLStandings + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v245) + out.ProStandings = append(out.ProStandings, v245) in.WantComma() } in.Delim(']') @@ -23386,9 +23714,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.AllProGames = (out.AllProGames)[:0] } for !in.IsDelim(']') { - var v226 structs.NFLGame - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs50(in, &v226) - out.AllProGames = append(out.AllProGames, v226) + var v246 structs.NFLGame + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs50(in, &v246) + out.AllProGames = append(out.AllProGames, v246) in.WantComma() } in.Delim(']') @@ -23411,9 +23739,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.TopNFLPassers = (out.TopNFLPassers)[:0] } for !in.IsDelim(']') { - var v227 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v227) - out.TopNFLPassers = append(out.TopNFLPassers, v227) + var v247 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v247) + out.TopNFLPassers = append(out.TopNFLPassers, v247) in.WantComma() } in.Delim(']') @@ -23434,9 +23762,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.TopNFLRushers = (out.TopNFLRushers)[:0] } for !in.IsDelim(']') { - var v228 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v228) - out.TopNFLRushers = append(out.TopNFLRushers, v228) + var v248 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v248) + out.TopNFLRushers = append(out.TopNFLRushers, v248) in.WantComma() } in.Delim(']') @@ -23457,92 +23785,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.TopNFLReceivers = (out.TopNFLReceivers)[:0] } for !in.IsDelim(']') { - var v229 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v229) - out.TopNFLReceivers = append(out.TopNFLReceivers, v229) - in.WantComma() - } - in.Delim(']') - } - case "ProRosterMap": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - out.ProRosterMap = make(map[uint][]structs.NFLPlayer) - for !in.IsDelim('}') { - key := uint(in.UintStr()) - in.WantColon() - var v230 []structs.NFLPlayer - if in.IsNull() { - in.Skip() - v230 = nil - } else { - in.Delim('[') - if v230 == nil { - if !in.IsDelim(']') { - v230 = make([]structs.NFLPlayer, 0, 0) - } else { - v230 = []structs.NFLPlayer{} - } - } else { - v230 = (v230)[:0] - } - for !in.IsDelim(']') { - var v231 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v231) - v230 = append(v230, v231) - in.WantComma() - } - in.Delim(']') - } - (out.ProRosterMap)[key] = v230 - in.WantComma() - } - in.Delim('}') - } - case "ProInjuryReport": - if in.IsNull() { - in.Skip() - out.ProInjuryReport = nil - } else { - in.Delim('[') - if out.ProInjuryReport == nil { - if !in.IsDelim(']') { - out.ProInjuryReport = make([]structs.NFLPlayer, 0, 0) - } else { - out.ProInjuryReport = []structs.NFLPlayer{} - } - } else { - out.ProInjuryReport = (out.ProInjuryReport)[:0] - } - for !in.IsDelim(']') { - var v232 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v232) - out.ProInjuryReport = append(out.ProInjuryReport, v232) - in.WantComma() - } - in.Delim(']') - } - case "PracticeSquadPlayers": - if in.IsNull() { - in.Skip() - out.PracticeSquadPlayers = nil - } else { - in.Delim('[') - if out.PracticeSquadPlayers == nil { - if !in.IsDelim(']') { - out.PracticeSquadPlayers = make([]structs.NFLPlayer, 0, 0) - } else { - out.PracticeSquadPlayers = []structs.NFLPlayer{} - } - } else { - out.PracticeSquadPlayers = (out.PracticeSquadPlayers)[:0] - } - for !in.IsDelim(']') { - var v233 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v233) - out.PracticeSquadPlayers = append(out.PracticeSquadPlayers, v233) + var v249 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v249) + out.TopNFLReceivers = append(out.TopNFLReceivers, v249) in.WantComma() } in.Delim(']') @@ -23556,9 +23801,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v234 structs.NFLCapsheet - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs8(in, &v234) - (out.CapsheetMap)[key] = v234 + var v250 structs.NFLCapsheet + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs15(in, &v250) + (out.CapsheetMap)[key] = v250 in.WantComma() } in.Delim('}') @@ -23579,9 +23824,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, out.RetiredPlayers = (out.RetiredPlayers)[:0] } for !in.IsDelim(']') { - var v235 structs.NFLRetiredPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v235) - out.RetiredPlayers = append(out.RetiredPlayers, v235) + var v251 structs.NFLRetiredPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in, &v251) + out.RetiredPlayers = append(out.RetiredPlayers, v251) in.WantComma() } in.Delim(']') @@ -23596,46 +23841,14 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(in *jlexer.Lexer, in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Writer, in BootstrapDataLanding) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(out *jwriter.Writer, in BootstrapDataLanding) { out.RawByte('{') first := true _ = first { const prefix string = ",\"CollegeTeam\":" out.RawString(prefix[1:]) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, in.CollegeTeam) - } - { - const prefix string = ",\"CollegeRosterMap\":" - out.RawString(prefix) - if in.CollegeRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v236First := true - for v236Name, v236Value := range in.CollegeRosterMap { - if v236First { - v236First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v236Name)) - out.RawByte(':') - if v236Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v237, v238 := range v236Value { - if v237 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v238) - } - out.RawByte(']') - } - } - out.RawByte('}') - } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, in.CollegeTeam) } { const prefix string = ",\"CollegeStandings\":" @@ -23644,11 +23857,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v239, v240 := range in.CollegeStandings { - if v239 > 0 { + for v252, v253 := range in.CollegeStandings { + if v252 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v240) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs1(out, v253) } out.RawByte(']') } @@ -23660,11 +23873,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v241, v242 := range in.AllCollegeGames { - if v241 > 0 { + for v254, v255 := range in.AllCollegeGames { + if v254 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v242) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs4(out, v255) } out.RawByte(']') } @@ -23676,11 +23889,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v243, v244 := range in.OfficialPolls { - if v243 > 0 { + for v256, v257 := range in.OfficialPolls { + if v256 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, v244) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs40(out, v257) } out.RawByte(']') } @@ -23692,11 +23905,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v245, v246 := range in.TopCFBPassers { - if v245 > 0 { + for v258, v259 := range in.TopCFBPassers { + if v258 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v246) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v259) } out.RawByte(']') } @@ -23708,11 +23921,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v247, v248 := range in.TopCFBRushers { - if v247 > 0 { + for v260, v261 := range in.TopCFBRushers { + if v260 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v248) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v261) } out.RawByte(']') } @@ -23724,51 +23937,99 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v249, v250 := range in.TopCFBReceivers { - if v249 > 0 { + for v262, v263 := range in.TopCFBReceivers { + if v262 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v250) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v263) } out.RawByte(']') } } { - const prefix string = ",\"CollegeInjuryReport\":" + const prefix string = ",\"CollegeNotifications\":" out.RawString(prefix) - if in.CollegeInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if in.CollegeNotifications == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v251, v252 := range in.CollegeInjuryReport { - if v251 > 0 { + for v264, v265 := range in.CollegeNotifications { + if v264 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v252) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs49(out, v265) } out.RawByte(']') } } { - const prefix string = ",\"CollegeNotifications\":" + const prefix string = ",\"ProTeam\":" out.RawString(prefix) - if in.CollegeNotifications == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, in.ProTeam) + } + { + const prefix string = ",\"ProRosterMap\":" + out.RawString(prefix) + if in.ProRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) } else { - out.RawByte('[') - for v253, v254 := range in.CollegeNotifications { - if v253 > 0 { + out.RawByte('{') + v266First := true + for v266Name, v266Value := range in.ProRosterMap { + if v266First { + v266First = false + } else { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs49(out, v254) + out.UintStr(uint(v266Name)) + out.RawByte(':') + if v266Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v267, v268 := range v266Value { + if v267 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v268) + } + out.RawByte(']') + } } - out.RawByte(']') + out.RawByte('}') } } { - const prefix string = ",\"ProTeam\":" + const prefix string = ",\"CollegeRosterMap\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs7(out, in.ProTeam) + if in.CollegeRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + out.RawString(`null`) + } else { + out.RawByte('{') + v269First := true + for v269Name, v269Value := range in.CollegeRosterMap { + if v269First { + v269First = false + } else { + out.RawByte(',') + } + out.UintStr(uint(v269Name)) + out.RawByte(':') + if v269Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v270, v271 := range v269Value { + if v270 > 0 { + out.RawByte(',') + } + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out, v271) + } + out.RawByte(']') + } + } + out.RawByte('}') + } } { const prefix string = ",\"ProNotifications\":" @@ -23777,11 +24038,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v255, v256 := range in.ProNotifications { - if v255 > 0 { + for v272, v273 := range in.ProNotifications { + if v272 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs49(out, v256) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs49(out, v273) } out.RawByte(']') } @@ -23793,11 +24054,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v257, v258 := range in.ProStandings { - if v257 > 0 { + for v274, v275 := range in.ProStandings { + if v274 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v258) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v275) } out.RawByte(']') } @@ -23809,11 +24070,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v259, v260 := range in.AllProGames { - if v259 > 0 { + for v276, v277 := range in.AllProGames { + if v276 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs50(out, v260) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs50(out, v277) } out.RawByte(']') } @@ -23830,11 +24091,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v261, v262 := range in.TopNFLPassers { - if v261 > 0 { + for v278, v279 := range in.TopNFLPassers { + if v278 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v262) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v279) } out.RawByte(']') } @@ -23846,11 +24107,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v263, v264 := range in.TopNFLRushers { - if v263 > 0 { + for v280, v281 := range in.TopNFLRushers { + if v280 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v264) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v281) } out.RawByte(']') } @@ -23862,75 +24123,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v265, v266 := range in.TopNFLReceivers { - if v265 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v266) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"ProRosterMap\":" - out.RawString(prefix) - if in.ProRosterMap == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { - out.RawString(`null`) - } else { - out.RawByte('{') - v267First := true - for v267Name, v267Value := range in.ProRosterMap { - if v267First { - v267First = false - } else { - out.RawByte(',') - } - out.UintStr(uint(v267Name)) - out.RawByte(':') - if v267Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v268, v269 := range v267Value { - if v268 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v269) - } - out.RawByte(']') - } - } - out.RawByte('}') - } - } - { - const prefix string = ",\"ProInjuryReport\":" - out.RawString(prefix) - if in.ProInjuryReport == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v270, v271 := range in.ProInjuryReport { - if v270 > 0 { - out.RawByte(',') - } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v271) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"PracticeSquadPlayers\":" - out.RawString(prefix) - if in.PracticeSquadPlayers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v272, v273 := range in.PracticeSquadPlayers { - if v272 > 0 { + for v282, v283 := range in.TopNFLReceivers { + if v282 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v273) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v283) } out.RawByte(']') } @@ -23942,16 +24139,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v274First := true - for v274Name, v274Value := range in.CapsheetMap { - if v274First { - v274First = false + v284First := true + for v284Name, v284Value := range in.CapsheetMap { + if v284First { + v284First = false } else { out.RawByte(',') } - out.UintStr(uint(v274Name)) + out.UintStr(uint(v284Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs8(out, v274Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs15(out, v284Value) } out.RawByte('}') } @@ -23963,11 +24160,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v275, v276 := range in.RetiredPlayers { - if v275 > 0 { + for v285, v286 := range in.RetiredPlayers { + if v285 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v276) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out, v286) } out.RawByte(']') } @@ -23978,25 +24175,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v BootstrapDataLanding) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataLanding) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers10(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataLanding) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataLanding) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers10(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(l, v) } func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs50(in *jlexer.Lexer, out *structs.NFLGame) { isTopLevel := in.IsStart() @@ -24498,7 +24695,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs49(out *jwriter.Writer } out.RawByte('}') } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(in *jlexer.Lexer, out *BootstrapDataGameplan) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(in *jlexer.Lexer, out *BootstrapDataGameplan) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -24526,9 +24723,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v277 structs.CollegeGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v277) - (out.CollegeGameplanMap)[key] = v277 + var v287 structs.CollegeGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs28(in, &v287) + (out.CollegeGameplanMap)[key] = v287 in.WantComma() } in.Delim('}') @@ -24544,9 +24741,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v278 structs.CollegeTeamDepthChart - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v278) - (out.CollegeDepthChartMap)[key] = v278 + var v288 structs.CollegeTeamDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs29(in, &v288) + (out.CollegeDepthChartMap)[key] = v288 in.WantComma() } in.Delim('}') @@ -24560,15 +24757,15 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v279 structs.NFLGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v279) - (out.NFLGameplanMap)[key] = v279 + var v289 structs.NFLGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v289) + (out.NFLGameplanMap)[key] = v289 in.WantComma() } in.Delim('}') } case "NFLDepthChart": - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &out.NFLDepthChart) + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &out.NFLDepthChart) case "NFLDepthChartMap": if in.IsNull() { in.Skip() @@ -24578,9 +24775,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v280 structs.NFLDepthChart - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs13(in, &v280) - (out.NFLDepthChartMap)[key] = v280 + var v290 structs.NFLDepthChart + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs19(in, &v290) + (out.NFLDepthChartMap)[key] = v290 in.WantComma() } in.Delim('}') @@ -24595,7 +24792,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(in *jlexer.Lexer, in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(out *jwriter.Writer, in BootstrapDataGameplan) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(out *jwriter.Writer, in BootstrapDataGameplan) { out.RawByte('{') first := true _ = first @@ -24606,16 +24803,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v281First := true - for v281Name, v281Value := range in.CollegeGameplanMap { - if v281First { - v281First = false + v291First := true + for v291Name, v291Value := range in.CollegeGameplanMap { + if v291First { + v291First = false } else { out.RawByte(',') } - out.UintStr(uint(v281Name)) + out.UintStr(uint(v291Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v281Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs28(out, v291Value) } out.RawByte('}') } @@ -24632,16 +24829,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v282First := true - for v282Name, v282Value := range in.CollegeDepthChartMap { - if v282First { - v282First = false + v292First := true + for v292Name, v292Value := range in.CollegeDepthChartMap { + if v292First { + v292First = false } else { out.RawByte(',') } - out.UintStr(uint(v282Name)) + out.UintStr(uint(v292Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v282Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs29(out, v292Value) } out.RawByte('}') } @@ -24653,16 +24850,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v283First := true - for v283Name, v283Value := range in.NFLGameplanMap { - if v283First { - v283First = false + v293First := true + for v293Name, v293Value := range in.NFLGameplanMap { + if v293First { + v293First = false } else { out.RawByte(',') } - out.UintStr(uint(v283Name)) + out.UintStr(uint(v293Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v283Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v293Value) } out.RawByte('}') } @@ -24670,7 +24867,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(out *jwriter.Write { const prefix string = ",\"NFLDepthChart\":" out.RawString(prefix) - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, in.NFLDepthChart) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, in.NFLDepthChart) } { const prefix string = ",\"NFLDepthChartMap\":" @@ -24679,16 +24876,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v284First := true - for v284Name, v284Value := range in.NFLDepthChartMap { - if v284First { - v284First = false + v294First := true + for v294Name, v294Value := range in.NFLDepthChartMap { + if v294First { + v294First = false } else { out.RawByte(',') } - out.UintStr(uint(v284Name)) + out.UintStr(uint(v294Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs13(out, v284Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs19(out, v294Value) } out.RawByte('}') } @@ -24699,27 +24896,27 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v BootstrapDataGameplan) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataGameplan) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers11(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataGameplan) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataGameplan) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers11(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(l, v) } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(in *jlexer.Lexer, out *BootstrapDataFreeAgency) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(in *jlexer.Lexer, out *BootstrapDataFreeAgency) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -24754,9 +24951,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(in *jlexer.Lexer, out.FreeAgents = (out.FreeAgents)[:0] } for !in.IsDelim(']') { - var v285 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v285) - out.FreeAgents = append(out.FreeAgents, v285) + var v295 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v295) + out.FreeAgents = append(out.FreeAgents, v295) in.WantComma() } in.Delim(']') @@ -24777,9 +24974,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(in *jlexer.Lexer, out.WaiverPlayers = (out.WaiverPlayers)[:0] } for !in.IsDelim(']') { - var v286 structs.NFLPlayer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs17(in, &v286) - out.WaiverPlayers = append(out.WaiverPlayers, v286) + var v296 structs.NFLPlayer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in, &v296) + out.WaiverPlayers = append(out.WaiverPlayers, v296) in.WantComma() } in.Delim(']') @@ -24800,9 +24997,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(in *jlexer.Lexer, out.FreeAgentOffers = (out.FreeAgentOffers)[:0] } for !in.IsDelim(']') { - var v287 structs.FreeAgencyOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v287) - out.FreeAgentOffers = append(out.FreeAgentOffers, v287) + var v297 structs.FreeAgencyOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v297) + out.FreeAgentOffers = append(out.FreeAgentOffers, v297) in.WantComma() } in.Delim(']') @@ -24823,9 +25020,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(in *jlexer.Lexer, out.WaiverOffers = (out.WaiverOffers)[:0] } for !in.IsDelim(']') { - var v288 structs.NFLWaiverOffer - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs21(in, &v288) - out.WaiverOffers = append(out.WaiverOffers, v288) + var v298 structs.NFLWaiverOffer + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs11(in, &v298) + out.WaiverOffers = append(out.WaiverOffers, v298) in.WantComma() } in.Delim(']') @@ -24840,7 +25037,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(in *jlexer.Lexer, in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(out *jwriter.Writer, in BootstrapDataFreeAgency) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(out *jwriter.Writer, in BootstrapDataFreeAgency) { out.RawByte('{') first := true _ = first @@ -24851,11 +25048,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v289, v290 := range in.FreeAgents { - if v289 > 0 { + for v299, v300 := range in.FreeAgents { + if v299 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v290) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v300) } out.RawByte(']') } @@ -24867,11 +25064,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v291, v292 := range in.WaiverPlayers { - if v291 > 0 { + for v301, v302 := range in.WaiverPlayers { + if v301 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs17(out, v292) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out, v302) } out.RawByte(']') } @@ -24883,11 +25080,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v293, v294 := range in.FreeAgentOffers { - if v293 > 0 { + for v303, v304 := range in.FreeAgentOffers { + if v303 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v294) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v304) } out.RawByte(']') } @@ -24899,11 +25096,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v295, v296 := range in.WaiverOffers { - if v295 > 0 { + for v305, v306 := range in.WaiverOffers { + if v305 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs21(out, v296) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs11(out, v306) } out.RawByte(']') } @@ -24914,27 +25111,27 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v BootstrapDataFreeAgency) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataFreeAgency) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers12(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataFreeAgency) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataFreeAgency) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers12(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(l, v) } -func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(in *jlexer.Lexer, out *BootstrapDataDraft) { +func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers14(in *jlexer.Lexer, out *BootstrapDataDraft) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -24969,9 +25166,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(in *jlexer.Lexer, out.NFLDraftees = (out.NFLDraftees)[:0] } for !in.IsDelim(']') { - var v297 models.NFLDraftee - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in, &v297) - out.NFLDraftees = append(out.NFLDraftees, v297) + var v307 models.NFLDraftee + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in, &v307) + out.NFLDraftees = append(out.NFLDraftees, v307) in.WantComma() } in.Delim(']') @@ -24985,9 +25182,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v298 models.NFLWarRoom - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in, &v298) - (out.NFLWarRoomMap)[key] = v298 + var v308 models.NFLWarRoom + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in, &v308) + (out.NFLWarRoomMap)[key] = v308 in.WantComma() } in.Delim('}') @@ -25001,30 +25198,30 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v299 []models.ScoutingProfile + var v309 []models.ScoutingProfile if in.IsNull() { in.Skip() - v299 = nil + v309 = nil } else { in.Delim('[') - if v299 == nil { + if v309 == nil { if !in.IsDelim(']') { - v299 = make([]models.ScoutingProfile, 0, 0) + v309 = make([]models.ScoutingProfile, 0, 0) } else { - v299 = []models.ScoutingProfile{} + v309 = []models.ScoutingProfile{} } } else { - v299 = (v299)[:0] + v309 = (v309)[:0] } for !in.IsDelim(']') { - var v300 models.ScoutingProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v300) - v299 = append(v299, v300) + var v310 models.ScoutingProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v310) + v309 = append(v309, v310) in.WantComma() } in.Delim(']') } - (out.DraftScoutingProfileMap)[key] = v299 + (out.DraftScoutingProfileMap)[key] = v309 in.WantComma() } in.Delim('}') @@ -25038,9 +25235,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(in *jlexer.Lexer, for !in.IsDelim('}') { key := uint(in.UintStr()) in.WantColon() - var v301 structs.NFLGameplan - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs14(in, &v301) - (out.NFLGameplanMap)[key] = v301 + var v311 structs.NFLGameplan + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs20(in, &v311) + (out.NFLGameplanMap)[key] = v311 in.WantComma() } in.Delim('}') @@ -25061,9 +25258,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(in *jlexer.Lexer, out.NFLDraftPicks = (out.NFLDraftPicks)[:0] } for !in.IsDelim(']') { - var v302 structs.NFLDraftPick - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v302) - out.NFLDraftPicks = append(out.NFLDraftPicks, v302) + var v312 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v312) + out.NFLDraftPicks = append(out.NFLDraftPicks, v312) in.WantComma() } in.Delim(']') @@ -25078,7 +25275,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(in *jlexer.Lexer, in.Consumed() } } -func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(out *jwriter.Writer, in BootstrapDataDraft) { +func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers14(out *jwriter.Writer, in BootstrapDataDraft) { out.RawByte('{') first := true _ = first @@ -25089,11 +25286,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v303, v304 := range in.NFLDraftees { - if v303 > 0 { + for v313, v314 := range in.NFLDraftees { + if v313 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out, v304) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out, v314) } out.RawByte(']') } @@ -25105,16 +25302,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v305First := true - for v305Name, v305Value := range in.NFLWarRoomMap { - if v305First { - v305First = false + v315First := true + for v315Name, v315Value := range in.NFLWarRoomMap { + if v315First { + v315First = false } else { out.RawByte(',') } - out.UintStr(uint(v305Name)) + out.UintStr(uint(v315Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out, v305Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out, v315Value) } out.RawByte('}') } @@ -25126,24 +25323,24 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v306First := true - for v306Name, v306Value := range in.DraftScoutingProfileMap { - if v306First { - v306First = false + v316First := true + for v316Name, v316Value := range in.DraftScoutingProfileMap { + if v316First { + v316First = false } else { out.RawByte(',') } - out.UintStr(uint(v306Name)) + out.UintStr(uint(v316Name)) out.RawByte(':') - if v306Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if v316Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v307, v308 := range v306Value { - if v307 > 0 { + for v317, v318 := range v316Value { + if v317 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v308) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v318) } out.RawByte(']') } @@ -25158,16 +25355,16 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(out *jwriter.Write out.RawString(`null`) } else { out.RawByte('{') - v309First := true - for v309Name, v309Value := range in.NFLGameplanMap { - if v309First { - v309First = false + v319First := true + for v319Name, v319Value := range in.NFLGameplanMap { + if v319First { + v319First = false } else { out.RawByte(',') } - out.UintStr(uint(v309Name)) + out.UintStr(uint(v319Name)) out.RawByte(':') - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs14(out, v309Value) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs20(out, v319Value) } out.RawByte('}') } @@ -25179,11 +25376,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(out *jwriter.Write out.RawString("null") } else { out.RawByte('[') - for v310, v311 := range in.NFLDraftPicks { - if v310 > 0 { + for v320, v321 := range in.NFLDraftPicks { + if v320 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v311) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v321) } out.RawByte(']') } @@ -25194,25 +25391,25 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v BootstrapDataDraft) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(&w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BootstrapDataDraft) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers13(w, v) + easyjson83226b63EncodeGithubComCalebRoseSimFBAManagers14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BootstrapDataDraft) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(&r, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BootstrapDataDraft) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers13(l, v) + easyjson83226b63DecodeGithubComCalebRoseSimFBAManagers14(l, v) } func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in *jlexer.Lexer, out *models.ScoutingProfile) { isTopLevel := in.IsStart() @@ -25436,9 +25633,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in *jlexer.Lexer, out out.DraftPicks = (out.DraftPicks)[:0] } for !in.IsDelim(']') { - var v312 structs.NFLDraftPick - easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs10(in, &v312) - out.DraftPicks = append(out.DraftPicks, v312) + var v322 structs.NFLDraftPick + easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs16(in, &v322) + out.DraftPicks = append(out.DraftPicks, v322) in.WantComma() } in.Delim(']') @@ -25459,9 +25656,9 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels1(in *jlexer.Lexer, out out.ScoutProfiles = (out.ScoutProfiles)[:0] } for !in.IsDelim(']') { - var v313 models.ScoutingProfile - easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v313) - out.ScoutProfiles = append(out.ScoutProfiles, v313) + var v323 models.ScoutingProfile + easyjson83226b63DecodeGithubComCalebRoseSimFBAModels2(in, &v323) + out.ScoutProfiles = append(out.ScoutProfiles, v323) in.WantComma() } in.Delim(']') @@ -25529,11 +25726,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v314, v315 := range in.DraftPicks { - if v314 > 0 { + for v324, v325 := range in.DraftPicks { + if v324 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs10(out, v315) + easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs16(out, v325) } out.RawByte(']') } @@ -25545,11 +25742,11 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels1(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v316, v317 := range in.ScoutProfiles { - if v316 > 0 { + for v326, v327 := range in.ScoutProfiles { + if v326 > 0 { out.RawByte(',') } - easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v317) + easyjson83226b63EncodeGithubComCalebRoseSimFBAModels2(out, v327) } out.RawByte(']') } @@ -25684,63 +25881,63 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in *jlexer.Lexer, out case "PreviousTeam": out.PreviousTeam = string(in.String()) case "Height": - out.Height = int(in.Int()) + out.Height = int8(in.Int8()) case "Weight": - out.Weight = int(in.Int()) + out.Weight = int8(in.Int8()) case "Age": - out.Age = int(in.Int()) + out.Age = int8(in.Int8()) case "Stars": - out.Stars = int(in.Int()) + out.Stars = int8(in.Int8()) case "Overall": - out.Overall = int(in.Int()) + out.Overall = int8(in.Int8()) case "Stamina": - out.Stamina = int(in.Int()) + out.Stamina = int8(in.Int8()) case "Injury": - out.Injury = int(in.Int()) + out.Injury = int8(in.Int8()) case "FootballIQ": - out.FootballIQ = int(in.Int()) + out.FootballIQ = int8(in.Int8()) case "Speed": - out.Speed = int(in.Int()) + out.Speed = int8(in.Int8()) case "Carrying": - out.Carrying = int(in.Int()) + out.Carrying = int8(in.Int8()) case "Agility": - out.Agility = int(in.Int()) + out.Agility = int8(in.Int8()) case "Catching": - out.Catching = int(in.Int()) + out.Catching = int8(in.Int8()) case "RouteRunning": - out.RouteRunning = int(in.Int()) + out.RouteRunning = int8(in.Int8()) case "ZoneCoverage": - out.ZoneCoverage = int(in.Int()) + out.ZoneCoverage = int8(in.Int8()) case "ManCoverage": - out.ManCoverage = int(in.Int()) + out.ManCoverage = int8(in.Int8()) case "Strength": - out.Strength = int(in.Int()) + out.Strength = int8(in.Int8()) case "Tackle": - out.Tackle = int(in.Int()) + out.Tackle = int8(in.Int8()) case "PassBlock": - out.PassBlock = int(in.Int()) + out.PassBlock = int8(in.Int8()) case "RunBlock": - out.RunBlock = int(in.Int()) + out.RunBlock = int8(in.Int8()) case "PassRush": - out.PassRush = int(in.Int()) + out.PassRush = int8(in.Int8()) case "RunDefense": - out.RunDefense = int(in.Int()) + out.RunDefense = int8(in.Int8()) case "ThrowPower": - out.ThrowPower = int(in.Int()) + out.ThrowPower = int8(in.Int8()) case "ThrowAccuracy": - out.ThrowAccuracy = int(in.Int()) + out.ThrowAccuracy = int8(in.Int8()) case "KickAccuracy": - out.KickAccuracy = int(in.Int()) + out.KickAccuracy = int8(in.Int8()) case "KickPower": - out.KickPower = int(in.Int()) + out.KickPower = int8(in.Int8()) case "PuntAccuracy": - out.PuntAccuracy = int(in.Int()) + out.PuntAccuracy = int8(in.Int8()) case "PuntPower": - out.PuntPower = int(in.Int()) + out.PuntPower = int8(in.Int8()) case "Progression": - out.Progression = int(in.Int()) + out.Progression = int8(in.Int8()) case "Discipline": - out.Discipline = int(in.Int()) + out.Discipline = int8(in.Int8()) case "PotentialGrade": out.PotentialGrade = string(in.String()) case "FreeAgency": @@ -26058,147 +26255,147 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out *jwriter.Writer, i { const prefix string = ",\"Height\":" out.RawString(prefix) - out.Int(int(in.Height)) + out.Int8(int8(in.Height)) } { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int(int(in.Weight)) + out.Int8(int8(in.Weight)) } { const prefix string = ",\"Age\":" out.RawString(prefix) - out.Int(int(in.Age)) + out.Int8(int8(in.Age)) } { const prefix string = ",\"Stars\":" out.RawString(prefix) - out.Int(int(in.Stars)) + out.Int8(int8(in.Stars)) } { const prefix string = ",\"Overall\":" out.RawString(prefix) - out.Int(int(in.Overall)) + out.Int8(int8(in.Overall)) } { const prefix string = ",\"Stamina\":" out.RawString(prefix) - out.Int(int(in.Stamina)) + out.Int8(int8(in.Stamina)) } { const prefix string = ",\"Injury\":" out.RawString(prefix) - out.Int(int(in.Injury)) + out.Int8(int8(in.Injury)) } { const prefix string = ",\"FootballIQ\":" out.RawString(prefix) - out.Int(int(in.FootballIQ)) + out.Int8(int8(in.FootballIQ)) } { const prefix string = ",\"Speed\":" out.RawString(prefix) - out.Int(int(in.Speed)) + out.Int8(int8(in.Speed)) } { const prefix string = ",\"Carrying\":" out.RawString(prefix) - out.Int(int(in.Carrying)) + out.Int8(int8(in.Carrying)) } { const prefix string = ",\"Agility\":" out.RawString(prefix) - out.Int(int(in.Agility)) + out.Int8(int8(in.Agility)) } { const prefix string = ",\"Catching\":" out.RawString(prefix) - out.Int(int(in.Catching)) + out.Int8(int8(in.Catching)) } { const prefix string = ",\"RouteRunning\":" out.RawString(prefix) - out.Int(int(in.RouteRunning)) + out.Int8(int8(in.RouteRunning)) } { const prefix string = ",\"ZoneCoverage\":" out.RawString(prefix) - out.Int(int(in.ZoneCoverage)) + out.Int8(int8(in.ZoneCoverage)) } { const prefix string = ",\"ManCoverage\":" out.RawString(prefix) - out.Int(int(in.ManCoverage)) + out.Int8(int8(in.ManCoverage)) } { const prefix string = ",\"Strength\":" out.RawString(prefix) - out.Int(int(in.Strength)) + out.Int8(int8(in.Strength)) } { const prefix string = ",\"Tackle\":" out.RawString(prefix) - out.Int(int(in.Tackle)) + out.Int8(int8(in.Tackle)) } { const prefix string = ",\"PassBlock\":" out.RawString(prefix) - out.Int(int(in.PassBlock)) + out.Int8(int8(in.PassBlock)) } { const prefix string = ",\"RunBlock\":" out.RawString(prefix) - out.Int(int(in.RunBlock)) + out.Int8(int8(in.RunBlock)) } { const prefix string = ",\"PassRush\":" out.RawString(prefix) - out.Int(int(in.PassRush)) + out.Int8(int8(in.PassRush)) } { const prefix string = ",\"RunDefense\":" out.RawString(prefix) - out.Int(int(in.RunDefense)) + out.Int8(int8(in.RunDefense)) } { const prefix string = ",\"ThrowPower\":" out.RawString(prefix) - out.Int(int(in.ThrowPower)) + out.Int8(int8(in.ThrowPower)) } { const prefix string = ",\"ThrowAccuracy\":" out.RawString(prefix) - out.Int(int(in.ThrowAccuracy)) + out.Int8(int8(in.ThrowAccuracy)) } { const prefix string = ",\"KickAccuracy\":" out.RawString(prefix) - out.Int(int(in.KickAccuracy)) + out.Int8(int8(in.KickAccuracy)) } { const prefix string = ",\"KickPower\":" out.RawString(prefix) - out.Int(int(in.KickPower)) + out.Int8(int8(in.KickPower)) } { const prefix string = ",\"PuntAccuracy\":" out.RawString(prefix) - out.Int(int(in.PuntAccuracy)) + out.Int8(int8(in.PuntAccuracy)) } { const prefix string = ",\"PuntPower\":" out.RawString(prefix) - out.Int(int(in.PuntPower)) + out.Int8(int8(in.PuntPower)) } { const prefix string = ",\"Progression\":" out.RawString(prefix) - out.Int(int(in.Progression)) + out.Int8(int8(in.Progression)) } { const prefix string = ",\"Discipline\":" out.RawString(prefix) - out.Int(int(in.Discipline)) + out.Int8(int8(in.Discipline)) } { const prefix string = ",\"PotentialGrade\":" diff --git a/managers/CFBScheduleACC.go b/managers/CFBScheduleACC.go index 47cd3a9..31d4987 100644 --- a/managers/CFBScheduleACC.go +++ b/managers/CFBScheduleACC.go @@ -24,10 +24,6 @@ import ( // accTeamIDs for convenience var accTeamIDs = []uint{14, 18, 22, 26, 32, 37, 52, 57, 66, 71, 85, 91, 96, 97, 121, 122, 123} -// accTobaccoRoad: Duke(26), UNC(71), NC State(66), Wake Forest(123) -// All four play each other every season (6 intra-group games). -var accTobaccoRoadTeams = []uint{26, 71, 66, 123} - // accWeek14ConfLocks: conference games always in Week 14 var accWeek14ConfLocks = []SchedulerHistoryKey{ makeHistoryKey(18, 96), // California vs Stanford diff --git a/managers/ExportManager.go b/managers/ExportManager.go index 11ee848..378716a 100644 --- a/managers/ExportManager.go +++ b/managers/ExportManager.go @@ -44,9 +44,9 @@ func ExportAllRostersToCSV(w http.ResponseWriter) { idStr := strconv.Itoa(int(player.ID)) playerRow := []string{ player.TeamAbbr, idStr, csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(player.Age), strconv.Itoa(player.Stars), - player.HighSchool, player.City, player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), csvModel.OverallGrade, csvModel.SpeedGrade, + csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(int(player.Age)), strconv.Itoa(int(player.Stars)), + player.HighSchool, player.City, player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), csvModel.OverallGrade, csvModel.SpeedGrade, csvModel.FootballIQGrade, csvModel.AgilityGrade, csvModel.CarryingGrade, csvModel.CatchingGrade, csvModel.RouteRunningGrade, csvModel.ZoneCoverageGrade, csvModel.ManCoverageGrade, csvModel.StrengthGrade, csvModel.TackleGrade, csvModel.PassBlockGrade, csvModel.RunBlockGrade, @@ -103,9 +103,9 @@ func ExportTeamToCSV(TeamID string, w http.ResponseWriter) { idStr := strconv.Itoa(int(player.ID)) playerRow := []string{ team.TeamName, idStr, csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(player.Age), strconv.Itoa(player.Stars), - player.HighSchool, player.City, player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), csvModel.OverallGrade, csvModel.SpeedGrade, + csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(int(player.Age)), strconv.Itoa(int(player.Stars)), + player.HighSchool, player.City, player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), csvModel.OverallGrade, csvModel.SpeedGrade, csvModel.FootballIQGrade, csvModel.AgilityGrade, csvModel.CarryingGrade, csvModel.CatchingGrade, csvModel.RouteRunningGrade, csvModel.ZoneCoverageGrade, csvModel.ManCoverageGrade, csvModel.StrengthGrade, csvModel.TackleGrade, csvModel.PassBlockGrade, csvModel.RunBlockGrade, @@ -161,9 +161,9 @@ func ExportNFLTeamToCSV(TeamID string, w http.ResponseWriter) { csvModel := structs.MapNFLPlayerToCSVModel(player) playerRow := []string{ team.TeamName, strconv.Itoa(int(player.ID)), csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(player.Age), - player.HighSchool, player.Hometown, player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), csvModel.OverallGrade, csvModel.SpeedGrade, + csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(int(player.Age)), + player.HighSchool, player.Hometown, player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), csvModel.OverallGrade, csvModel.SpeedGrade, csvModel.FootballIQGrade, csvModel.AgilityGrade, csvModel.CarryingGrade, csvModel.CatchingGrade, csvModel.RouteRunningGrade, csvModel.ZoneCoverageGrade, csvModel.ManCoverageGrade, csvModel.StrengthGrade, csvModel.TackleGrade, csvModel.PassBlockGrade, csvModel.RunBlockGrade, @@ -223,9 +223,9 @@ func ExportAllNFLTeamsToCSV(w http.ResponseWriter) { csvModel := structs.MapNFLPlayerToCSVModel(player) playerRow := []string{ team.TeamName, strconv.Itoa(int(player.ID)), csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(player.Age), - player.HighSchool, player.Hometown, player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), csvModel.OverallGrade, csvModel.SpeedGrade, + csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(int(player.Age)), + player.HighSchool, player.Hometown, player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), csvModel.OverallGrade, csvModel.SpeedGrade, csvModel.FootballIQGrade, csvModel.AgilityGrade, csvModel.CarryingGrade, csvModel.CatchingGrade, csvModel.RouteRunningGrade, csvModel.ZoneCoverageGrade, csvModel.ManCoverageGrade, csvModel.StrengthGrade, csvModel.TackleGrade, csvModel.PassBlockGrade, csvModel.RunBlockGrade, @@ -336,9 +336,9 @@ func ExportDrafteesToCSV(w http.ResponseWriter) { for _, player := range draftees { playerRow := []string{ strconv.Itoa(int(player.ID)), player.FirstName, player.LastName, player.Position, - player.Archetype, player.PositionTwo, player.ArchetypeTwo, strconv.Itoa(player.Age), strconv.Itoa(player.Stars), player.College, - player.HighSchool, player.City, player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), player.OverallGrade, player.SpeedGrade, + player.Archetype, player.PositionTwo, player.ArchetypeTwo, strconv.Itoa(int(player.Age)), strconv.Itoa(int(player.Stars)), player.College, + player.HighSchool, player.City, player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), player.OverallGrade, player.SpeedGrade, player.FootballIQGrade, player.AgilityGrade, player.CarryingGrade, player.CatchingGrade, player.RouteRunningGrade, player.ZoneCoverageGrade, player.ManCoverageGrade, player.StrengthGrade, player.TackleGrade, player.PassBlockGrade, player.RunBlockGrade, @@ -397,20 +397,20 @@ func ExportPlayerStatsToCSV(cp []structs.CollegePlayerResponse, w http.ResponseW seasonStats := p.SeasonStats pr := []string{strconv.Itoa(int(p.ID)), p.FirstName, p.LastName, p.Position, p.PositionTwo, - p.Archetype, p.ArchetypeTwo, Year, RedshirtStatus, p.TeamAbbr, p.Conference, strconv.Itoa(p.Age), strconv.Itoa(p.Stars), - strconv.Itoa(seasonStats.PassingYards), strconv.Itoa(seasonStats.PassAttempts), strconv.Itoa(seasonStats.PassCompletions), strconv.Itoa(int(seasonStats.PassingAvg)), - strconv.Itoa(seasonStats.PassingTDs), strconv.Itoa(seasonStats.Interceptions), strconv.Itoa(seasonStats.LongestPass), strconv.Itoa(seasonStats.Sacks), - strconv.Itoa(int(seasonStats.QBRating)), strconv.Itoa(seasonStats.RushAttempts), strconv.Itoa(seasonStats.RushingYards), strconv.Itoa(int(seasonStats.RushingAvg)), - strconv.Itoa(seasonStats.RushingTDs), strconv.Itoa(seasonStats.Fumbles), strconv.Itoa(seasonStats.LongestRush), strconv.Itoa(seasonStats.Targets), - strconv.Itoa(seasonStats.Catches), strconv.Itoa(seasonStats.ReceivingYards), strconv.Itoa(int(seasonStats.ReceivingAvg)), strconv.Itoa(seasonStats.ReceivingTDs), - strconv.Itoa(seasonStats.LongestReception), strconv.Itoa(int(seasonStats.SoloTackles)), strconv.Itoa(int(seasonStats.AssistedTackles)), strconv.Itoa(int(seasonStats.TacklesForLoss)), - strconv.Itoa(int(seasonStats.SacksMade)), strconv.Itoa(seasonStats.ForcedFumbles), strconv.Itoa(seasonStats.PassDeflections), strconv.Itoa(seasonStats.InterceptionsCaught), - strconv.Itoa(seasonStats.Safeties), strconv.Itoa(seasonStats.DefensiveTDs), strconv.Itoa(seasonStats.FGMade), strconv.Itoa(seasonStats.FGAttempts), - strconv.Itoa(seasonStats.LongestFG), strconv.Itoa(seasonStats.ExtraPointsMade), strconv.Itoa(seasonStats.ExtraPointsAttempted), strconv.Itoa(seasonStats.KickoffTouchbacks), - strconv.Itoa(seasonStats.Punts), strconv.Itoa(seasonStats.PuntTouchbacks), strconv.Itoa(seasonStats.PuntsInside20), strconv.Itoa(seasonStats.KickReturns), - strconv.Itoa(seasonStats.KickReturnTDs), strconv.Itoa(seasonStats.KickReturnYards), strconv.Itoa(seasonStats.PuntReturns), strconv.Itoa(seasonStats.PuntReturnTDs), - strconv.Itoa(seasonStats.PuntReturnYards), strconv.Itoa(int(seasonStats.STSoloTackles)), strconv.Itoa(int(seasonStats.STAssistedTackles)), strconv.Itoa(seasonStats.PuntsBlocked), - strconv.Itoa(seasonStats.FGBlocked), strconv.Itoa(seasonStats.Snaps), strconv.Itoa(seasonStats.Pancakes), "No.", + p.Archetype, p.ArchetypeTwo, Year, RedshirtStatus, p.TeamAbbr, p.Conference, strconv.Itoa(int(p.Age)), strconv.Itoa(int(p.Stars)), + strconv.Itoa(int(seasonStats.PassingYards)), strconv.Itoa(int(seasonStats.PassAttempts)), strconv.Itoa(int(seasonStats.PassCompletions)), strconv.Itoa(int(seasonStats.PassingAvg)), + strconv.Itoa(int(seasonStats.PassingTDs)), strconv.Itoa(int(seasonStats.Interceptions)), strconv.Itoa(int(seasonStats.LongestPass)), strconv.Itoa(int(seasonStats.Sacks)), + strconv.Itoa(int(seasonStats.QBRating)), strconv.Itoa(int(seasonStats.RushAttempts)), strconv.Itoa(int(seasonStats.RushingYards)), strconv.Itoa(int(seasonStats.RushingAvg)), + strconv.Itoa(int(seasonStats.RushingTDs)), strconv.Itoa(int(seasonStats.Fumbles)), strconv.Itoa(int(seasonStats.LongestRush)), strconv.Itoa(int(seasonStats.Targets)), + strconv.Itoa(int(seasonStats.Catches)), strconv.Itoa(int(seasonStats.ReceivingYards)), strconv.Itoa(int(seasonStats.ReceivingAvg)), strconv.Itoa(int(seasonStats.ReceivingTDs)), + strconv.Itoa(int(seasonStats.LongestReception)), strconv.Itoa(int(seasonStats.SoloTackles)), strconv.Itoa(int(seasonStats.AssistedTackles)), strconv.Itoa(int(seasonStats.TacklesForLoss)), + strconv.Itoa(int(seasonStats.SacksMade)), strconv.Itoa(int(seasonStats.ForcedFumbles)), strconv.Itoa(int(seasonStats.PassDeflections)), strconv.Itoa(int(seasonStats.InterceptionsCaught)), + strconv.Itoa(int(seasonStats.Safeties)), strconv.Itoa(int(seasonStats.DefensiveTDs)), strconv.Itoa(int(seasonStats.FGMade)), strconv.Itoa(int(seasonStats.FGAttempts)), + strconv.Itoa(int(seasonStats.LongestFG)), strconv.Itoa(int(seasonStats.ExtraPointsMade)), strconv.Itoa(int(seasonStats.ExtraPointsAttempted)), strconv.Itoa(int(seasonStats.KickoffTouchbacks)), + strconv.Itoa(int(seasonStats.Punts)), strconv.Itoa(int(seasonStats.PuntTouchbacks)), strconv.Itoa(int(seasonStats.PuntsInside20)), strconv.Itoa(int(seasonStats.KickReturns)), + strconv.Itoa(int(seasonStats.KickReturnTDs)), strconv.Itoa(int(seasonStats.KickReturnYards)), strconv.Itoa(int(seasonStats.PuntReturns)), strconv.Itoa(int(seasonStats.PuntReturnTDs)), + strconv.Itoa(int(seasonStats.PuntReturnYards)), strconv.Itoa(int(seasonStats.STSoloTackles)), strconv.Itoa(int(seasonStats.STAssistedTackles)), strconv.Itoa(int(seasonStats.PuntsBlocked)), + strconv.Itoa(int(seasonStats.FGBlocked)), strconv.Itoa(int(seasonStats.Snaps)), strconv.Itoa(int(seasonStats.Pancakes)), "No.", } err = writer.Write(pr) if err != nil { @@ -445,9 +445,9 @@ func ExportTransferPlayersToCSV(transfers []structs.CollegePlayer, w http.Respon for _, player := range transfers { csvModel := structs.MapPlayerToCSVModel(player) playerRow := []string{ - player.TeamAbbr, strconv.Itoa(int(player.ID)), csvModel.FirstName, csvModel.LastName, strconv.Itoa(player.Stars), + player.TeamAbbr, strconv.Itoa(int(player.ID)), csvModel.FirstName, csvModel.LastName, strconv.Itoa(int(player.Stars)), csvModel.Archetype, csvModel.Position, - csvModel.Year, strconv.Itoa(player.Age), csvModel.RedshirtStatus, + csvModel.Year, strconv.Itoa(int(player.Age)), csvModel.RedshirtStatus, csvModel.OverallGrade, } @@ -808,20 +808,20 @@ func ExportCollegePlayerStatsToCSV(cp []structs.CollegePlayerResponse, viewType } pr := []string{p.FirstName, p.LastName, p.Position, - p.Archetype, Year, RedshirtStatus, p.TeamAbbr, p.Conference, strconv.Itoa(p.Age), strconv.Itoa(p.Stars), - strconv.Itoa(seasonStats.PassingYards), strconv.Itoa(seasonStats.PassAttempts), strconv.Itoa(seasonStats.PassCompletions), strconv.Itoa(int(seasonStats.PassingAvg)), - strconv.Itoa(seasonStats.PassingTDs), strconv.Itoa(seasonStats.Interceptions), strconv.Itoa(seasonStats.LongestPass), strconv.Itoa(seasonStats.Sacks), - strconv.Itoa(int(seasonStats.QBRating)), strconv.Itoa(seasonStats.RushAttempts), strconv.Itoa(seasonStats.RushingYards), strconv.Itoa(int(seasonStats.RushingAvg)), - strconv.Itoa(seasonStats.RushingTDs), strconv.Itoa(seasonStats.Fumbles), strconv.Itoa(seasonStats.LongestRush), strconv.Itoa(seasonStats.Targets), - strconv.Itoa(seasonStats.Catches), strconv.Itoa(seasonStats.ReceivingYards), strconv.Itoa(int(seasonStats.ReceivingAvg)), strconv.Itoa(seasonStats.ReceivingTDs), - strconv.Itoa(seasonStats.LongestReception), strconv.Itoa(int(seasonStats.SoloTackles)), strconv.Itoa(int(seasonStats.AssistedTackles)), strconv.Itoa(int(seasonStats.TacklesForLoss)), - strconv.Itoa(int(seasonStats.SacksMade)), strconv.Itoa(seasonStats.ForcedFumbles), strconv.Itoa(seasonStats.PassDeflections), strconv.Itoa(seasonStats.InterceptionsCaught), - strconv.Itoa(seasonStats.Safeties), strconv.Itoa(seasonStats.DefensiveTDs), strconv.Itoa(seasonStats.FGMade), strconv.Itoa(seasonStats.FGAttempts), - strconv.Itoa(seasonStats.LongestFG), strconv.Itoa(seasonStats.ExtraPointsMade), strconv.Itoa(seasonStats.ExtraPointsAttempted), strconv.Itoa(seasonStats.KickoffTouchbacks), - strconv.Itoa(seasonStats.Punts), strconv.Itoa(seasonStats.PuntTouchbacks), strconv.Itoa(seasonStats.PuntsInside20), strconv.Itoa(seasonStats.KickReturns), - strconv.Itoa(seasonStats.KickReturnTDs), strconv.Itoa(seasonStats.KickReturnYards), strconv.Itoa(seasonStats.PuntReturns), strconv.Itoa(seasonStats.PuntReturnTDs), - strconv.Itoa(seasonStats.PuntReturnYards), strconv.Itoa(int(seasonStats.STSoloTackles)), strconv.Itoa(int(seasonStats.STAssistedTackles)), strconv.Itoa(seasonStats.PuntsBlocked), - strconv.Itoa(seasonStats.FGBlocked), strconv.Itoa(seasonStats.Snaps), strconv.Itoa(seasonStats.Pancakes), answer, + p.Archetype, Year, RedshirtStatus, p.TeamAbbr, p.Conference, strconv.Itoa(int(p.Age)), strconv.Itoa(int(p.Stars)), + strconv.Itoa(int(seasonStats.PassingYards)), strconv.Itoa(int(seasonStats.PassAttempts)), strconv.Itoa(int(seasonStats.PassCompletions)), strconv.Itoa(int(seasonStats.PassingAvg)), + strconv.Itoa(int(seasonStats.PassingTDs)), strconv.Itoa(int(seasonStats.Interceptions)), strconv.Itoa(int(seasonStats.LongestPass)), strconv.Itoa(int(seasonStats.Sacks)), + strconv.Itoa(int(seasonStats.RushAttempts)), strconv.Itoa(int(seasonStats.RushingYards)), strconv.Itoa(int(seasonStats.RushingAvg)), + strconv.Itoa(int(seasonStats.RushingTDs)), strconv.Itoa(int(seasonStats.Fumbles)), strconv.Itoa(int(seasonStats.LongestRush)), strconv.Itoa(int(seasonStats.Targets)), + strconv.Itoa(int(seasonStats.Catches)), strconv.Itoa(int(seasonStats.ReceivingYards)), strconv.Itoa(int(seasonStats.ReceivingAvg)), strconv.Itoa(int(seasonStats.ReceivingTDs)), + strconv.Itoa(int(seasonStats.LongestReception)), strconv.Itoa(int(seasonStats.SoloTackles)), strconv.Itoa(int(seasonStats.AssistedTackles)), strconv.Itoa(int(seasonStats.TacklesForLoss)), + strconv.Itoa(int(seasonStats.SacksMade)), strconv.Itoa(int(seasonStats.ForcedFumbles)), strconv.Itoa(int(seasonStats.PassDeflections)), strconv.Itoa(int(seasonStats.InterceptionsCaught)), + strconv.Itoa(int(seasonStats.Safeties)), strconv.Itoa(int(seasonStats.DefensiveTDs)), strconv.Itoa(int(seasonStats.FGMade)), strconv.Itoa(int(seasonStats.FGAttempts)), + strconv.Itoa(int(seasonStats.LongestFG)), strconv.Itoa(int(seasonStats.ExtraPointsMade)), strconv.Itoa(int(seasonStats.ExtraPointsAttempted)), strconv.Itoa(int(seasonStats.KickoffTouchbacks)), + strconv.Itoa(int(seasonStats.Punts)), strconv.Itoa(int(seasonStats.PuntTouchbacks)), strconv.Itoa(int(seasonStats.PuntsInside20)), strconv.Itoa(int(seasonStats.KickReturns)), + strconv.Itoa(int(seasonStats.KickReturnTDs)), strconv.Itoa(int(seasonStats.KickReturnYards)), strconv.Itoa(int(seasonStats.PuntReturns)), strconv.Itoa(int(seasonStats.PuntReturnTDs)), + strconv.Itoa(int(seasonStats.PuntReturnYards)), strconv.Itoa(int(seasonStats.STSoloTackles)), strconv.Itoa(int(seasonStats.STAssistedTackles)), strconv.Itoa(int(seasonStats.PuntsBlocked)), + strconv.Itoa(int(seasonStats.FGBlocked)), strconv.Itoa(int(seasonStats.Snaps)), strconv.Itoa(int(seasonStats.Pancakes)), answer, } err = writer.Write(pr) if err != nil { @@ -884,20 +884,20 @@ func ExportNFLPlayerStatsToCSV(cp []structs.NFLPlayerResponse, viewType string, } pr := []string{p.FirstName, p.LastName, p.Position, - p.Archetype, p.PositionTwo, p.ArchetypeTwo, Year, p.TeamAbbr, p.Conference, p.Division, strconv.Itoa(p.Age), strconv.Itoa(p.Stars), - strconv.Itoa(seasonStats.PassingYards), strconv.Itoa(seasonStats.PassAttempts), strconv.Itoa(seasonStats.PassCompletions), strconv.Itoa(int(seasonStats.PassingAvg)), - strconv.Itoa(seasonStats.PassingTDs), strconv.Itoa(seasonStats.Interceptions), strconv.Itoa(seasonStats.LongestPass), strconv.Itoa(seasonStats.Sacks), - strconv.Itoa(int(seasonStats.QBRating)), strconv.Itoa(seasonStats.RushAttempts), strconv.Itoa(seasonStats.RushingYards), strconv.Itoa(int(seasonStats.RushingAvg)), - strconv.Itoa(seasonStats.RushingTDs), strconv.Itoa(seasonStats.Fumbles), strconv.Itoa(seasonStats.LongestRush), strconv.Itoa(seasonStats.Targets), - strconv.Itoa(seasonStats.Catches), strconv.Itoa(seasonStats.ReceivingYards), strconv.Itoa(int(seasonStats.ReceivingAvg)), strconv.Itoa(seasonStats.ReceivingTDs), - strconv.Itoa(seasonStats.LongestReception), strconv.Itoa(int(seasonStats.SoloTackles)), strconv.Itoa(int(seasonStats.AssistedTackles)), strconv.Itoa(int(seasonStats.TacklesForLoss)), - strconv.Itoa(int(seasonStats.SacksMade)), strconv.Itoa(seasonStats.ForcedFumbles), strconv.Itoa(seasonStats.PassDeflections), strconv.Itoa(seasonStats.InterceptionsCaught), - strconv.Itoa(seasonStats.Safeties), strconv.Itoa(seasonStats.DefensiveTDs), strconv.Itoa(seasonStats.FGMade), strconv.Itoa(seasonStats.FGAttempts), - strconv.Itoa(seasonStats.LongestFG), strconv.Itoa(seasonStats.ExtraPointsMade), strconv.Itoa(seasonStats.ExtraPointsAttempted), strconv.Itoa(seasonStats.KickoffTouchbacks), - strconv.Itoa(seasonStats.Punts), strconv.Itoa(seasonStats.PuntTouchbacks), strconv.Itoa(seasonStats.PuntsInside20), strconv.Itoa(seasonStats.KickReturns), - strconv.Itoa(seasonStats.KickReturnTDs), strconv.Itoa(seasonStats.KickReturnYards), strconv.Itoa(seasonStats.PuntReturns), strconv.Itoa(seasonStats.PuntReturnTDs), - strconv.Itoa(seasonStats.PuntReturnYards), strconv.Itoa(int(seasonStats.STSoloTackles)), strconv.Itoa(int(seasonStats.STAssistedTackles)), strconv.Itoa(seasonStats.PuntsBlocked), - strconv.Itoa(seasonStats.FGBlocked), strconv.Itoa(seasonStats.Snaps), strconv.Itoa(seasonStats.Pancakes), "No.", + p.Archetype, p.PositionTwo, p.ArchetypeTwo, Year, p.TeamAbbr, p.Conference, p.Division, strconv.Itoa(int(p.Age)), strconv.Itoa(int(p.Stars)), + strconv.Itoa(int(seasonStats.PassingYards)), strconv.Itoa(int(seasonStats.PassAttempts)), strconv.Itoa(int(seasonStats.PassCompletions)), strconv.Itoa(int(seasonStats.PassingAvg)), + strconv.Itoa(int(seasonStats.PassingTDs)), strconv.Itoa(int(seasonStats.Interceptions)), strconv.Itoa(int(seasonStats.LongestPass)), strconv.Itoa(int(seasonStats.Sacks)), + strconv.Itoa(int(seasonStats.QBRating)), strconv.Itoa(int(seasonStats.RushAttempts)), strconv.Itoa(int(seasonStats.RushingYards)), strconv.Itoa(int(seasonStats.RushingAvg)), + strconv.Itoa(int(seasonStats.RushingTDs)), strconv.Itoa(int(seasonStats.Fumbles)), strconv.Itoa(int(seasonStats.LongestRush)), strconv.Itoa(int(seasonStats.Targets)), + strconv.Itoa(int(seasonStats.Catches)), strconv.Itoa(int(seasonStats.ReceivingYards)), strconv.Itoa(int(seasonStats.ReceivingAvg)), strconv.Itoa(int(seasonStats.ReceivingTDs)), + strconv.Itoa(int(seasonStats.LongestReception)), strconv.Itoa(int(seasonStats.SoloTackles)), strconv.Itoa(int(seasonStats.AssistedTackles)), strconv.Itoa(int(seasonStats.TacklesForLoss)), + strconv.Itoa(int(seasonStats.ForcedFumbles)), strconv.Itoa(int(seasonStats.PassDeflections)), strconv.Itoa(int(seasonStats.InterceptionsCaught)), + strconv.Itoa(int(seasonStats.Safeties)), strconv.Itoa(int(seasonStats.DefensiveTDs)), strconv.Itoa(int(seasonStats.FGMade)), strconv.Itoa(int(seasonStats.FGAttempts)), + strconv.Itoa(int(seasonStats.LongestFG)), strconv.Itoa(int(seasonStats.ExtraPointsMade)), strconv.Itoa(int(seasonStats.ExtraPointsAttempted)), strconv.Itoa(int(seasonStats.KickoffTouchbacks)), + strconv.Itoa(int(seasonStats.Punts)), strconv.Itoa(int(seasonStats.PuntTouchbacks)), strconv.Itoa(int(seasonStats.PuntsInside20)), strconv.Itoa(int(seasonStats.KickReturns)), + strconv.Itoa(int(seasonStats.KickReturnTDs)), strconv.Itoa(int(seasonStats.KickReturnYards)), strconv.Itoa(int(seasonStats.PuntReturns)), strconv.Itoa(int(seasonStats.PuntReturnTDs)), + strconv.Itoa(int(seasonStats.PuntReturnYards)), strconv.Itoa(int(seasonStats.STSoloTackles)), strconv.Itoa(int(seasonStats.STAssistedTackles)), strconv.Itoa(int(seasonStats.PuntsBlocked)), + strconv.Itoa(int(seasonStats.FGBlocked)), strconv.Itoa(int(seasonStats.Snaps)), strconv.Itoa(int(seasonStats.Pancakes)), "No.", } err = writer.Write(pr) if err != nil { @@ -1002,9 +1002,9 @@ func ExportNFLFreeAgentsToCSV(w http.ResponseWriter) { idStr := strconv.Itoa(int(player.PlayerID)) playerRow := []string{ csvModel.PreviousTeam, idStr, csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(player.Age), strconv.Itoa(player.Stars), - player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), csvModel.OverallGrade, csvModel.SpeedGrade, + csvModel.Archetype, csvModel.PositionTwo, csvModel.ArchetypeTwo, csvModel.Year, strconv.Itoa(int(player.Age)), strconv.Itoa(int(player.Stars)), + player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), csvModel.OverallGrade, csvModel.SpeedGrade, csvModel.FootballIQGrade, csvModel.AgilityGrade, csvModel.CarryingGrade, csvModel.CatchingGrade, csvModel.RouteRunningGrade, csvModel.ZoneCoverageGrade, csvModel.ManCoverageGrade, csvModel.StrengthGrade, csvModel.TackleGrade, csvModel.PassBlockGrade, csvModel.RunBlockGrade, diff --git a/managers/FaceDataManager.go b/managers/FaceDataManager.go index 355862b..ac04cca 100644 --- a/managers/FaceDataManager.go +++ b/managers/FaceDataManager.go @@ -143,7 +143,7 @@ func MigrateFaceDataToRecruits() { skinColor := getSkinColor(lastName, lNameMap) // Store data - face := getFace(r.ID, r.Weight, skinColor, "", faceDataBlob) + face := getFace(r.ID, int(r.Weight), skinColor, "", faceDataBlob) faceDataList = append(faceDataList, face) } @@ -165,7 +165,7 @@ func MigrateFaceDataToCollegePlayers() { skinColor := getSkinColor(lastName, lNameMap) // Store data - face := getFace(p.ID, p.Weight, skinColor, "", faceDataBlob) + face := getFace(p.ID, int(p.Weight), skinColor, "", faceDataBlob) faceDataList = append(faceDataList, face) } @@ -187,7 +187,7 @@ func MigrateFaceDataToHistoricCollegePlayers() { skinColor := getSkinColor(lastName, lNameMap) // Store data - face := getFace(p.ID, p.Weight, skinColor, "", faceDataBlob) + face := getFace(p.ID, int(p.Weight), skinColor, "", faceDataBlob) faceDataList = append(faceDataList, face) } @@ -212,7 +212,7 @@ func MigrateFaceDataToNFLPlayers() { skinColor := getSkinColor(lastName, lNameMap) // Store data - face := getFace(p.ID, p.Weight, skinColor, "", faceDataBlob) + face := getFace(p.ID, int(p.Weight), skinColor, "", faceDataBlob) faceDataList = append(faceDataList, face) } @@ -234,7 +234,7 @@ func MigrateFaceDataToRetiredPlayers() { skinColor := getSkinColor(lastName, lNameMap) // Store data - face := getFace(p.ID, p.Weight, skinColor, "", faceDataBlob) + face := getFace(p.ID, int(p.Weight), skinColor, "", faceDataBlob) faceDataList = append(faceDataList, face) } diff --git a/managers/FreeAgencyManager.go b/managers/FreeAgencyManager.go index 696991f..3d0213a 100644 --- a/managers/FreeAgencyManager.go +++ b/managers/FreeAgencyManager.go @@ -215,32 +215,32 @@ func GetAllFreeAgentsWithOffers() []models.FreeAgentResponse { PositionTwo: fa.PositionTwo, ArchetypeTwo: fa.ArchetypeTwo, Archetype: fa.Archetype, - Age: fa.Age, - Overall: fa.Overall, - Height: fa.Height, - Weight: fa.Weight, - FootballIQ: fa.FootballIQ, - Speed: fa.Speed, - Carrying: fa.Carrying, - Agility: fa.Agility, - Catching: fa.Catching, - RouteRunning: fa.RouteRunning, - ZoneCoverage: fa.ZoneCoverage, - ManCoverage: fa.ManCoverage, - Strength: fa.Strength, - Tackle: fa.Tackle, - PassBlock: fa.PassBlock, - RunBlock: fa.RunBlock, - PassRush: fa.PassRush, - RunDefense: fa.RunDefense, - ThrowPower: fa.ThrowPower, - ThrowAccuracy: fa.ThrowAccuracy, - KickAccuracy: fa.KickAccuracy, - KickPower: fa.KickPower, - PuntAccuracy: fa.PuntAccuracy, - PuntPower: fa.PuntPower, - InjuryRating: fa.Injury, - Stamina: fa.Stamina, + Age: int8(fa.Age), + Overall: int8(fa.Overall), + Height: int8(fa.Height), + Weight: int8(fa.Weight), + FootballIQ: int8(fa.FootballIQ), + Speed: int8(fa.Speed), + Carrying: int8(fa.Carrying), + Agility: int8(fa.Agility), + Catching: int8(fa.Catching), + RouteRunning: int8(fa.RouteRunning), + ZoneCoverage: int8(fa.ZoneCoverage), + ManCoverage: int8(fa.ManCoverage), + Strength: int8(fa.Strength), + Tackle: int8(fa.Tackle), + PassBlock: int8(fa.PassBlock), + RunBlock: int8(fa.RunBlock), + PassRush: int8(fa.PassRush), + RunDefense: int8(fa.RunDefense), + ThrowPower: int8(fa.ThrowPower), + ThrowAccuracy: int8(fa.ThrowAccuracy), + KickAccuracy: int8(fa.KickAccuracy), + KickPower: int8(fa.KickPower), + PuntAccuracy: int8(fa.PuntAccuracy), + PuntPower: int8(fa.PuntPower), + InjuryRating: int8(fa.Injury), + Stamina: int8(fa.Stamina), PotentialGrade: fa.PotentialGrade, FreeAgency: fa.FreeAgency, Personality: fa.Personality, diff --git a/managers/GameplanManager.go b/managers/GameplanManager.go index e07a3e1..1468d9f 100644 --- a/managers/GameplanManager.go +++ b/managers/GameplanManager.go @@ -540,7 +540,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame score += 50 } // score += ((cp.ThrowAccuracy + cp.ThrowPower) / 2) - score += cp.Overall + score += int(cp.Overall) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -566,7 +566,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame score -= bonus } - score += ((cp.Speed + cp.Agility + cp.Strength + cp.Carrying) / 4) + score += ((int(cp.Speed) + int(cp.Agility) + int(cp.Strength) + int(cp.Carrying)) / 4) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -591,7 +591,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame } else if isBadFit && !isGoodFit { score -= bonus } - score += ((cp.Strength + cp.Carrying + cp.PassBlock + cp.RunBlock) / 4) + score += ((int(cp.Strength) + int(cp.Carrying) + int(cp.PassBlock) + int(cp.RunBlock)) / 4) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1042,7 +1042,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame score -= bonus } - score += cp.PuntAccuracy + cp.PuntPower + score += int(cp.PuntAccuracy) + int(cp.PuntPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1069,7 +1069,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame } else if isBadFit && !isGoodFit { score -= bonus } - score += cp.KickAccuracy + cp.KickPower + score += int(cp.KickAccuracy) + int(cp.KickPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, Archetype: arch, @@ -1096,7 +1096,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame score -= bonus } - score += cp.KickAccuracy + cp.KickPower + score += int(cp.KickAccuracy) + int(cp.KickPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1115,7 +1115,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame } else if pos == "WR" || pos == "RB" { score += 25 } - score += cp.Agility + score += int(cp.Agility) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1134,7 +1134,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame } else if pos == "WR" || pos == "RB" { score += 25 } - score += cp.Speed + score += int(cp.Speed) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1154,7 +1154,7 @@ func ReAlignCollegeDepthChart(db *gorm.DB, teamID string, gp structs.CollegeGame score += 25 } - score += cp.Tackle + score += int(cp.Tackle) dcpObj := structs.DepthChartPositionDTO{ Position: pos, Archetype: arch, @@ -1299,7 +1299,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc } else if pos == "ATH" && (arch == "Triple-Threat" || arch == "Field General") { score += 50 } - score += cp.Overall + score += int(cp.Overall) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1325,7 +1325,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc score -= bonus } - score += ((cp.Speed + cp.Agility + cp.Strength + cp.Carrying) / 4) + score += ((int(cp.Speed) + int(cp.Agility) + int(cp.Strength) + int(cp.Carrying)) / 4) dcpObj := structs.DepthChartPositionDTO{ Position: pos, Archetype: arch, @@ -1349,7 +1349,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc } else if isBadFit && !isGoodFit { score -= bonus } - score += ((cp.Strength + cp.Carrying + cp.PassBlock + cp.RunBlock) / 4) + score += ((int(cp.Strength) + int(cp.Carrying) + int(cp.PassBlock) + int(cp.RunBlock)) / 4) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1799,7 +1799,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc score -= bonus } - score += cp.PuntAccuracy + cp.PuntPower + score += int(cp.PuntAccuracy) + int(cp.PuntPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1825,7 +1825,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc } else if isBadFit && !isGoodFit { score -= bonus } - score += cp.KickAccuracy + cp.KickPower + score += int(cp.KickAccuracy) + int(cp.KickPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1852,7 +1852,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc score -= 50 } - score += cp.KickAccuracy + cp.KickPower + score += int(cp.KickAccuracy) + int(cp.KickPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1871,7 +1871,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc } else if pos == "WR" || pos == "RB" { score += 25 } - score += cp.Agility + score += int(cp.Agility) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1889,7 +1889,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc } else if pos == "WR" || pos == "RB" { score += 25 } - score += cp.Speed + score += int(cp.Speed) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1911,7 +1911,7 @@ func ReAlignNFLDepthChart(db *gorm.DB, teamID string, gp structs.NFLGameplan, dc score += 15 } - score += cp.Tackle + score += int(cp.Tackle) dcpObj := structs.DepthChartPositionDTO{ Position: pos, Archetype: arch, diff --git a/managers/GenerationManager.go b/managers/GenerationManager.go index 294ee4b..40a9549 100644 --- a/managers/GenerationManager.go +++ b/managers/GenerationManager.go @@ -234,7 +234,7 @@ func (pg *CrootGenerator) generatePlayer() (structs.Recruit, structs.Player) { skinColor := getSkinColorByEthnicity(pg.pickedEthnicity) - face := getFace(pg.newID, player.Weight, skinColor, "", pg.faceDataBlob) + face := getFace(pg.newID, int(player.Weight), skinColor, "", pg.faceDataBlob) pg.FacesList = append(pg.FacesList, face) @@ -256,13 +256,13 @@ func (pg *CrootGenerator) generateTwin(player *structs.Recruit) (structs.Recruit stars := util.GetStarRating() if coinFlip == 2 { twinPosition = player.Position - stars = player.Stars + stars = int(player.Stars) } - twinNotes := "Twin Brother of " + strconv.Itoa(player.Stars) + " Star Recruit " + player.Position + " " + player.FirstName + " " + player.LastName + twinNotes := "Twin Brother of " + strconv.Itoa(int(player.Stars)) + " Star Recruit " + player.Position + " " + player.FirstName + " " + player.LastName twinPlayer := createRecruit(twinPosition, stars, twinN, player.LastName, pg.attributeBlob, player.State, pg.crootLocations[player.State]) twinPlayer.AssignRelativeData(uint(firstTwinRelativeID), 4, 0, "", twinNotes) twinPlayer.AssignTwinData(player.LastName, player.City, player.State, player.HighSchool) - notes := "Twin Brother of " + strconv.Itoa(twinPlayer.Stars) + " Star Recruit " + twinPlayer.Position + " " + twinPlayer.FirstName + " " + twinPlayer.LastName + notes := "Twin Brother of " + strconv.Itoa(int(twinPlayer.Stars)) + " Star Recruit " + twinPlayer.Position + " " + twinPlayer.FirstName + " " + twinPlayer.LastName player.AssignRelativeData(uint(secondTwinRelativeID), 4, 0, "", notes) globalTwinPlayer := structs.Player{ CollegePlayerID: int(secondTwinRelativeID), @@ -278,7 +278,7 @@ func (pg *CrootGenerator) generateTwin(player *structs.Recruit) (structs.Recruit globalPlayer.AssignID(uint(firstTwinRelativeID)) skinColor := getSkinColorByEthnicity(pg.pickedEthnicity) - face := getFace(secondTwinRelativeID, twinPlayer.Weight, skinColor, "", pg.faceDataBlob) + face := getFace(secondTwinRelativeID, int(twinPlayer.Weight), skinColor, "", pg.faceDataBlob) pg.FacesList = append(pg.FacesList, face) return twinPlayer, globalTwinPlayer @@ -336,11 +336,11 @@ func (pg *CrootGenerator) updateStatistics(player structs.Recruit) { pg.athCount++ } - if player.Overall > pg.highestOvr { - pg.highestOvr = player.Overall + if int(player.Overall) > pg.highestOvr { + pg.highestOvr = int(player.Overall) } - if player.Overall < pg.lowestOvr { - pg.lowestOvr = player.Overall + if int(player.Overall) < pg.lowestOvr { + pg.lowestOvr = int(player.Overall) } } @@ -509,7 +509,7 @@ func GenerateWalkOns() { skinColor := getSkinColorByEthnicity(ethnicity) - face := getFace(newID, recruit.Weight, skinColor, "", faceDataBlob) + face := getFace(newID, int(recruit.Weight), skinColor, "", faceDataBlob) faces = append(faces, face) globalPlayerList = append(globalPlayerList, playerRecord) recruitBatchList = append(recruitBatchList, recruit) @@ -566,46 +566,6 @@ func CreateCustomCroots() { repository.CreateGlobalPlayerRecordsBatch(db, globalList, 100) } -func GenerateCoachesForAITeams() { - db := dbprovider.GetInstance().GetDB() - - teams := GetOnlyAITeamRecruitingProfiles() - firstNameMap, lastNameMap := getNameMaps() - - coachList := []structs.CollegeCoach{} - allActiveCoaches := GetAllAICollegeCoaches() - - retiredPlayers := GetRetiredSimNFLPlayers() - retireeMap := make(map[uint]bool) - coachMap := make(map[uint]bool) - - for _, coach := range allActiveCoaches { - if coach.FormerPlayerID > 0 { - coachMap[coach.FormerPlayerID] = true - } - } - - for _, team := range teams { - // Skip over teams currently controlled by a user - if !team.IsAI || team.IsUserTeam { - continue - } - - pickedEthnicity := pickEthnicity() - almaMater := pickAlmaMater(teams) - coach := createCollegeCoach(team, almaMater.ID, almaMater.TeamAbbreviation, firstNameMap[pickedEthnicity], lastNameMap[pickedEthnicity], retiredPlayers, &retireeMap, &coachMap) - team.UpdateAIBehavior(true, true, coach.StarMax, coach.StarMin, coach.PointMin, coach.PointMax, coach.OffensiveScheme, coach.DefensiveScheme) - team.AssignRecruiter(coach.CoachName) - coachList = append(coachList, coach) - - db.Save(&team) - } - - for _, coach := range coachList { - db.Create(&coach) - } -} - func createRecruit(position string, stars int, firstName, lastName string, blob map[string]map[string]map[string]map[string]interface{}, state string, hsBlob []structs.CrootLocation) structs.Recruit { age := 18 city, highSchool := getCityAndHighSchool(hsBlob) @@ -643,7 +603,7 @@ func createRecruit(position string, stars int, firstName, lastName string, blob recruitingBias := util.GetRecruitingBias() workEthic := util.GetWorkEthic() academicBias := util.GetAcademicBias() - potentialGrade := util.GetWeightedPotentialGrade(int(progression)) + potentialGrade := util.GetWeightedPotentialGrade(int8(progression)) affinityOne := util.PickAffinity(stars, "", false) affinityTwo := util.PickAffinity(stars, affinityOne, true) @@ -672,34 +632,34 @@ func createRecruit(position string, stars int, firstName, lastName string, blob LastName: lastName, Position: position, Archetype: archetype, - Age: age, - Stars: stars, - Height: height, - Weight: weight, - Stamina: int(stamina), - Injury: int(injury), - FootballIQ: footballIQ, - Speed: speed, - Carrying: carrying, - Agility: agility, - Catching: catching, - RouteRunning: routeRunning, - ZoneCoverage: zoneCoverage, - ManCoverage: manCoverage, - Strength: strength, - Tackle: tackle, - PassBlock: passBlock, - RunBlock: runBlock, - PassRush: passRush, - RunDefense: runDefense, - ThrowPower: throwPower, - ThrowAccuracy: throwAccuracy, - KickAccuracy: kickAccuracy, - KickPower: kickPower, - PuntAccuracy: puntAccuracy, - PuntPower: puntPower, - Progression: int(progression), - Discipline: int(discipline), + Age: int8(age), + Stars: int8(stars), + Height: int8(height), + Weight: int8(weight), + Stamina: int8(stamina), + Injury: int8(injury), + FootballIQ: int8(footballIQ), + Speed: int8(speed), + Carrying: int8(carrying), + Agility: int8(agility), + Catching: int8(catching), + RouteRunning: int8(routeRunning), + ZoneCoverage: int8(zoneCoverage), + ManCoverage: int8(manCoverage), + Strength: int8(strength), + Tackle: int8(tackle), + PassBlock: int8(passBlock), + RunBlock: int8(runBlock), + PassRush: int8(passRush), + RunDefense: int8(runDefense), + ThrowPower: int8(throwPower), + ThrowAccuracy: int8(throwAccuracy), + KickAccuracy: int8(kickAccuracy), + KickPower: int8(kickPower), + PuntAccuracy: int8(puntAccuracy), + PuntPower: int8(puntPower), + Progression: int8(progression), + Discipline: int8(discipline), PotentialGrade: potentialGrade, FreeAgency: freeAgency, Personality: personality, @@ -781,41 +741,41 @@ func createWalkon(position string, firstNameList [][]string, lastNameList [][]st recruitingBias := util.GetRecruitingBias() workEthic := util.GetWorkEthic() academicBias := util.GetAcademicBias() - potentialGrade := util.GetWeightedPotentialGrade(int(progression)) + potentialGrade := util.GetWeightedPotentialGrade(int8(progression)) primeAge := util.GetPrimeAge(position, archetype) basePlayer := structs.BasePlayer{ FirstName: firstName, LastName: lastName, Position: position, Archetype: archetype, - Age: age, + Age: int8(age), Stars: 0, - Height: height, - Weight: weight, - Stamina: int(stamina), - Injury: int(injury), - FootballIQ: footballIQ, - Speed: speed, - Carrying: carrying, - Agility: agility, - Catching: catching, - RouteRunning: routeRunning, - ZoneCoverage: zoneCoverage, - ManCoverage: manCoverage, - Strength: strength, - Tackle: tackle, - PassBlock: passBlock, - RunBlock: runBlock, - PassRush: passRush, - RunDefense: runDefense, - ThrowPower: throwPower, - ThrowAccuracy: throwAccuracy, - KickAccuracy: kickAccuracy, - KickPower: kickPower, - PuntAccuracy: puntAccuracy, - PuntPower: puntPower, - Progression: int(progression), - Discipline: int(discipline), + Height: int8(height), + Weight: int8(weight), + Stamina: int8(stamina), + Injury: int8(injury), + FootballIQ: int8(footballIQ), + Speed: int8(speed), + Carrying: int8(carrying), + Agility: int8(agility), + Catching: int8(catching), + RouteRunning: int8(routeRunning), + ZoneCoverage: int8(zoneCoverage), + ManCoverage: int8(manCoverage), + Strength: int8(strength), + Tackle: int8(tackle), + PassBlock: int8(passBlock), + RunBlock: int8(runBlock), + PassRush: int8(passRush), + RunDefense: int8(runDefense), + ThrowPower: int8(throwPower), + ThrowAccuracy: int8(throwAccuracy), + KickAccuracy: int8(kickAccuracy), + KickPower: int8(kickPower), + PuntAccuracy: int8(puntAccuracy), + PuntPower: int8(puntPower), + Progression: int8(progression), + Discipline: int8(discipline), PotentialGrade: potentialGrade, FreeAgency: freeAgency, Personality: personality, @@ -891,7 +851,7 @@ func createCustomCroot(croot []string, id uint, blob map[string]map[string]map[s recruitingBias := util.GetRecruitingBias() workEthic := util.GetWorkEthic() academicBias := util.GetAcademicBias() - potentialGrade := util.GetWeightedPotentialGrade(progression) + potentialGrade := util.GetWeightedPotentialGrade(int8(progression)) if hasNoAffinities { affinityOne = util.PickAffinity(stars, "", false) affinityTwo = util.PickAffinity(stars, affinityOne, true) @@ -902,34 +862,34 @@ func createCustomCroot(croot []string, id uint, blob map[string]map[string]map[s LastName: lastName, Position: position, Archetype: archetype, - Age: age, - Stars: stars, - Height: height, - Weight: weight, - Stamina: stamina, - Injury: injury, - FootballIQ: footballIQ, - Speed: speed, - Carrying: carrying, - Agility: agility, - Catching: catching, - RouteRunning: routeRunning, - ZoneCoverage: zoneCoverage, - ManCoverage: manCoverage, - Strength: strength, - Tackle: tackle, - PassBlock: passBlock, - RunBlock: runBlock, - PassRush: passRush, - RunDefense: runDefense, - ThrowPower: throwPower, - ThrowAccuracy: throwAccuracy, - KickAccuracy: kickAccuracy, - KickPower: kickPower, - PuntAccuracy: puntAccuracy, - PuntPower: puntPower, - Progression: progression, - Discipline: discipline, + Age: int8(age), + Stars: int8(stars), + Height: int8(height), + Weight: int8(weight), + Stamina: int8(stamina), + Injury: int8(injury), + FootballIQ: int8(footballIQ), + Speed: int8(speed), + Carrying: int8(carrying), + Agility: int8(agility), + Catching: int8(catching), + RouteRunning: int8(routeRunning), + ZoneCoverage: int8(zoneCoverage), + ManCoverage: int8(manCoverage), + Strength: int8(strength), + Tackle: int8(tackle), + PassBlock: int8(passBlock), + RunBlock: int8(runBlock), + PassRush: int8(passRush), + RunDefense: int8(runDefense), + ThrowPower: int8(throwPower), + ThrowAccuracy: int8(throwAccuracy), + KickAccuracy: int8(kickAccuracy), + KickPower: int8(kickPower), + PuntAccuracy: int8(puntAccuracy), + PuntPower: int8(puntPower), + Progression: int8(progression), + Discipline: int8(discipline), PotentialGrade: potentialGrade, FreeAgency: freeAgency, Personality: personality, @@ -963,153 +923,6 @@ func createCustomCroot(croot []string, id uint, blob map[string]map[string]map[s return recruit, faceData } -func createCollegeCoach(team structs.RecruitingTeamProfile, almaMaterID uint, almaMater string, firstNameList, lastNameList [][]string, retiredPlayers []structs.NFLRetiredPlayer, retireeMap, coachMap *map[uint]bool) structs.CollegeCoach { - firstName := "" - lastName := "" - diceRoll := util.GenerateIntFromRange(1, 50) - formerPlayerID := uint(0) - almaID := almaMaterID - alma := almaMater - age := 32 - posOne := "" - posTwo := "" - posThree := "" - if diceRoll == 50 { - // Get a former player as a coach - idx := util.GenerateIntFromRange(0, len(retiredPlayers)-1) - retiree := retiredPlayers[idx] - for (*retireeMap)[retiree.ID] || (*coachMap)[retiree.ID] { - idx = util.GenerateIntFromRange(0, len(retiredPlayers)-1) - retiree = retiredPlayers[idx] - } - (*retireeMap)[retiree.ID] = true - (*coachMap)[retiree.ID] = true - formerPlayerID = retiree.ID - alma = retiree.College - firstName = retiree.FirstName - lastName = retiree.LastName - posOne = retiree.Position - age = retiree.Age + 1 - } else { - fName := getName(firstNameList) - lName := getName(lastNameList) - caser := cases.Title(language.English) - firstName = caser.String(strings.ToLower(fName)) - lastName = caser.String(strings.ToLower(lName)) - age = getCoachAge() - } - fullName := firstName + " " + lastName - - schoolQuality := team.AIQuality - adminBehavior := team.AIBehavior - goodHire := getGoodHire(schoolQuality, adminBehavior) - starMin, starMax := getStarRange(schoolQuality, goodHire) - pointMin, pointmax := getPointRange(schoolQuality, goodHire) - odds1 := 0 - odds2 := 0 - odds3 := 0 - odds4 := 0 - odds5 := 0 - - starList := make([]int, 5) - for i := starMin; i <= starMax; i++ { - starList = append(starList, i) - } - - for _, star := range starList { - switch star { - case 1: - odds1 = 10 - case 2: - odds2 = 10 - case 3: - odds3 = 8 - case 4: - odds4 = 5 - case 5: - odds5 = 5 - } - } - - offensiveSchemeList := []string{"Power Run", "Vertical", "West Coast", "I Option", "Run and Shoot", "Air Raid", "Pistol", "Spread Option", "Wing-T", "Double Wing", "Wishbone", "Flexbone"} - offensiveScheme := util.PickFromStringList(offensiveSchemeList) - defensiveSchemeList := []string{"Old School Front 7 Man", "2-Gap Zone", "4-man Front Spread Stopper Zone", "3-man Front Spread Stopper Zone", "Speed Man", "Multiple Man"} - defensiveScheme := util.PickFromStringList(defensiveSchemeList) - contractLength := util.GenerateIntFromRange(2, 5) - startingPrestige := getStartingPrestige(goodHire) - teamBuildingList := []string{"Recruiting", "Transfer", "Average"} - teamBuildPref := util.PickFromStringList(teamBuildingList) - careerPrefList := []string{"Average", "Prefers to Stay at Current Job", "Wants to coach Alma-Mater", "Wants a more competitive job", "Average"} - careerPref := util.PickFromStringList(careerPrefList) - promiseTendencyList := []string{"Average", "Under-Promise", "Over-Promise"} - promiseTendency := util.PickFromStringList(promiseTendencyList) - positionList := []string{"QB", "RB", "WR", "TE", "FB", "OT", "OG", "C", "DT", "DE", "ILB", "OLB", "FS", "SS", "CB", "P", "K", "ATH"} - if posOne == "" { - posOne = util.PickFromStringList(positionList) - } - for posTwo == "" || posTwo == posOne { - posTwo = util.PickFromStringList(positionList) - } - for posThree == "" || posThree == posOne || posThree == posTwo { - posThree = util.PickFromStringList(positionList) - } - if (careerPref == "Wants to coach at Alma Mater" && almaID == team.ID) || (schoolQuality == "Blue Blood" && careerPref == "Wants a more competitive job") { - careerPref = "Prefers to Stay at Current Job" - } - if goodHire { - fmt.Println("Good hire for " + team.TeamAbbreviation + "!") - } - formerPlayer := formerPlayerID > 0 - - if formerPlayer { - fmt.Println("Former SimNFL Player " + fullName + " is committing to coach for " + team.TeamAbbreviation + "!") - } - - coach := structs.CollegeCoach{ - CoachName: fullName, - Age: age, - TeamID: team.ID, - Team: team.TeamAbbreviation, - FormerPlayerID: formerPlayerID, - AlmaMaterID: almaID, - AlmaMater: alma, - Prestige: startingPrestige, - PointMin: pointMin, - PointMax: pointmax, - StarMin: starMin, - StarMax: starMax, - Odds1: odds1, - Odds2: odds2, - Odds3: odds3, - Odds4: odds4, - Odds5: odds5, - OffensiveScheme: offensiveScheme, - DefensiveScheme: defensiveScheme, - TeambuildingPreference: teamBuildPref, - CareerPreference: careerPref, - PromiseTendency: promiseTendency, - SchoolTenure: 0, - CareerTenure: 0, - ContractLength: contractLength, - YearsRemaining: contractLength, - IsRetired: false, - IsFormerPlayer: formerPlayer, - PortalReputation: 100, - PositionOne: posOne, - PositionTwo: posTwo, - PositionThree: posThree, - } - - if startingPrestige > 1 { - for i := 0; i < startingPrestige; i++ { - selectStar := util.GenerateIntFromRange(starMin, starMax) - coach.IncrementOdds(selectStar) - } - } - - return coach -} - func pickEthnicity() string { min := 0 max := 10000 diff --git a/managers/ImportManager.go b/managers/ImportManager.go index 4a95ef2..27815a7 100644 --- a/managers/ImportManager.go +++ b/managers/ImportManager.go @@ -1,10 +1,8 @@ package managers import ( - "encoding/csv" "fmt" "log" - "os" "strconv" "strings" "time" @@ -16,170 +14,6 @@ import ( "github.com/jinzhu/gorm" ) -func ImportRecruitAICSV() { - db := dbprovider.GetInstance().GetDB() - completedCrootPath := "C:\\Users\\ctros\\go\\src\\github.com\\CalebRose\\SimFBA\\data\\FCS_Croot_Weekly_Signings.csv" - aiPoolPath := "C:\\Users\\ctros\\go\\src\\github.com\\CalebRose\\SimFBA\\data\\2022_Croot_Class_AI.csv" - crootMap := make(map[string][]string) - f, err := os.Open(completedCrootPath) - if err != nil { - log.Fatal("Unable to read input file "+completedCrootPath, err) - } - defer f.Close() - - csvReader := csv.NewReader(f) - croots, err := csvReader.ReadAll() - if err != nil { - log.Fatal("Unable to parse file as CSV for "+completedCrootPath, err) - } - - for idx, record := range croots { - if idx == 0 { - continue - } - // Add recruit to map - crootMap[record[0]] = record - id := util.ConvertStringToInt(record[0]) - teamID := util.ConvertStringToInt(record[18]) - points := util.ConvertStringToInt(record[21]) - if points <= 0 { - points = 1 - } - - if teamID > 0 { - recruitProfile := structs.RecruitPlayerProfile{ - RecruitID: id, - IsSigned: true, - Scholarship: false, - TotalPoints: float64(points), - ProfileID: teamID, - TeamAbbreviation: record[19], - SeasonID: 2, - } - - db.Create(&recruitProfile) - recruit := GetCollegeRecruitByRecruitID(record[0]) - // Since this croot is not in the DB yet, they will be added later - if recruit.ID == 0 { - continue - } - recruit.AssignCollege(recruitProfile.TeamAbbreviation) - recruit.UpdateTeamID(teamID) - recruit.UpdateSigningStatus() - - db.Save(&recruit) - } - } - - fmt.Println("NOW GET THE BIG ONE") - - poolFile, err := os.Open(aiPoolPath) - if err != nil { - log.Fatal("Unable to read input file "+aiPoolPath, err) - } - defer f.Close() - - csvReader = csv.NewReader(poolFile) - croots, err = csvReader.ReadAll() - if err != nil { - log.Fatal("Unable to parse file as CSV for "+aiPoolPath, err) - } - - for idx, croot := range croots { - if idx == 0 { - continue - } - recruit := GetCollegeRecruitByRecruitID(croot[0]) - if recruit.ID == 0 { - // Create the record - idStr := croot[0] - id := util.ConvertStringToInt(croot[0]) - // If for some reason a recruit was not included in the map, then they don't have a team. Skip over for now. - - var mapRecord []string - if len(crootMap[idStr]) > 0 { - // Retrieve for the Team Info - mapRecord = crootMap[idStr] - } - - teamIDStr := "" - abbr := "" - if len(mapRecord) > 0 { - teamIDStr = mapRecord[18] - abbr = mapRecord[20] - } - - teamID := util.ConvertStringToInt(teamIDStr) - isSigned := false - if teamID > 0 { - isSigned = true - } - - // Attributes - - base := structs.BasePlayer{ - FirstName: croot[1], - LastName: croot[2], - Stars: util.ConvertStringToInt(croot[3]), - Position: croot[4], - Archetype: croot[5], - Overall: util.ConvertStringToInt(croot[6]), - Height: util.ConvertStringToInt(croot[7]), - Weight: util.ConvertStringToInt(croot[8]), - Carrying: util.ConvertStringToInt(croot[12]), - Agility: util.ConvertStringToInt(croot[13]), - Catching: util.ConvertStringToInt(croot[14]), - ZoneCoverage: util.ConvertStringToInt(croot[15]), - ManCoverage: util.ConvertStringToInt(croot[16]), - FootballIQ: util.ConvertStringToInt(croot[17]), - KickAccuracy: util.ConvertStringToInt(croot[18]), - KickPower: util.ConvertStringToInt(croot[19]), - PassBlock: util.ConvertStringToInt(croot[20]), - PassRush: util.ConvertStringToInt(croot[21]), - PuntAccuracy: util.ConvertStringToInt(croot[22]), - PuntPower: util.ConvertStringToInt(croot[23]), - RouteRunning: util.ConvertStringToInt(croot[24]), - RunBlock: util.ConvertStringToInt(croot[25]), - RunDefense: util.ConvertStringToInt(croot[26]), - Speed: util.ConvertStringToInt(croot[27]), - Strength: util.ConvertStringToInt(croot[28]), - Tackle: util.ConvertStringToInt(croot[29]), - ThrowPower: util.ConvertStringToInt(croot[30]), - ThrowAccuracy: util.ConvertStringToInt(croot[31]), - Injury: util.ConvertStringToInt(croot[32]), - Stamina: util.ConvertStringToInt(croot[33]), - Discipline: util.ConvertStringToInt(croot[34]), - AcademicBias: croot[35], - FreeAgency: croot[36], - Personality: croot[37], - RecruitingBias: croot[38], - WorkEthic: croot[39], - Progression: util.ConvertStringToInt(croot[40]), - PotentialGrade: croot[41], - Age: 18, - } - - r := structs.Recruit{ - BasePlayer: base, - PlayerID: id, - TeamID: teamID, - HighSchool: croot[9], - City: croot[10], - State: croot[11], - IsSigned: isSigned, - College: abbr, - } - - r.AssignID(id) - - db.Create(&r) - } else { - // This recruit is already in the DB - continue - } - } -} - func GetLeftoverRecruits() []structs.UnsignedPlayer { db := dbprovider.GetInstance().GetDB() var unsignedPlayers []structs.UnsignedPlayer @@ -1171,186 +1005,6 @@ func MigrateRetiredAndNFLPlayersToHistoricCFBTable() { } -func ImportCFB2021PlayerStats() { - db := dbprovider.GetInstance().GetDB() - - path := "C:\\Users\\ctros\\go\\src\\github.com\\CalebRose\\SimFBA\\data\\2021\\2021_cfb_player_stats.csv" - - statsCSV := util.ReadCSV(path) - - collegePlayers := GetAllCollegePlayers() - historicPlayers := GetAllHistoricCollegePlayers() - for _, player := range historicPlayers { - collegePlayerResponse := structs.CollegePlayer{ - Model: player.Model, - BasePlayer: player.BasePlayer, - TeamID: player.TeamID, - TeamAbbr: player.TeamAbbr, - City: player.City, - State: player.State, - Year: player.Year, - IsRedshirt: player.IsRedshirt, - } - collegePlayers = append(collegePlayers, collegePlayerResponse) - } - collegePlayerMap := make(map[string]structs.CollegePlayer) - - for _, p := range collegePlayers { - key := p.Position + p.Archetype + p.FirstName + p.LastName - collegePlayerMap[key] = p - } - - var seasonStats []structs.CollegePlayerSeasonStats - - for idx, row := range statsCSV { - if idx == 0 { - continue - } - - pos := row[51] - arch := row[52] - fn := row[53] - ln := row[54] - key := pos + arch + fn + ln - player := collegePlayerMap[key] - id := player.ID - if player.ID == 0 { - continue - } - if player.ID == 10 { - fmt.Println("MATT HOWARD??") - } - passAttempts := util.ConvertStringToInt(row[1]) - passCompletions := util.ConvertStringToInt(row[2]) - passYards := util.ConvertStringToInt(row[3]) - passTDs := util.ConvertStringToInt(row[4]) - interceptionsthrown := util.ConvertStringToInt(row[5]) - longestPass := util.ConvertStringToInt(row[6]) - sacksTaken := util.ConvertStringToInt(row[7]) - rushAttempts := util.ConvertStringToInt(row[8]) - rushYards := util.ConvertStringToInt(row[9]) - rushTDs := util.ConvertStringToInt(row[10]) - fumbles := util.ConvertStringToInt(row[11]) - longestRush := util.ConvertStringToInt(row[12]) - targets := util.ConvertStringToInt(row[13]) - catches := util.ConvertStringToInt(row[14]) - receivingYards := util.ConvertStringToInt(row[15]) - receivingTDs := util.ConvertStringToInt(row[16]) - longestCatch := util.ConvertStringToInt(row[17]) - soloTackles := util.ConvertStringToInt(row[18]) - assTackles := util.ConvertStringToInt(row[19]) - tacklesForLoss := util.ConvertStringToInt(row[20]) - sacksMade := util.ConvertStringToInt(row[21]) - forcedFumbles := util.ConvertStringToInt(row[22]) - fumblesRecovered := util.ConvertStringToInt(row[23]) - passDeflections := util.ConvertStringToInt(row[24]) - intsCaught := util.ConvertStringToInt(row[25]) - safeties := util.ConvertStringToInt(row[26]) - defensiveTDs := util.ConvertStringToInt(row[27]) - fgMade := util.ConvertStringToInt(row[28]) - fgAttempts := util.ConvertStringToInt(row[29]) - longestFG := util.ConvertStringToInt(row[30]) - xpMade := util.ConvertStringToInt(row[31]) - xpAttempts := util.ConvertStringToInt(row[32]) - kickoffTBs := util.ConvertStringToInt(row[33]) - punts := util.ConvertStringToInt(row[34]) - puntTBs := util.ConvertStringToInt(row[35]) - puntsInside20 := util.ConvertStringToInt(row[36]) - kickReturns := util.ConvertStringToInt(row[37]) - kickReturnYards := util.ConvertStringToInt(row[38]) - kickReturnTDs := util.ConvertStringToInt(row[39]) - puntReturns := util.ConvertStringToInt(row[40]) - puntReturnYards := util.ConvertStringToInt(row[41]) - puntReturnTDs := util.ConvertStringToInt(row[43]) - stSoloTackles := util.ConvertStringToInt(row[44]) - stassTackles := util.ConvertStringToInt(row[45]) - puntsblocked := util.ConvertStringToInt(row[46]) - fgBlocked := util.ConvertStringToInt(row[47]) - snaps := util.ConvertStringToInt(row[48]) - gamesPlayed := util.ConvertStringToInt(row[49]) - yearStr := row[50] - year := 1 - switch yearStr { - case "Sr.": - year = 4 - case "Jr.": - year = 3 - case "So.": - year = 2 - } - - seasonStat := structs.CollegePlayerSeasonStats{ - CollegePlayerID: uint(id), - SeasonID: 1, - Year: uint(year), - IsRedshirt: false, - GamesPlayed: gamesPlayed, - Tackles: float64(soloTackles) + float64(stSoloTackles) + (float64(assTackles) * 0.5) + (float64(stassTackles) * 0.5), - RushingAvg: (float64(rushYards) / float64(rushAttempts)), - PassingAvg: float64(passYards) / float64(passCompletions), - ReceivingAvg: float64(receivingYards) / float64(catches), - Completion: float64(passCompletions) / float64(passAttempts), - BasePlayerStats: structs.BasePlayerStats{ - PassingYards: passYards, - PassAttempts: passAttempts, - PassCompletions: passCompletions, - PassingTDs: passTDs, - Interceptions: interceptionsthrown, - LongestPass: longestPass, - Sacks: sacksTaken, - RushAttempts: rushAttempts, - RushingTDs: rushTDs, - Fumbles: fumbles, - LongestRush: longestRush, - Targets: targets, - Catches: catches, - ReceivingYards: receivingYards, - ReceivingTDs: receivingTDs, - LongestReception: longestCatch, - SoloTackles: float64(soloTackles), - AssistedTackles: float64(assTackles), - TacklesForLoss: float64(tacklesForLoss), - SacksMade: float64(sacksMade), - ForcedFumbles: forcedFumbles, - RecoveredFumbles: fumblesRecovered, - PassDeflections: passDeflections, - InterceptionsCaught: intsCaught, - Safeties: safeties, - DefensiveTDs: defensiveTDs, - FGMade: fgMade, - FGAttempts: fgAttempts, - LongestFG: longestFG, - ExtraPointsMade: xpMade, - ExtraPointsAttempted: xpAttempts, - KickoffTouchbacks: kickoffTBs, - Punts: punts, - GrossPuntDistance: 0, - NetPuntDistance: 0, - PuntTouchbacks: puntTBs, - PuntsInside20: puntsInside20, - KickReturns: kickReturns, - KickReturnTDs: kickReturnTDs, - KickReturnYards: kickReturnYards, - STSoloTackles: float64(stSoloTackles), - STAssistedTackles: float64(stassTackles), - PuntsBlocked: puntsblocked, - FGBlocked: fgBlocked, - Snaps: snaps, - GameType: 2, - PuntReturns: puntReturns, - PuntReturnYards: puntReturnYards, - PuntReturnTDs: puntReturnTDs, - TeamID: uint(player.TeamID), - Team: player.TeamAbbr, - }, - } - - seasonStats = append(seasonStats, seasonStat) - } - - repository.CreateCFBPlayerSeasonStatsRecordsBatch(db, seasonStats, 200) -} - func FixATHProgressions() { db := dbprovider.GetInstance().GetDB() ts := GetTimestamp() diff --git a/managers/MigrationManager.go b/managers/MigrationManager.go index f7239ab..8c80cd8 100644 --- a/managers/MigrationManager.go +++ b/managers/MigrationManager.go @@ -40,8 +40,8 @@ func MigrateHistoricPlayersToNFLDraftees() { draftee := models.NFLDraftee{} draftee.Map(grad) // Map New Progression value for NFL - newProgression := util.GenerateNFLPotential(grad.Progression) - newPotentialGrade := util.GetWeightedPotentialGrade(newProgression) + newProgression := util.GenerateNFLPotential(int(grad.Progression)) + newPotentialGrade := util.GetWeightedPotentialGrade(int8(newProgression)) draftee.MapProgression(newProgression, newPotentialGrade) if draftee.Position == "RB" { @@ -672,15 +672,15 @@ func FixNFLDrafteePotentialGrades() { draftees := GetAllNFLDraftees() for _, d := range draftees { - newProgression := util.GenerateIntFromRange(d.Progression-5, d.Progression+5) + newProgression := util.GenerateIntFromRange(int(d.Progression)-5, int(d.Progression)+5) if newProgression < 0 { newProgression = 1 } else if newProgression > 100 { newProgression = 100 } - newPotentialGrade := util.GetWeightedPotentialGrade(newProgression) + newPotentialGrade := util.GetWeightedPotentialGrade(int8(newProgression)) d.PotentialGrade = newPotentialGrade - d.Progression = newProgression + d.Progression = int8(newProgression) repository.SaveNFLDrafteeRecord(d, db) } diff --git a/managers/PlayerManager.go b/managers/PlayerManager.go index f90a5a2..5ea8f2b 100644 --- a/managers/PlayerManager.go +++ b/managers/PlayerManager.go @@ -55,6 +55,16 @@ func GetAllNFLPlayers() []structs.NFLPlayer { return nflPlayers } +func GetNFLPlayersByTeamID(teamID string) []structs.NFLPlayer { + db := dbprovider.GetInstance().GetDB() + + var nflPlayers []structs.NFLPlayer + + db.Where("team_id = ?", teamID).Find(&nflPlayers) + + return nflPlayers +} + func GetAllRetiredPlayers() []structs.NFLRetiredPlayer { db := dbprovider.GetInstance().GetDB() @@ -600,57 +610,57 @@ func GetAllCollegePlayersWithGameStatsByTeamID(GameID string, stats []structs.Co Year: uint(p.Year), TeamAbbr: p.TeamAbbr, League: "CFB", - Snaps: s.Snaps, - PassingYards: s.PassingYards, - PassAttempts: s.PassAttempts, - PassCompletions: s.PassCompletions, - PassingTDs: s.PassingTDs, - Interceptions: s.Interceptions, - LongestPass: s.LongestPass, - Sacks: s.Sacks, - RushAttempts: s.RushAttempts, - RushingYards: s.RushingYards, - RushingTDs: s.RushingTDs, - Fumbles: s.Fumbles, - LongestRush: s.LongestRush, - Targets: s.Targets, - Catches: s.Catches, - ReceivingYards: s.ReceivingYards, - ReceivingTDs: s.ReceivingTDs, - LongestReception: s.LongestReception, + Snaps: int(s.Snaps), + PassingYards: int(s.PassingYards), + PassAttempts: int(s.PassAttempts), + PassCompletions: int(s.PassCompletions), + PassingTDs: int(s.PassingTDs), + Interceptions: int(s.Interceptions), + LongestPass: int(s.LongestPass), + Sacks: int(s.Sacks), + RushAttempts: int(s.RushAttempts), + RushingYards: int(s.RushingYards), + RushingTDs: int(s.RushingTDs), + Fumbles: int(s.Fumbles), + LongestRush: int(s.LongestRush), + Targets: int(s.Targets), + Catches: int(s.Catches), + ReceivingYards: int(s.ReceivingYards), + ReceivingTDs: int(s.ReceivingTDs), + LongestReception: int(s.LongestReception), SoloTackles: s.SoloTackles, AssistedTackles: s.AssistedTackles, TacklesForLoss: s.TacklesForLoss, SacksMade: s.SacksMade, - ForcedFumbles: s.ForcedFumbles, - RecoveredFumbles: s.RecoveredFumbles, - PassDeflections: s.PassDeflections, - InterceptionsCaught: s.InterceptionsCaught, - Safeties: s.Safeties, - DefensiveTDs: s.DefensiveTDs, - FGMade: s.FGMade, - FGAttempts: s.FGAttempts, - LongestFG: s.LongestFG, - ExtraPointsMade: s.ExtraPointsMade, - ExtraPointsAttempted: s.ExtraPointsAttempted, - KickoffTouchbacks: s.KickoffTouchbacks, - Punts: s.Punts, - PuntTouchbacks: s.PuntTouchbacks, - PuntsInside20: s.PuntsInside20, - KickReturns: s.KickReturns, - KickReturnTDs: s.KickReturnTDs, - KickReturnYards: s.KickReturnYards, - PuntReturns: s.PuntReturns, - PuntReturnTDs: s.PuntReturnTDs, - PuntReturnYards: s.PuntReturnYards, + ForcedFumbles: int(s.ForcedFumbles), + RecoveredFumbles: int(s.RecoveredFumbles), + PassDeflections: int(s.PassDeflections), + InterceptionsCaught: int(s.InterceptionsCaught), + Safeties: int(s.Safeties), + DefensiveTDs: int(s.DefensiveTDs), + FGMade: int(s.FGMade), + FGAttempts: int(s.FGAttempts), + LongestFG: int(s.LongestFG), + ExtraPointsMade: int(s.ExtraPointsMade), + ExtraPointsAttempted: int(s.ExtraPointsAttempted), + KickoffTouchbacks: int(s.KickoffTouchbacks), + Punts: int(s.Punts), + PuntTouchbacks: int(s.PuntTouchbacks), + PuntsInside20: int(s.PuntsInside20), + KickReturns: int(s.KickReturns), + KickReturnTDs: int(s.KickReturnTDs), + KickReturnYards: int(s.KickReturnYards), + PuntReturns: int(s.PuntReturns), + PuntReturnTDs: int(s.PuntReturnTDs), + PuntReturnYards: int(s.PuntReturnYards), STSoloTackles: s.STSoloTackles, STAssistedTackles: s.STAssistedTackles, - PuntsBlocked: s.PuntsBlocked, - FGBlocked: s.FGBlocked, - Pancakes: s.Pancakes, - SacksAllowed: s.SacksAllowed, - PlayedGame: s.PlayedGame, - StartedGame: s.StartedGame, + PuntsBlocked: int(s.PuntsBlocked), + FGBlocked: int(s.FGBlocked), + Pancakes: int(s.Pancakes), + SacksAllowed: int(s.SacksAllowed), + PlayedGame: int(s.PlayedGame), + StartedGame: int(s.StartedGame), WasInjured: s.WasInjured, WeeksOfRecovery: s.WeeksOfRecovery, InjuryType: s.InjuryType, @@ -677,57 +687,57 @@ func GetAllCollegePlayersWithGameStatsByTeamID(GameID string, stats []structs.Co TeamAbbr: p.TeamAbbr, Year: uint(p.Year), League: "CFB", - Snaps: s.Snaps, - PassingYards: s.PassingYards, - PassAttempts: s.PassAttempts, - PassCompletions: s.PassCompletions, - PassingTDs: s.PassingTDs, - Interceptions: s.Interceptions, - LongestPass: s.LongestPass, - Sacks: s.Sacks, - RushAttempts: s.RushAttempts, - RushingYards: s.RushingYards, - RushingTDs: s.RushingTDs, - Fumbles: s.Fumbles, - LongestRush: s.LongestRush, - Targets: s.Targets, - Catches: s.Catches, - ReceivingYards: s.ReceivingYards, - ReceivingTDs: s.ReceivingTDs, - LongestReception: s.LongestReception, + Snaps: int(s.Snaps), + PassingYards: int(s.PassingYards), + PassAttempts: int(s.PassAttempts), + PassCompletions: int(s.PassCompletions), + PassingTDs: int(s.PassingTDs), + Interceptions: int(s.Interceptions), + LongestPass: int(s.LongestPass), + Sacks: int(s.Sacks), + RushAttempts: int(s.RushAttempts), + RushingYards: int(s.RushingYards), + RushingTDs: int(s.RushingTDs), + Fumbles: int(s.Fumbles), + LongestRush: int(s.LongestRush), + Targets: int(s.Targets), + Catches: int(s.Catches), + ReceivingYards: int(s.ReceivingYards), + ReceivingTDs: int(s.ReceivingTDs), + LongestReception: int(s.LongestReception), SoloTackles: s.SoloTackles, AssistedTackles: s.AssistedTackles, TacklesForLoss: s.TacklesForLoss, SacksMade: s.SacksMade, - ForcedFumbles: s.ForcedFumbles, - RecoveredFumbles: s.RecoveredFumbles, - PassDeflections: s.PassDeflections, - InterceptionsCaught: s.InterceptionsCaught, - Safeties: s.Safeties, - DefensiveTDs: s.DefensiveTDs, - FGMade: s.FGMade, - FGAttempts: s.FGAttempts, - LongestFG: s.LongestFG, - ExtraPointsMade: s.ExtraPointsMade, - ExtraPointsAttempted: s.ExtraPointsAttempted, - KickoffTouchbacks: s.KickoffTouchbacks, - Punts: s.Punts, - PuntTouchbacks: s.PuntTouchbacks, - PuntsInside20: s.PuntsInside20, - KickReturns: s.KickReturns, - KickReturnTDs: s.KickReturnTDs, - KickReturnYards: s.KickReturnYards, - PuntReturns: s.PuntReturns, - PuntReturnTDs: s.PuntReturnTDs, - PuntReturnYards: s.PuntReturnYards, + ForcedFumbles: int(s.ForcedFumbles), + RecoveredFumbles: int(s.RecoveredFumbles), + PassDeflections: int(s.PassDeflections), + InterceptionsCaught: int(s.InterceptionsCaught), + Safeties: int(s.Safeties), + DefensiveTDs: int(s.DefensiveTDs), + FGMade: int(s.FGMade), + FGAttempts: int(s.FGAttempts), + LongestFG: int(s.LongestFG), + ExtraPointsMade: int(s.ExtraPointsMade), + ExtraPointsAttempted: int(s.ExtraPointsAttempted), + KickoffTouchbacks: int(s.KickoffTouchbacks), + Punts: int(s.Punts), + PuntTouchbacks: int(s.PuntTouchbacks), + PuntsInside20: int(s.PuntsInside20), + KickReturns: int(s.KickReturns), + KickReturnTDs: int(s.KickReturnTDs), + KickReturnYards: int(s.KickReturnYards), + PuntReturns: int(s.PuntReturns), + PuntReturnTDs: int(s.PuntReturnTDs), + PuntReturnYards: int(s.PuntReturnYards), STSoloTackles: s.STSoloTackles, STAssistedTackles: s.STAssistedTackles, - PuntsBlocked: s.PuntsBlocked, - FGBlocked: s.FGBlocked, - Pancakes: s.Pancakes, - SacksAllowed: s.SacksAllowed, - PlayedGame: s.PlayedGame, - StartedGame: s.StartedGame, + PuntsBlocked: int(s.PuntsBlocked), + FGBlocked: int(s.FGBlocked), + Pancakes: int(s.Pancakes), + SacksAllowed: int(s.SacksAllowed), + PlayedGame: int(s.PlayedGame), + StartedGame: int(s.StartedGame), WasInjured: s.WasInjured, WeeksOfRecovery: s.WeeksOfRecovery, InjuryType: s.InjuryType, @@ -769,57 +779,57 @@ func GetAllNFLPlayersWithGameStatsByTeamID(GameID string, stats []structs.NFLPla Archetype: p.Archetype, Year: uint(s.Year), League: "NFL", - Snaps: s.Snaps, - PassingYards: s.PassingYards, - PassAttempts: s.PassAttempts, - PassCompletions: s.PassCompletions, - PassingTDs: s.PassingTDs, - Interceptions: s.Interceptions, - LongestPass: s.LongestPass, - Sacks: s.Sacks, - RushAttempts: s.RushAttempts, - RushingYards: s.RushingYards, - RushingTDs: s.RushingTDs, - Fumbles: s.Fumbles, - LongestRush: s.LongestRush, - Targets: s.Targets, - Catches: s.Catches, - ReceivingYards: s.ReceivingYards, - ReceivingTDs: s.ReceivingTDs, - LongestReception: s.LongestReception, + Snaps: int(s.Snaps), + PassingYards: int(s.PassingYards), + PassAttempts: int(s.PassAttempts), + PassCompletions: int(s.PassCompletions), + PassingTDs: int(s.PassingTDs), + Interceptions: int(s.Interceptions), + LongestPass: int(s.LongestPass), + Sacks: int(s.Sacks), + RushAttempts: int(s.RushAttempts), + RushingYards: int(s.RushingYards), + RushingTDs: int(s.RushingTDs), + Fumbles: int(s.Fumbles), + LongestRush: int(s.LongestRush), + Targets: int(s.Targets), + Catches: int(s.Catches), + ReceivingYards: int(s.ReceivingYards), + ReceivingTDs: int(s.ReceivingTDs), + LongestReception: int(s.LongestReception), SoloTackles: s.SoloTackles, AssistedTackles: s.AssistedTackles, TacklesForLoss: s.TacklesForLoss, SacksMade: s.SacksMade, - ForcedFumbles: s.ForcedFumbles, - RecoveredFumbles: s.RecoveredFumbles, - PassDeflections: s.PassDeflections, - InterceptionsCaught: s.InterceptionsCaught, - Safeties: s.Safeties, - DefensiveTDs: s.DefensiveTDs, - FGMade: s.FGMade, - FGAttempts: s.FGAttempts, - LongestFG: s.LongestFG, - ExtraPointsMade: s.ExtraPointsMade, - ExtraPointsAttempted: s.ExtraPointsAttempted, - KickoffTouchbacks: s.KickoffTouchbacks, - Punts: s.Punts, - PuntTouchbacks: s.PuntTouchbacks, - PuntsInside20: s.PuntsInside20, - KickReturns: s.KickReturns, - KickReturnTDs: s.KickReturnTDs, - KickReturnYards: s.KickReturnYards, - PuntReturns: s.PuntReturns, - PuntReturnTDs: s.PuntReturnTDs, - PuntReturnYards: s.PuntReturnYards, + ForcedFumbles: int(s.ForcedFumbles), + RecoveredFumbles: int(s.RecoveredFumbles), + PassDeflections: int(s.PassDeflections), + InterceptionsCaught: int(s.InterceptionsCaught), + Safeties: int(s.Safeties), + DefensiveTDs: int(s.DefensiveTDs), + FGMade: int(s.FGMade), + FGAttempts: int(s.FGAttempts), + LongestFG: int(s.LongestFG), + ExtraPointsMade: int(s.ExtraPointsMade), + ExtraPointsAttempted: int(s.ExtraPointsAttempted), + KickoffTouchbacks: int(s.KickoffTouchbacks), + Punts: int(s.Punts), + PuntTouchbacks: int(s.PuntTouchbacks), + PuntsInside20: int(s.PuntsInside20), + KickReturns: int(s.KickReturns), + KickReturnTDs: int(s.KickReturnTDs), + KickReturnYards: int(s.KickReturnYards), + PuntReturns: int(s.PuntReturns), + PuntReturnTDs: int(s.PuntReturnTDs), + PuntReturnYards: int(s.PuntReturnYards), STSoloTackles: s.STSoloTackles, STAssistedTackles: s.STAssistedTackles, - PuntsBlocked: s.PuntsBlocked, - FGBlocked: s.FGBlocked, - Pancakes: s.Pancakes, - SacksAllowed: s.SacksAllowed, - PlayedGame: s.PlayedGame, - StartedGame: s.StartedGame, + PuntsBlocked: int(s.PuntsBlocked), + FGBlocked: int(s.FGBlocked), + Pancakes: int(s.Pancakes), + SacksAllowed: int(s.SacksAllowed), + PlayedGame: int(s.PlayedGame), + StartedGame: int(s.StartedGame), WasInjured: s.WasInjured, WeeksOfRecovery: s.WeeksOfRecovery, InjuryType: s.InjuryType, @@ -844,57 +854,57 @@ func GetAllNFLPlayersWithGameStatsByTeamID(GameID string, stats []structs.NFLPla Archetype: p.Archetype, Year: uint(s.Year), League: "NFL", - Snaps: s.Snaps, - PassingYards: s.PassingYards, - PassAttempts: s.PassAttempts, - PassCompletions: s.PassCompletions, - PassingTDs: s.PassingTDs, - Interceptions: s.Interceptions, - LongestPass: s.LongestPass, - Sacks: s.Sacks, - RushAttempts: s.RushAttempts, - RushingYards: s.RushingYards, - RushingTDs: s.RushingTDs, - Fumbles: s.Fumbles, - LongestRush: s.LongestRush, - Targets: s.Targets, - Catches: s.Catches, - ReceivingYards: s.ReceivingYards, - ReceivingTDs: s.ReceivingTDs, - LongestReception: s.LongestReception, + Snaps: int(s.Snaps), + PassingYards: int(s.PassingYards), + PassAttempts: int(s.PassAttempts), + PassCompletions: int(s.PassCompletions), + PassingTDs: int(s.PassingTDs), + Interceptions: int(s.Interceptions), + LongestPass: int(s.LongestPass), + Sacks: int(s.Sacks), + RushAttempts: int(s.RushAttempts), + RushingYards: int(s.RushingYards), + RushingTDs: int(s.RushingTDs), + Fumbles: int(s.Fumbles), + LongestRush: int(s.LongestRush), + Targets: int(s.Targets), + Catches: int(s.Catches), + ReceivingYards: int(s.ReceivingYards), + ReceivingTDs: int(s.ReceivingTDs), + LongestReception: int(s.LongestReception), SoloTackles: s.SoloTackles, AssistedTackles: s.AssistedTackles, TacklesForLoss: s.TacklesForLoss, SacksMade: s.SacksMade, - ForcedFumbles: s.ForcedFumbles, - RecoveredFumbles: s.RecoveredFumbles, - PassDeflections: s.PassDeflections, - InterceptionsCaught: s.InterceptionsCaught, - Safeties: s.Safeties, - DefensiveTDs: s.DefensiveTDs, - FGMade: s.FGMade, - FGAttempts: s.FGAttempts, - LongestFG: s.LongestFG, - ExtraPointsMade: s.ExtraPointsMade, - ExtraPointsAttempted: s.ExtraPointsAttempted, - KickoffTouchbacks: s.KickoffTouchbacks, - Punts: s.Punts, - PuntTouchbacks: s.PuntTouchbacks, - PuntsInside20: s.PuntsInside20, - KickReturns: s.KickReturns, - KickReturnTDs: s.KickReturnTDs, - KickReturnYards: s.KickReturnYards, - PuntReturns: s.PuntReturns, - PuntReturnTDs: s.PuntReturnTDs, - PuntReturnYards: s.PuntReturnYards, + ForcedFumbles: int(s.ForcedFumbles), + RecoveredFumbles: int(s.RecoveredFumbles), + PassDeflections: int(s.PassDeflections), + InterceptionsCaught: int(s.InterceptionsCaught), + Safeties: int(s.Safeties), + DefensiveTDs: int(s.DefensiveTDs), + FGMade: int(s.FGMade), + FGAttempts: int(s.FGAttempts), + LongestFG: int(s.LongestFG), + ExtraPointsMade: int(s.ExtraPointsMade), + ExtraPointsAttempted: int(s.ExtraPointsAttempted), + KickoffTouchbacks: int(s.KickoffTouchbacks), + Punts: int(s.Punts), + PuntTouchbacks: int(s.PuntTouchbacks), + PuntsInside20: int(s.PuntsInside20), + KickReturns: int(s.KickReturns), + KickReturnTDs: int(s.KickReturnTDs), + KickReturnYards: int(s.KickReturnYards), + PuntReturns: int(s.PuntReturns), + PuntReturnTDs: int(s.PuntReturnTDs), + PuntReturnYards: int(s.PuntReturnYards), STSoloTackles: s.STSoloTackles, STAssistedTackles: s.STAssistedTackles, - PuntsBlocked: s.PuntsBlocked, - FGBlocked: s.FGBlocked, - Pancakes: s.Pancakes, - SacksAllowed: s.SacksAllowed, - PlayedGame: s.PlayedGame, - StartedGame: s.StartedGame, + PuntsBlocked: int(s.PuntsBlocked), + FGBlocked: int(s.FGBlocked), + Pancakes: int(s.Pancakes), + SacksAllowed: int(s.SacksAllowed), + PlayedGame: int(s.PlayedGame), + StartedGame: int(s.StartedGame), WasInjured: s.WasInjured, WeeksOfRecovery: s.WeeksOfRecovery, InjuryType: s.InjuryType, @@ -1001,7 +1011,7 @@ func CutCFBPlayer(playerId string) { deduction := 0 promiseDeduction := 0 if player.Stars > 2 { - deduction = player.Stars / 2 + deduction = int(player.Stars) / 2 } collegePromise := GetCollegePromiseByCollegePlayerID(strconv.Itoa(int(player.ID)), previousTeamID) if collegePromise.IsActive && collegePromise.PromiseMade { diff --git a/managers/PreDraftManager.go b/managers/PreDraftManager.go index 562118d..ecb1810 100644 --- a/managers/PreDraftManager.go +++ b/managers/PreDraftManager.go @@ -87,15 +87,15 @@ func RunEvents(draftee models.NFLDraftee, shouldHidePerformance bool, event mode } func RunUniversalEvents(draftee models.NFLDraftee, shouldHidePerformance bool, event models.EventResults) models.EventResults { - event.FourtyYardDash = Run40YardDash(draftee.Speed, event.IsCombine) - event.BenchPress = RunBenchPress(draftee.Strength, event.IsCombine, draftee.Position) - event.Shuttle = RunShuttle(draftee.Agility, event.IsCombine) - event.ThreeCone = Run3Cone(draftee.Agility, event.IsCombine) - event.VerticalJump = RunVertJump(draftee.Agility, draftee.Strength, draftee.Weight, event.IsCombine) - event.BroadJump = RunBroadJump(draftee.Agility, draftee.Strength, draftee.Weight, event.IsCombine) + event.FourtyYardDash = Run40YardDash(int(draftee.Speed), event.IsCombine) + event.BenchPress = RunBenchPress(int(draftee.Strength), event.IsCombine, draftee.Position) + event.Shuttle = RunShuttle(int(draftee.Agility), event.IsCombine) + event.ThreeCone = Run3Cone(int(draftee.Agility), event.IsCombine) + event.VerticalJump = RunVertJump(int(draftee.Agility), int(draftee.Strength), int(draftee.Weight), event.IsCombine) + event.BroadJump = RunBroadJump(int(draftee.Agility), int(draftee.Strength), int(draftee.Weight), event.IsCombine) if event.IsCombine { - event.Wonderlic = RunWonderlic(draftee.FootballIQ) + event.Wonderlic = RunWonderlic(int(draftee.FootballIQ)) } return event @@ -124,91 +124,91 @@ func RunPositionEvents(draftee models.NFLDraftee, shouldHidePerformance bool, ev // Must handle whether player's true attributes should be hidden if strings.Contains(strings.ToLower(position), strings.ToLower("QB")) { - event.ThrowingDistance = RunQBDistance(draftee.ThrowPower, event.IsCombine) - event.ThrowingAccuracy = RunQBAccuracy(draftee.ThrowAccuracy, event.IsCombine) + event.ThrowingDistance = RunQBDistance(int(draftee.ThrowPower), event.IsCombine) + event.ThrowingAccuracy = RunQBAccuracy(int(draftee.ThrowAccuracy), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("RB")) { - event.InsideRun = RunInsideRun(draftee.Speed, draftee.Strength, event.IsCombine) - event.OutsideRun = RunOutsideRun(draftee.Speed, draftee.Agility, event.IsCombine) - event.Catching = RunCatching(draftee.Catching, event.IsCombine) - event.RouteRunning = RunRouteRunning(draftee.RouteRunning, event.IsCombine) + event.InsideRun = RunInsideRun(int(draftee.Speed), int(draftee.Strength), event.IsCombine) + event.OutsideRun = RunOutsideRun(int(draftee.Speed), int(draftee.Agility), event.IsCombine) + event.Catching = RunCatching(int(draftee.Catching), event.IsCombine) + event.RouteRunning = RunRouteRunning(int(draftee.RouteRunning), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("WR")) { - event.Catching = RunCatching(draftee.Catching, event.IsCombine) - event.RouteRunning = RunRouteRunning(draftee.RouteRunning, event.IsCombine) + event.Catching = RunCatching(int(draftee.Catching), event.IsCombine) + event.RouteRunning = RunRouteRunning(int(draftee.RouteRunning), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("TE")) { - event.Catching = RunCatching(draftee.Catching, event.IsCombine) - event.RouteRunning = RunRouteRunning(draftee.RouteRunning, event.IsCombine) - event.RunBlocking = RunRunBlocking(draftee.RunBlock, event.IsCombine, position) + event.Catching = RunCatching(int(draftee.Catching), event.IsCombine) + event.RouteRunning = RunRouteRunning(int(draftee.RouteRunning), event.IsCombine) + event.RunBlocking = RunRunBlocking(int(draftee.RunBlock), event.IsCombine, position) } if strings.Contains(strings.ToLower(position), strings.ToLower("FB")) { - event.InsideRun = RunInsideRun(draftee.Speed, draftee.Strength, event.IsCombine) - event.OutsideRun = RunOutsideRun(draftee.Speed, draftee.Agility, event.IsCombine) - event.Catching = RunCatching(draftee.Catching, event.IsCombine) - event.RouteRunning = RunRouteRunning(draftee.RouteRunning, event.IsCombine) - event.RunBlocking = RunRunBlocking(draftee.RunBlock, event.IsCombine, position) + event.InsideRun = RunInsideRun(int(draftee.Speed), int(draftee.Strength), event.IsCombine) + event.OutsideRun = RunOutsideRun(int(draftee.Speed), int(draftee.Agility), event.IsCombine) + event.Catching = RunCatching(int(draftee.Catching), event.IsCombine) + event.RouteRunning = RunRouteRunning(int(draftee.RouteRunning), event.IsCombine) + event.RunBlocking = RunRunBlocking(int(draftee.RunBlock), event.IsCombine, position) } if strings.Contains(strings.ToLower(position), strings.ToLower("TE")) { - event.Catching = RunCatching(draftee.Catching, event.IsCombine) - event.RouteRunning = RunRouteRunning(draftee.RouteRunning, event.IsCombine) - event.RunBlocking = RunRunBlocking(draftee.RunBlock, event.IsCombine, position) + event.Catching = RunCatching(int(draftee.Catching), event.IsCombine) + event.RouteRunning = RunRouteRunning(int(draftee.RouteRunning), event.IsCombine) + event.RunBlocking = RunRunBlocking(int(draftee.RunBlock), event.IsCombine, position) } if strings.Contains(strings.ToLower(position), strings.ToLower("OT")) { - event.RunBlocking = RunRunBlocking(draftee.RunBlock, event.IsCombine, position) - event.PassBlocking = RunPassBlocking(draftee.PassBlock, event.IsCombine, position) + event.RunBlocking = RunRunBlocking(int(draftee.RunBlock), event.IsCombine, position) + event.PassBlocking = RunPassBlocking(int(draftee.PassBlock), event.IsCombine, position) } if strings.Contains(strings.ToLower(position), strings.ToLower("OG")) { - event.RunBlocking = RunRunBlocking(draftee.RunBlock, event.IsCombine, position) - event.PassBlocking = RunPassBlocking(draftee.PassBlock, event.IsCombine, position) + event.RunBlocking = RunRunBlocking(int(draftee.RunBlock), event.IsCombine, position) + event.PassBlocking = RunPassBlocking(int(draftee.PassBlock), event.IsCombine, position) } if strings.Contains(strings.ToLower(position), strings.ToLower("C")) && !strings.Contains(strings.ToLower(position), strings.ToLower("CB")) { // Special case so we don't get CBs in here. - event.RunBlocking = RunRunBlocking(draftee.RunBlock, event.IsCombine, position) - event.PassBlocking = RunPassBlocking(draftee.PassBlock, event.IsCombine, position) + event.RunBlocking = RunRunBlocking(int(draftee.RunBlock), event.IsCombine, position) + event.PassBlocking = RunPassBlocking(int(draftee.PassBlock), event.IsCombine, position) } if strings.Contains(strings.ToLower(position), strings.ToLower("DT")) { - event.RunStop = RunRunStop(draftee.RunDefense, event.IsCombine) - event.PassRush = RunPassRush(draftee.PassRush, event.IsCombine) + event.RunStop = RunRunStop(int(draftee.RunDefense), event.IsCombine) + event.PassRush = RunPassRush(int(draftee.PassRush), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("DE")) { - event.RunStop = RunRunStop(draftee.RunDefense, event.IsCombine) - event.PassRush = RunPassRush(draftee.PassRush, event.IsCombine) + event.RunStop = RunRunStop(int(draftee.RunDefense), event.IsCombine) + event.PassRush = RunPassRush(int(draftee.PassRush), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("OLB")) && strings.Contains(strings.ToLower(archetype), strings.ToLower("Pass Rush")) { - event.RunStop = RunRunStop(draftee.RunDefense, event.IsCombine) - event.PassRush = RunPassRush(draftee.PassRush, event.IsCombine) + event.RunStop = RunRunStop(int(draftee.RunDefense), event.IsCombine) + event.PassRush = RunPassRush(int(draftee.PassRush), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("OLB")) && !strings.Contains(strings.ToLower(archetype), strings.ToLower("Pass Rush")) { - event.RunStop = RunRunStop(draftee.RunDefense, event.IsCombine) - event.LBCoverage = RunLBCoverage(draftee.ManCoverage, draftee.ZoneCoverage, event.IsCombine) + event.RunStop = RunRunStop(int(draftee.RunDefense), event.IsCombine) + event.LBCoverage = RunLBCoverage(int(draftee.ManCoverage), int(draftee.ZoneCoverage), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("ILB")) { - event.RunStop = RunRunStop(draftee.RunDefense, event.IsCombine) - event.LBCoverage = RunLBCoverage(draftee.ManCoverage, draftee.ZoneCoverage, event.IsCombine) + event.RunStop = RunRunStop(int(draftee.RunDefense), event.IsCombine) + event.LBCoverage = RunLBCoverage(int(draftee.ManCoverage), int(draftee.ZoneCoverage), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("CB")) { - event.ManCoverage = RunManCoverage(draftee.ManCoverage, event.IsCombine) - event.ZoneCoverage = RunZoneCoverage(draftee.ZoneCoverage, event.IsCombine) + event.ManCoverage = RunManCoverage(int(draftee.ManCoverage), event.IsCombine) + event.ZoneCoverage = RunZoneCoverage(int(draftee.ZoneCoverage), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("FS")) { - event.ManCoverage = RunManCoverage(draftee.ManCoverage, event.IsCombine) - event.ZoneCoverage = RunZoneCoverage(draftee.ZoneCoverage, event.IsCombine) + event.ManCoverage = RunManCoverage(int(draftee.ManCoverage), event.IsCombine) + event.ZoneCoverage = RunZoneCoverage(int(draftee.ZoneCoverage), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("SS")) { - event.ManCoverage = RunManCoverage(draftee.ManCoverage, event.IsCombine) - event.ZoneCoverage = RunZoneCoverage(draftee.ZoneCoverage, event.IsCombine) + event.ManCoverage = RunManCoverage(int(draftee.ManCoverage), event.IsCombine) + event.ZoneCoverage = RunZoneCoverage(int(draftee.ZoneCoverage), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("K")) { - event.Kickoff = RunKickoffDrill(draftee.KickPower, draftee.PuntPower, event.IsCombine) - event.Fieldgoal = RunFieldGoalDrill(draftee.KickPower, draftee.KickAccuracy, event.IsCombine) - event.PuntDistance = RunPuntDistance(draftee.PuntPower, event.IsCombine) - event.CoffinPunt = RunCoffinPunt(draftee.PuntAccuracy, event.IsCombine) + event.Kickoff = RunKickoffDrill(int(draftee.KickPower), int(draftee.PuntPower), event.IsCombine) + event.Fieldgoal = RunFieldGoalDrill(int(draftee.KickPower), int(draftee.KickAccuracy), event.IsCombine) + event.PuntDistance = RunPuntDistance(int(draftee.PuntPower), event.IsCombine) + event.CoffinPunt = RunCoffinPunt(int(draftee.PuntAccuracy), event.IsCombine) } if strings.Contains(strings.ToLower(position), strings.ToLower("P")) { - event.Kickoff = RunKickoffDrill(draftee.KickPower, draftee.PuntPower, event.IsCombine) - event.Fieldgoal = RunFieldGoalDrill(draftee.KickPower, draftee.KickAccuracy, event.IsCombine) - event.PuntDistance = RunPuntDistance(draftee.PuntPower, event.IsCombine) - event.CoffinPunt = RunCoffinPunt(draftee.PuntAccuracy, event.IsCombine) + event.Kickoff = RunKickoffDrill(int(draftee.KickPower), int(draftee.PuntPower), event.IsCombine) + event.Fieldgoal = RunFieldGoalDrill(int(draftee.KickPower), int(draftee.KickAccuracy), event.IsCombine) + event.PuntDistance = RunPuntDistance(int(draftee.PuntPower), event.IsCombine) + event.CoffinPunt = RunCoffinPunt(int(draftee.PuntAccuracy), event.IsCombine) } return event @@ -221,26 +221,26 @@ func GetDummyDraftee(orginalDraftee models.NFLDraftee) models.NFLDraftee { attributeMeans := config.AttributeMeans() tempDraftee := orginalDraftee - tempDraftee.Speed = int(GetNewAttributeRating(tempDraftee.SpeedGrade, attributeMeans, "Speed", (tempDraftee.Position))) - tempDraftee.Agility = int(GetNewAttributeRating(tempDraftee.AgilityGrade, attributeMeans, "Agility", (tempDraftee.Position))) - tempDraftee.Strength = int(GetNewAttributeRating(tempDraftee.StrengthGrade, attributeMeans, "Strength", (tempDraftee.Position))) - tempDraftee.ThrowPower = int(GetNewAttributeRating(tempDraftee.ThrowPowerGrade, attributeMeans, "ThrowPower", (tempDraftee.Position))) - tempDraftee.ThrowAccuracy = int(GetNewAttributeRating(tempDraftee.ThrowAccuracyGrade, attributeMeans, "ThrowAccuracy", (tempDraftee.Position))) - tempDraftee.Catching = int(GetNewAttributeRating(tempDraftee.CarryingGrade, attributeMeans, "Catching", (tempDraftee.Position))) - tempDraftee.RouteRunning = int(GetNewAttributeRating(tempDraftee.RouteRunningGrade, attributeMeans, "RouteRunning", (tempDraftee.Position))) - tempDraftee.RunBlock = int(GetNewAttributeRating(tempDraftee.RunBlockGrade, attributeMeans, "RunBlock", (tempDraftee.Position))) - tempDraftee.PassBlock = int(GetNewAttributeRating(tempDraftee.PassBlockGrade, attributeMeans, "PassBlock", (tempDraftee.Position))) - tempDraftee.RunDefense = int(GetNewAttributeRating(tempDraftee.RunDefenseGrade, attributeMeans, "RunDefense", (tempDraftee.Position))) - tempDraftee.PassRush = int(GetNewAttributeRating(tempDraftee.PassRushGrade, attributeMeans, "PassRush", (tempDraftee.Position))) - tempDraftee.ManCoverage = int(GetNewAttributeRating(tempDraftee.ManCoverageGrade, attributeMeans, "ManCoverage", (tempDraftee.Position))) - tempDraftee.ZoneCoverage = int(GetNewAttributeRating(tempDraftee.ZoneCoverageGrade, attributeMeans, "ZoneCoverage", (tempDraftee.Position))) - tempDraftee.KickPower = int(GetNewAttributeRating(tempDraftee.KickPowerGrade, attributeMeans, "KickPower", (tempDraftee.Position))) - tempDraftee.KickAccuracy = int(GetNewAttributeRating(tempDraftee.KickAccuracyGrade, attributeMeans, "KickAccuracy", (tempDraftee.Position))) - tempDraftee.PuntPower = int(GetNewAttributeRating(tempDraftee.PuntPowerGrade, attributeMeans, "PuntPower", (tempDraftee.Position))) - tempDraftee.PuntAccuracy = int(GetNewAttributeRating(tempDraftee.PuntAccuracyGrade, attributeMeans, "PuntAccuracy", (tempDraftee.Position))) - tempDraftee.FootballIQ = int(GetNewAttributeRating(tempDraftee.FootballIQGrade, attributeMeans, "FootballIQ", (tempDraftee.Position))) - tempDraftee.Tackle = int(GetNewAttributeRating(tempDraftee.FootballIQGrade, attributeMeans, "Tackle", (tempDraftee.Position))) - tempDraftee.Carrying = int(GetNewAttributeRating(tempDraftee.FootballIQGrade, attributeMeans, "Carrying", (tempDraftee.Position))) + tempDraftee.Speed = int8(GetNewAttributeRating(tempDraftee.SpeedGrade, attributeMeans, "Speed", (tempDraftee.Position))) + tempDraftee.Agility = int8(GetNewAttributeRating(tempDraftee.AgilityGrade, attributeMeans, "Agility", (tempDraftee.Position))) + tempDraftee.Strength = int8(GetNewAttributeRating(tempDraftee.StrengthGrade, attributeMeans, "Strength", (tempDraftee.Position))) + tempDraftee.ThrowPower = int8(GetNewAttributeRating(tempDraftee.ThrowPowerGrade, attributeMeans, "ThrowPower", (tempDraftee.Position))) + tempDraftee.ThrowAccuracy = int8(GetNewAttributeRating(tempDraftee.ThrowAccuracyGrade, attributeMeans, "ThrowAccuracy", (tempDraftee.Position))) + tempDraftee.Catching = int8(GetNewAttributeRating(tempDraftee.CarryingGrade, attributeMeans, "Catching", (tempDraftee.Position))) + tempDraftee.RouteRunning = int8(GetNewAttributeRating(tempDraftee.RouteRunningGrade, attributeMeans, "RouteRunning", (tempDraftee.Position))) + tempDraftee.RunBlock = int8(GetNewAttributeRating(tempDraftee.RunBlockGrade, attributeMeans, "RunBlock", (tempDraftee.Position))) + tempDraftee.PassBlock = int8(GetNewAttributeRating(tempDraftee.PassBlockGrade, attributeMeans, "PassBlock", (tempDraftee.Position))) + tempDraftee.RunDefense = int8(GetNewAttributeRating(tempDraftee.RunDefenseGrade, attributeMeans, "RunDefense", (tempDraftee.Position))) + tempDraftee.PassRush = int8(GetNewAttributeRating(tempDraftee.PassRushGrade, attributeMeans, "PassRush", (tempDraftee.Position))) + tempDraftee.ManCoverage = int8(GetNewAttributeRating(tempDraftee.ManCoverageGrade, attributeMeans, "ManCoverage", (tempDraftee.Position))) + tempDraftee.ZoneCoverage = int8(GetNewAttributeRating(tempDraftee.ZoneCoverageGrade, attributeMeans, "ZoneCoverage", (tempDraftee.Position))) + tempDraftee.KickPower = int8(GetNewAttributeRating(tempDraftee.KickPowerGrade, attributeMeans, "KickPower", (tempDraftee.Position))) + tempDraftee.KickAccuracy = int8(GetNewAttributeRating(tempDraftee.KickAccuracyGrade, attributeMeans, "KickAccuracy", (tempDraftee.Position))) + tempDraftee.PuntPower = int8(GetNewAttributeRating(tempDraftee.PuntPowerGrade, attributeMeans, "PuntPower", (tempDraftee.Position))) + tempDraftee.PuntAccuracy = int8(GetNewAttributeRating(tempDraftee.PuntAccuracyGrade, attributeMeans, "PuntAccuracy", (tempDraftee.Position))) + tempDraftee.FootballIQ = int8(GetNewAttributeRating(tempDraftee.FootballIQGrade, attributeMeans, "FootballIQ", (tempDraftee.Position))) + tempDraftee.Tackle = int8(GetNewAttributeRating(tempDraftee.FootballIQGrade, attributeMeans, "Tackle", (tempDraftee.Position))) + tempDraftee.Carrying = int8(GetNewAttributeRating(tempDraftee.FootballIQGrade, attributeMeans, "Carrying", (tempDraftee.Position))) return tempDraftee } diff --git a/managers/ProgressionManager.go b/managers/ProgressionManager.go index 1a33d63..25351ad 100644 --- a/managers/ProgressionManager.go +++ b/managers/ProgressionManager.go @@ -58,8 +58,8 @@ func CFBProgressionMain() { draftee := models.NFLDraftee{} draftee.Map(player) // Map New Progression value for NFL - newProgression := util.GenerateNFLPotential(player.Progression) - newPotentialGrade := util.GetWeightedPotentialGrade(newProgression) + newProgression := util.GenerateNFLPotential(int(player.Progression)) + newPotentialGrade := util.GetWeightedPotentialGrade(int8(newProgression)) draftee.MapProgression(newProgression, newPotentialGrade) if draftee.Position == "RB" { @@ -203,8 +203,8 @@ func CFBProgressionMain() { draftee.Map(player) // Map New Progression value for NFL - newProgression := util.GenerateNFLPotential(player.Progression) - newPotentialGrade := util.GetWeightedPotentialGrade(newProgression) + newProgression := util.GenerateNFLPotential(int(player.Progression)) + newPotentialGrade := util.GetWeightedPotentialGrade(int8(newProgression)) draftee.MapProgression(newProgression, newPotentialGrade) if draftee.Position == "RB" { @@ -442,26 +442,26 @@ func ProgressNFLPlayers() { } func ProgressNFLPlayer(np structs.NFLPlayer, SeasonID string, totalSnaps, SnapsPerGame int, snaps structs.NFLPlayerSeasonSnaps) structs.NFLPlayer { - Agility := 0 - ThrowPower := 0 - ThrowAccuracy := 0 - Speed := 0 - FootballIQ := 0 - Strength := 0 - RunBlock := 0 - PassBlock := 0 - RunDefense := 0 - PassRush := 0 - Carrying := 0 - Tackle := 0 - RouteRunning := 0 - Catching := 0 - PuntPower := 0 - PuntAccuracy := 0 - KickPower := 0 - KickAccuracy := 0 - ManCoverage := 0 - ZoneCoverage := 0 + Agility := int8(0) + ThrowPower := int8(0) + ThrowAccuracy := int8(0) + Speed := int8(0) + FootballIQ := int8(0) + Strength := int8(0) + RunBlock := int8(0) + PassBlock := int8(0) + RunDefense := int8(0) + PassRush := int8(0) + Carrying := int8(0) + Tackle := int8(0) + RouteRunning := int8(0) + Catching := int8(0) + PuntPower := int8(0) + PuntAccuracy := int8(0) + KickPower := int8(0) + KickAccuracy := int8(0) + ManCoverage := int8(0) + ZoneCoverage := int8(0) mostPlayedPosition, mostPlayedSnaps := getMostPlayedPosition(snaps.BasePlayerSeasonSnaps, np.Position) totalSnaps -= int(snaps.STSnaps) @@ -1018,26 +1018,26 @@ func ProgressNFLPlayer(np structs.NFLPlayer, SeasonID string, totalSnaps, SnapsP } } - ThrowPower = RegressAttribute(ThrowPower, np.Age, int(np.PrimeAge), false) - ThrowAccuracy = RegressAttribute(ThrowAccuracy, np.Age, int(np.PrimeAge), false) - RunBlock = RegressAttribute(RunBlock, np.Age, int(np.PrimeAge), false) - PassBlock = RegressAttribute(PassBlock, np.Age, int(np.PrimeAge), false) - RunDefense = RegressAttribute(RunDefense, np.Age, int(np.PrimeAge), false) - PassRush = RegressAttribute(PassRush, np.Age, int(np.PrimeAge), false) - Carrying = RegressAttribute(Carrying, np.Age, int(np.PrimeAge), false) - Tackle = RegressAttribute(Tackle, np.Age, int(np.PrimeAge), false) - RouteRunning = RegressAttribute(RouteRunning, np.Age, int(np.PrimeAge), false) - Catching = RegressAttribute(Catching, np.Age, int(np.PrimeAge), false) - KickPower = RegressAttribute(KickPower, np.Age, int(np.PrimeAge), false) - KickAccuracy = RegressAttribute(KickAccuracy, np.Age, int(np.PrimeAge), false) - ManCoverage = RegressAttribute(ManCoverage, np.Age, int(np.PrimeAge), false) - ZoneCoverage = RegressAttribute(ZoneCoverage, np.Age, int(np.PrimeAge), false) - Strength = RegressAttribute(Strength, np.Age, int(np.PrimeAge), false) - Speed = RegressAttribute(Speed, np.Age, int(np.PrimeAge), false) - Agility = RegressAttribute(Agility, np.Age, int(np.PrimeAge), false) - FootballIQ = RegressAttribute(FootballIQ, np.Age, int(np.PrimeAge), true) - PuntPower = RegressAttribute(PuntPower, np.Age, int(np.PrimeAge), false) - PuntAccuracy = RegressAttribute(PuntAccuracy, np.Age, int(np.PrimeAge), false) + ThrowPower = RegressAttribute(ThrowPower, np.Age, int8(np.PrimeAge), false) + ThrowAccuracy = RegressAttribute(ThrowAccuracy, np.Age, int8(np.PrimeAge), false) + RunBlock = RegressAttribute(RunBlock, np.Age, int8(np.PrimeAge), false) + PassBlock = RegressAttribute(PassBlock, np.Age, int8(np.PrimeAge), false) + RunDefense = RegressAttribute(RunDefense, np.Age, int8(np.PrimeAge), false) + PassRush = RegressAttribute(PassRush, np.Age, int8(np.PrimeAge), false) + Carrying = RegressAttribute(Carrying, np.Age, int8(np.PrimeAge), false) + Tackle = RegressAttribute(Tackle, np.Age, int8(np.PrimeAge), false) + RouteRunning = RegressAttribute(RouteRunning, np.Age, int8(np.PrimeAge), false) + Catching = RegressAttribute(Catching, np.Age, int8(np.PrimeAge), false) + KickPower = RegressAttribute(KickPower, np.Age, int8(np.PrimeAge), false) + KickAccuracy = RegressAttribute(KickAccuracy, np.Age, int8(np.PrimeAge), false) + ManCoverage = RegressAttribute(ManCoverage, np.Age, int8(np.PrimeAge), false) + ZoneCoverage = RegressAttribute(ZoneCoverage, np.Age, int8(np.PrimeAge), false) + Strength = RegressAttribute(Strength, np.Age, int8(np.PrimeAge), false) + Speed = RegressAttribute(Speed, np.Age, int8(np.PrimeAge), false) + Agility = RegressAttribute(Agility, np.Age, int8(np.PrimeAge), false) + FootballIQ = RegressAttribute(FootballIQ, np.Age, int8(np.PrimeAge), true) + PuntPower = RegressAttribute(PuntPower, np.Age, int8(np.PrimeAge), false) + PuntAccuracy = RegressAttribute(PuntAccuracy, np.Age, int8(np.PrimeAge), false) newPotentialGrade := util.GetWeightedPotentialGrade(np.Progression) progressions := structs.CollegePlayerProgressions{ @@ -1075,7 +1075,7 @@ func ProgressCollegePlayer(cp structs.CollegePlayer, SeasonID string, stats []st totalSnaps := 0 for _, stat := range stats { - totalSnaps += stat.Snaps + totalSnaps += int(stat.Snaps) } var SnapsPerGame int = 0 @@ -1083,26 +1083,26 @@ func ProgressCollegePlayer(cp structs.CollegePlayer, SeasonID string, stats []st SnapsPerGame = totalSnaps / 12 // 12 } - Agility := 0 - ThrowPower := 0 - ThrowAccuracy := 0 - Speed := 0 - FootballIQ := 0 - Strength := 0 - RunBlock := 0 - PassBlock := 0 - RunDefense := 0 - PassRush := 0 - Carrying := 0 - Tackle := 0 - RouteRunning := 0 - Catching := 0 - PuntPower := 0 - PuntAccuracy := 0 - KickPower := 0 - KickAccuracy := 0 - ManCoverage := 0 - ZoneCoverage := 0 + Agility := int8(0) + ThrowPower := int8(0) + ThrowAccuracy := int8(0) + Speed := int8(0) + FootballIQ := int8(0) + Strength := int8(0) + RunBlock := int8(0) + PassBlock := int8(0) + RunDefense := int8(0) + PassRush := int8(0) + Carrying := int8(0) + Tackle := int8(0) + RouteRunning := int8(0) + Catching := int8(0) + PuntPower := int8(0) + PuntAccuracy := int8(0) + KickPower := int8(0) + KickAccuracy := int8(0) + ManCoverage := int8(0) + ZoneCoverage := int8(0) // Get most played position mostPlayedPosition, mostPlayedSnaps := getMostPlayedPosition(snaps.BasePlayerSeasonSnaps, cp.Position) @@ -1694,26 +1694,26 @@ func ProgressCollegePlayer(cp structs.CollegePlayer, SeasonID string, stats []st } func BoomBustDraftee(np models.NFLDraftee, SeasonID string, SnapsPerGame int, isBoom bool) models.NFLDraftee { - Agility := 0 - ThrowPower := 0 - ThrowAccuracy := 0 - Speed := 0 - FootballIQ := 0 - Strength := 0 - RunBlock := 0 - PassBlock := 0 - RunDefense := 0 - PassRush := 0 - Carrying := 0 - Tackle := 0 - RouteRunning := 0 - Catching := 0 - PuntPower := 0 - PuntAccuracy := 0 - KickPower := 0 - KickAccuracy := 0 - ManCoverage := 0 - ZoneCoverage := 0 + Agility := int8(0) + ThrowPower := int8(0) + ThrowAccuracy := int8(0) + Speed := int8(0) + FootballIQ := int8(0) + Strength := int8(0) + RunBlock := int8(0) + PassBlock := int8(0) + RunDefense := int8(0) + PassRush := int8(0) + Carrying := int8(0) + Tackle := int8(0) + RouteRunning := int8(0) + Catching := int8(0) + PuntPower := int8(0) + PuntAccuracy := int8(0) + KickPower := int8(0) + KickAccuracy := int8(0) + ManCoverage := int8(0) + ZoneCoverage := int8(0) if isBoom { switch np.Position { @@ -2089,26 +2089,26 @@ func BoomBustDraftee(np models.NFLDraftee, SeasonID string, SnapsPerGame int, is } func BoomBustRecruit(np structs.CollegePlayer, SeasonID string, SnapsPerGame int, isBoom bool) structs.CollegePlayer { - Agility := 0 - ThrowPower := 0 - ThrowAccuracy := 0 - Speed := 0 - FootballIQ := 0 - Strength := 0 - RunBlock := 0 - PassBlock := 0 - RunDefense := 0 - PassRush := 0 - Carrying := 0 - Tackle := 0 - RouteRunning := 0 - Catching := 0 - PuntPower := 0 - PuntAccuracy := 0 - KickPower := 0 - KickAccuracy := 0 - ManCoverage := 0 - ZoneCoverage := 0 + Agility := int8(0) + ThrowPower := int8(0) + ThrowAccuracy := int8(0) + Speed := int8(0) + FootballIQ := int8(0) + Strength := int8(0) + RunBlock := int8(0) + PassBlock := int8(0) + RunDefense := int8(0) + PassRush := int8(0) + Carrying := int8(0) + Tackle := int8(0) + RouteRunning := int8(0) + Catching := int8(0) + PuntPower := int8(0) + PuntAccuracy := int8(0) + KickPower := int8(0) + KickAccuracy := int8(0) + ManCoverage := int8(0) + ZoneCoverage := int8(0) if isBoom { switch np.Position { @@ -2429,26 +2429,26 @@ func BoomBustRecruit(np structs.CollegePlayer, SeasonID string, SnapsPerGame int Agility = SecondaryProgression(np.Progression, np.Agility) FootballIQ = SecondaryProgression(np.Progression, np.FootballIQ) case "ATH": - ThrowPower = np.ThrowPower + util.GenerateNormalizedIntFromRange(1, 3) - ThrowAccuracy = np.ThrowAccuracy + util.GenerateNormalizedIntFromRange(1, 3) - PuntPower = np.PuntPower + util.GenerateNormalizedIntFromRange(1, 3) - PuntAccuracy = np.PuntAccuracy + util.GenerateNormalizedIntFromRange(1, 3) - RunBlock = np.RunBlock + util.GenerateNormalizedIntFromRange(1, 3) - PassBlock = np.PassBlock + util.GenerateNormalizedIntFromRange(1, 3) - RunDefense = np.RunDefense + util.GenerateNormalizedIntFromRange(1, 3) - PassRush = np.PassRush + util.GenerateNormalizedIntFromRange(1, 3) - Carrying = np.Carrying + util.GenerateNormalizedIntFromRange(1, 3) - Tackle = np.Tackle + util.GenerateNormalizedIntFromRange(1, 3) - RouteRunning = np.RouteRunning + util.GenerateNormalizedIntFromRange(1, 3) - Catching = np.Catching + util.GenerateNormalizedIntFromRange(1, 3) - KickPower = np.KickPower + util.GenerateNormalizedIntFromRange(1, 3) - KickAccuracy = np.KickAccuracy + util.GenerateNormalizedIntFromRange(1, 3) - ManCoverage = np.ManCoverage + util.GenerateNormalizedIntFromRange(1, 3) - ZoneCoverage = np.ZoneCoverage + util.GenerateNormalizedIntFromRange(1, 3) - Strength = np.Strength + util.GenerateNormalizedIntFromRange(1, 3) - Speed = np.Speed + util.GenerateNormalizedIntFromRange(1, 3) - Agility = np.Agility + util.GenerateNormalizedIntFromRange(1, 3) - FootballIQ = np.FootballIQ + util.GenerateNormalizedIntFromRange(1, 3) + ThrowPower = np.ThrowPower + int8(util.GenerateNormalizedIntFromRange(1, 3)) + ThrowAccuracy = np.ThrowAccuracy + int8(util.GenerateNormalizedIntFromRange(1, 3)) + PuntPower = np.PuntPower + int8(util.GenerateNormalizedIntFromRange(1, 3)) + PuntAccuracy = np.PuntAccuracy + int8(util.GenerateNormalizedIntFromRange(1, 3)) + RunBlock = np.RunBlock + int8(util.GenerateNormalizedIntFromRange(1, 3)) + PassBlock = np.PassBlock + int8(util.GenerateNormalizedIntFromRange(1, 3)) + RunDefense = np.RunDefense + int8(util.GenerateNormalizedIntFromRange(1, 3)) + PassRush = np.PassRush + int8(util.GenerateNormalizedIntFromRange(1, 3)) + Carrying = np.Carrying + int8(util.GenerateNormalizedIntFromRange(1, 3)) + Tackle = np.Tackle + int8(util.GenerateNormalizedIntFromRange(1, 3)) + RouteRunning = np.RouteRunning + int8(util.GenerateNormalizedIntFromRange(1, 3)) + Catching = np.Catching + int8(util.GenerateNormalizedIntFromRange(1, 3)) + KickPower = np.KickPower + int8(util.GenerateNormalizedIntFromRange(1, 3)) + KickAccuracy = np.KickAccuracy + int8(util.GenerateNormalizedIntFromRange(1, 3)) + ManCoverage = np.ManCoverage + int8(util.GenerateNormalizedIntFromRange(1, 3)) + ZoneCoverage = np.ZoneCoverage + int8(util.GenerateNormalizedIntFromRange(1, 3)) + Strength = np.Strength + int8(util.GenerateNormalizedIntFromRange(1, 3)) + Speed = np.Speed + int8(util.GenerateNormalizedIntFromRange(1, 3)) + Agility = np.Agility + int8(util.GenerateNormalizedIntFromRange(1, 3)) + FootballIQ = np.FootballIQ + int8(util.GenerateNormalizedIntFromRange(1, 3)) } } else { // Change regression to be attribute - Normalized Random between 1-3 @@ -2504,7 +2504,7 @@ func BoomBustRecruit(np structs.CollegePlayer, SeasonID string, SnapsPerGame int return np } -func PrimaryProgression(progression int, input int, position string, archetype string, spg int, attribute string, isRedshirting bool) int { +func PrimaryProgression(progression int8, input int8, position string, archetype string, spg int, attribute string, isRedshirting bool) int8 { if input == 0 { return 1 } @@ -2518,7 +2518,7 @@ func PrimaryProgression(progression int, input int, position string, archetype s progress = ((1 - math.Pow((float64(input)/99.0), 15)) * math.Log10(float64(input)) * (0.6 + modifier)) * (1 + (float64(progression) / 70)) } else { rsMod := util.GenerateFloatFromRange(1.7, 2.3) - progress = ((1 - math.Pow((float64(input)/99), 15)) * math.Log10(float64(input)) * rsMod * (1 + (float64(progression / 60)))) + progress = ((1 - math.Pow((float64(input)/99.0), 15)) * math.Log10(float64(input)) * rsMod * (1 + (float64(progression) / 60))) } if progress+float64(input) > 99 { @@ -2527,13 +2527,13 @@ func PrimaryProgression(progression int, input int, position string, archetype s progress = progress + float64(input) } - return int(math.Round(progress)) + return int8(math.Round(progress)) } -func SecondaryProgression(progression int, input int) int { +func SecondaryProgression(progression int8, input int8) int8 { num := rand.Intn(99) - if num < progression && input < 99 { + if num < int(progression) && input < 99 { newInput := input + 1 return newInput } else { @@ -2779,12 +2779,12 @@ func DetermineIfRetiring(player structs.NFLPlayer, statMap map[uint][]structs.NF lastTwoSeasonStats := statMap[player.ID] totalSnaps := 0 for _, stat := range lastTwoSeasonStats { - totalSnaps += stat.Snaps + totalSnaps += int(stat.Snaps) } return totalSnaps == 0 } - if player.Age < int(player.PrimeAge) { + if int(player.Age) < int(player.PrimeAge) { return false } @@ -2792,7 +2792,7 @@ func DetermineIfRetiring(player structs.NFLPlayer, statMap map[uint][]structs.NF Thoughts - we could implement historic injuries into this somewhere, although we are impacting prime age upon injuries. */ benchmark := 0 - age := player.Age + age := int(player.Age) primeAge := player.PrimeAge retirementAge := primeAge + uint(util.GenerateIntFromRange(3, 5)) if age > int(retirementAge) { @@ -2864,7 +2864,7 @@ func getAverageNFLSnaps(stats []structs.NFLPlayerStats) (int, int) { totalSnaps := 0 for _, stat := range stats { - totalSnaps += stat.Snaps + totalSnaps += int(stat.Snaps) } var SnapsPerGame int = 0 @@ -2879,7 +2879,7 @@ func getAverageSnaps(stats []structs.CollegePlayerStats) int { totalSnaps := 0 for _, stat := range stats { - totalSnaps += stat.Snaps + totalSnaps += int(stat.Snaps) } var SnapsPerGame int = 0 @@ -3004,7 +3004,7 @@ func getNewArchetype(pos, arch, newPos string) (string, bool) { return newArchtype, true } -func RegressAttribute(attr, age, primeAge int, isIQ bool) int { +func RegressAttribute(attr, age, primeAge int8, isIQ bool) int8 { min := 0.0 max := 0.0 ageRequirement := primeAge @@ -3024,5 +3024,5 @@ func RegressAttribute(attr, age, primeAge int, isIQ bool) int { regression := util.GenerateFloatFromRange(min, max) newAttrValue := float64(attr) * (1 - regression) - return int(newAttrValue) + return int8(newAttrValue) } diff --git a/managers/ProgressionTestsManager.go b/managers/ProgressionTestsManager.go index 3eddb8e..db3e52b 100644 --- a/managers/ProgressionTestsManager.go +++ b/managers/ProgressionTestsManager.go @@ -71,8 +71,8 @@ func CFBProgressionExport(w http.ResponseWriter) { draftee := models.NFLDraftee{} draftee.Map(player) // Map New Progression value for NFL - newProgression := util.GenerateNFLPotential(player.Progression) - newPotentialGrade := util.GetWeightedPotentialGrade(newProgression) + newProgression := util.GenerateNFLPotential(int(player.Progression)) + newPotentialGrade := util.GetWeightedPotentialGrade(int8(newProgression)) draftee.MapProgression(newProgression, newPotentialGrade) if draftee.Position == "RB" { @@ -125,15 +125,15 @@ func CFBProgressionExport(w http.ResponseWriter) { csvModel := models.MapNFLDrafteeToModel(draftee) playerRow := []string{ "", idStr, csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, "0", strconv.Itoa(draftee.Age), strconv.Itoa(draftee.Stars), - draftee.HighSchool, draftee.City, draftee.State, strconv.Itoa(draftee.Height), - strconv.Itoa(draftee.Weight), strconv.Itoa(draftee.Overall), strconv.Itoa(draftee.Speed), - strconv.Itoa(draftee.FootballIQ), strconv.Itoa(draftee.Agility), strconv.Itoa(draftee.Carrying), - strconv.Itoa(draftee.Catching), strconv.Itoa(draftee.RouteRunning), strconv.Itoa(draftee.ZoneCoverage), strconv.Itoa(draftee.ManCoverage), - strconv.Itoa(draftee.Strength), strconv.Itoa(draftee.Tackle), strconv.Itoa(draftee.PassBlock), strconv.Itoa(draftee.RunBlock), - strconv.Itoa(draftee.PassRush), strconv.Itoa(draftee.RunDefense), strconv.Itoa(draftee.ThrowPower), strconv.Itoa(draftee.ThrowAccuracy), - strconv.Itoa(draftee.KickPower), strconv.Itoa(draftee.KickAccuracy), strconv.Itoa(draftee.PuntPower), strconv.Itoa(draftee.PuntAccuracy), - strconv.Itoa(draftee.Stamina), strconv.Itoa(draftee.Injury), csvModel.PotentialGrade, "None", + csvModel.Archetype, "0", strconv.Itoa(int(draftee.Age)), strconv.Itoa(int(draftee.Stars)), + draftee.HighSchool, draftee.City, draftee.State, strconv.Itoa(int(draftee.Height)), + strconv.Itoa(int(draftee.Weight)), strconv.Itoa(int(draftee.Overall)), strconv.Itoa(int(draftee.Speed)), + strconv.Itoa(int(draftee.FootballIQ)), strconv.Itoa(int(draftee.Agility)), strconv.Itoa(int(draftee.Carrying)), + strconv.Itoa(int(draftee.Catching)), strconv.Itoa(int(draftee.RouteRunning)), strconv.Itoa(int(draftee.ZoneCoverage)), strconv.Itoa(int(draftee.ManCoverage)), + strconv.Itoa(int(draftee.Strength)), strconv.Itoa(int(draftee.Tackle)), strconv.Itoa(int(draftee.PassBlock)), strconv.Itoa(int(draftee.RunBlock)), + strconv.Itoa(int(draftee.PassRush)), strconv.Itoa(int(draftee.RunDefense)), strconv.Itoa(int(draftee.ThrowPower)), strconv.Itoa(int(draftee.ThrowAccuracy)), + strconv.Itoa(int(draftee.KickPower)), strconv.Itoa(int(draftee.KickAccuracy)), strconv.Itoa(int(draftee.PuntPower)), strconv.Itoa(int(draftee.PuntAccuracy)), + strconv.Itoa(int(draftee.Stamina)), strconv.Itoa(int(draftee.Injury)), csvModel.PotentialGrade, "None", boomBustStatus, strconv.Itoa(tier), "Draftee", csvModel.College, } csvRows = append(csvRows, playerRow) @@ -143,15 +143,15 @@ func CFBProgressionExport(w http.ResponseWriter) { idStr := strconv.Itoa(int(player.ID)) playerRow := []string{ team.TeamName, idStr, csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.Year, strconv.Itoa(player.Age), strconv.Itoa(player.Stars), - player.HighSchool, player.City, player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), strconv.Itoa(player.Overall), strconv.Itoa(player.Speed), - strconv.Itoa(player.FootballIQ), strconv.Itoa(player.Agility), strconv.Itoa(player.Carrying), - strconv.Itoa(player.Catching), strconv.Itoa(player.RouteRunning), strconv.Itoa(player.ZoneCoverage), strconv.Itoa(player.ManCoverage), - strconv.Itoa(player.Strength), strconv.Itoa(player.Tackle), strconv.Itoa(player.PassBlock), strconv.Itoa(player.RunBlock), - strconv.Itoa(player.PassRush), strconv.Itoa(player.RunDefense), strconv.Itoa(player.ThrowPower), strconv.Itoa(player.ThrowAccuracy), - strconv.Itoa(player.KickPower), strconv.Itoa(player.KickAccuracy), strconv.Itoa(player.PuntPower), strconv.Itoa(player.PuntAccuracy), - strconv.Itoa(player.Stamina), strconv.Itoa(player.Injury), csvModel.PotentialGrade, csvModel.RedshirtStatus, + csvModel.Archetype, csvModel.Year, strconv.Itoa(int(player.Age)), strconv.Itoa(int(player.Stars)), + player.HighSchool, player.City, player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), strconv.Itoa(int(player.Overall)), strconv.Itoa(int(player.Speed)), + strconv.Itoa(int(player.FootballIQ)), strconv.Itoa(int(player.Agility)), strconv.Itoa(int(player.Carrying)), + strconv.Itoa(int(player.Catching)), strconv.Itoa(int(player.RouteRunning)), strconv.Itoa(int(player.ZoneCoverage)), strconv.Itoa(int(player.ManCoverage)), + strconv.Itoa(int(player.Strength)), strconv.Itoa(int(player.Tackle)), strconv.Itoa(int(player.PassBlock)), strconv.Itoa(int(player.RunBlock)), + strconv.Itoa(int(player.PassRush)), strconv.Itoa(int(player.RunDefense)), strconv.Itoa(int(player.ThrowPower)), strconv.Itoa(int(player.ThrowAccuracy)), + strconv.Itoa(int(player.KickPower)), strconv.Itoa(int(player.KickAccuracy)), strconv.Itoa(int(player.PuntPower)), strconv.Itoa(int(player.PuntAccuracy)), + strconv.Itoa(int(player.Stamina)), strconv.Itoa(int(player.Injury)), csvModel.PotentialGrade, csvModel.RedshirtStatus, "None", "", "Collegiate", "", } csvRows = append(csvRows, playerRow) @@ -204,15 +204,15 @@ func CFBProgressionExport(w http.ResponseWriter) { idStr := strconv.Itoa(int(cp.ID)) playerRow := []string{ team.TeamName, idStr, csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.Year, strconv.Itoa(cp.Age), strconv.Itoa(cp.Stars), - cp.HighSchool, cp.City, cp.State, strconv.Itoa(cp.Height), - strconv.Itoa(cp.Weight), strconv.Itoa(cp.Overall), strconv.Itoa(cp.Speed), - strconv.Itoa(cp.FootballIQ), strconv.Itoa(cp.Agility), strconv.Itoa(cp.Carrying), - strconv.Itoa(cp.Catching), strconv.Itoa(cp.RouteRunning), strconv.Itoa(cp.ZoneCoverage), strconv.Itoa(cp.ManCoverage), - strconv.Itoa(cp.Strength), strconv.Itoa(cp.Tackle), strconv.Itoa(cp.PassBlock), strconv.Itoa(cp.RunBlock), - strconv.Itoa(cp.PassRush), strconv.Itoa(cp.RunDefense), strconv.Itoa(cp.ThrowPower), strconv.Itoa(cp.ThrowAccuracy), - strconv.Itoa(cp.KickPower), strconv.Itoa(cp.KickAccuracy), strconv.Itoa(cp.PuntPower), strconv.Itoa(cp.PuntAccuracy), - strconv.Itoa(cp.Stamina), strconv.Itoa(cp.Injury), csvModel.PotentialGrade, csvModel.RedshirtStatus, + csvModel.Archetype, csvModel.Year, strconv.Itoa(int(cp.Age)), strconv.Itoa(int(cp.Stars)), + cp.HighSchool, cp.City, cp.State, strconv.Itoa(int(cp.Height)), + strconv.Itoa(int(cp.Weight)), strconv.Itoa(int(cp.Overall)), strconv.Itoa(int(cp.Speed)), + strconv.Itoa(int(cp.FootballIQ)), strconv.Itoa(int(cp.Agility)), strconv.Itoa(int(cp.Carrying)), + strconv.Itoa(int(cp.Catching)), strconv.Itoa(int(cp.RouteRunning)), strconv.Itoa(int(cp.ZoneCoverage)), strconv.Itoa(int(cp.ManCoverage)), + strconv.Itoa(int(cp.Strength)), strconv.Itoa(int(cp.Tackle)), strconv.Itoa(int(cp.PassBlock)), strconv.Itoa(int(cp.RunBlock)), + strconv.Itoa(int(cp.PassRush)), strconv.Itoa(int(cp.RunDefense)), strconv.Itoa(int(cp.ThrowPower)), strconv.Itoa(int(cp.ThrowAccuracy)), + strconv.Itoa(int(cp.KickPower)), strconv.Itoa(int(cp.KickAccuracy)), strconv.Itoa(int(cp.PuntPower)), strconv.Itoa(int(cp.PuntAccuracy)), + strconv.Itoa(int(cp.Stamina)), strconv.Itoa(int(cp.Injury)), csvModel.PotentialGrade, csvModel.RedshirtStatus, boomBustStatus, strconv.Itoa(tier), "Collegiate", "", } csvRows = append(csvRows, playerRow) @@ -297,15 +297,15 @@ func NFLProgressionExport(w http.ResponseWriter) { idStr := strconv.Itoa(int(player.ID)) playerRow := []string{ team.TeamName, idStr, csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.Year, strconv.Itoa(player.Age), strconv.Itoa(int(player.PrimeAge)), strconv.Itoa(player.Stars), - player.HighSchool, "", player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), strconv.Itoa(player.Overall), strconv.Itoa(player.Speed), - strconv.Itoa(player.FootballIQ), strconv.Itoa(player.Agility), strconv.Itoa(player.Carrying), - strconv.Itoa(player.Catching), strconv.Itoa(player.RouteRunning), strconv.Itoa(player.ZoneCoverage), strconv.Itoa(player.ManCoverage), - strconv.Itoa(player.Strength), strconv.Itoa(player.Tackle), strconv.Itoa(player.PassBlock), strconv.Itoa(player.RunBlock), - strconv.Itoa(player.PassRush), strconv.Itoa(player.RunDefense), strconv.Itoa(player.ThrowPower), strconv.Itoa(player.ThrowAccuracy), - strconv.Itoa(player.KickPower), strconv.Itoa(player.KickAccuracy), strconv.Itoa(player.PuntPower), strconv.Itoa(player.PuntAccuracy), - strconv.Itoa(player.Stamina), strconv.Itoa(player.Injury), csvModel.PotentialGrade, "", + csvModel.Archetype, csvModel.Year, strconv.Itoa(int(player.Age)), strconv.Itoa(int(player.PrimeAge)), strconv.Itoa(int(player.Stars)), + player.HighSchool, "", player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), strconv.Itoa(int(player.Overall)), strconv.Itoa(int(player.Speed)), + strconv.Itoa(int(player.FootballIQ)), strconv.Itoa(int(player.Agility)), strconv.Itoa(int(player.Carrying)), + strconv.Itoa(int(player.Catching)), strconv.Itoa(int(player.RouteRunning)), strconv.Itoa(int(player.ZoneCoverage)), strconv.Itoa(int(player.ManCoverage)), + strconv.Itoa(int(player.Strength)), strconv.Itoa(int(player.Tackle)), strconv.Itoa(int(player.PassBlock)), strconv.Itoa(int(player.RunBlock)), + strconv.Itoa(int(player.PassRush)), strconv.Itoa(int(player.RunDefense)), strconv.Itoa(int(player.ThrowPower)), strconv.Itoa(int(player.ThrowAccuracy)), + strconv.Itoa(int(player.KickPower)), strconv.Itoa(int(player.KickAccuracy)), strconv.Itoa(int(player.PuntPower)), strconv.Itoa(int(player.PuntAccuracy)), + strconv.Itoa(int(player.Stamina)), strconv.Itoa(int(player.Injury)), csvModel.PotentialGrade, "", retireStatus, player.College, } csvRows = append(csvRows, playerRow) @@ -334,15 +334,15 @@ func NFLProgressionExport(w http.ResponseWriter) { idStr := strconv.Itoa(int(player.ID)) playerRow := []string{ "FA", idStr, csvModel.FirstName, csvModel.LastName, csvModel.Position, - csvModel.Archetype, csvModel.Year, strconv.Itoa(player.Age), strconv.Itoa(int(player.PrimeAge)), strconv.Itoa(player.Stars), - player.HighSchool, "", player.State, strconv.Itoa(player.Height), - strconv.Itoa(player.Weight), strconv.Itoa(player.Overall), strconv.Itoa(player.Speed), - strconv.Itoa(player.FootballIQ), strconv.Itoa(player.Agility), strconv.Itoa(player.Carrying), - strconv.Itoa(player.Catching), strconv.Itoa(player.RouteRunning), strconv.Itoa(player.ZoneCoverage), strconv.Itoa(player.ManCoverage), - strconv.Itoa(player.Strength), strconv.Itoa(player.Tackle), strconv.Itoa(player.PassBlock), strconv.Itoa(player.RunBlock), - strconv.Itoa(player.PassRush), strconv.Itoa(player.RunDefense), strconv.Itoa(player.ThrowPower), strconv.Itoa(player.ThrowAccuracy), - strconv.Itoa(player.KickPower), strconv.Itoa(player.KickAccuracy), strconv.Itoa(player.PuntPower), strconv.Itoa(player.PuntAccuracy), - strconv.Itoa(player.Stamina), strconv.Itoa(player.Injury), csvModel.PotentialGrade, "", + csvModel.Archetype, csvModel.Year, strconv.Itoa(int(player.Age)), strconv.Itoa(int(player.PrimeAge)), strconv.Itoa(int(player.Stars)), + player.HighSchool, "", player.State, strconv.Itoa(int(player.Height)), + strconv.Itoa(int(player.Weight)), strconv.Itoa(int(player.Overall)), strconv.Itoa(int(player.Speed)), + strconv.Itoa(int(player.FootballIQ)), strconv.Itoa(int(player.Agility)), strconv.Itoa(int(player.Carrying)), + strconv.Itoa(int(player.Catching)), strconv.Itoa(int(player.RouteRunning)), strconv.Itoa(int(player.ZoneCoverage)), strconv.Itoa(int(player.ManCoverage)), + strconv.Itoa(int(player.Strength)), strconv.Itoa(int(player.Tackle)), strconv.Itoa(int(player.PassBlock)), strconv.Itoa(int(player.RunBlock)), + strconv.Itoa(int(player.PassRush)), strconv.Itoa(int(player.RunDefense)), strconv.Itoa(int(player.ThrowPower)), strconv.Itoa(int(player.ThrowAccuracy)), + strconv.Itoa(int(player.KickPower)), strconv.Itoa(int(player.KickAccuracy)), strconv.Itoa(int(player.PuntPower)), strconv.Itoa(int(player.PuntAccuracy)), + strconv.Itoa(int(player.Stamina)), strconv.Itoa(int(player.Injury)), csvModel.PotentialGrade, "", retireStatus, player.College, } csvRows = append(csvRows, playerRow) diff --git a/managers/RankingsManager.go b/managers/RankingsManager.go index e7b10cd..9e97d5f 100644 --- a/managers/RankingsManager.go +++ b/managers/RankingsManager.go @@ -31,7 +31,7 @@ func AssignAllRecruitRanks() { // Rivals Ranking var rivalsRank float64 = 0 rivalsBonus := rivalsMod - rivalsRank = GetRivalsRanking(croot.Stars, rivalsBonus) + rivalsRank = GetRivalsRanking(int(croot.Stars), rivalsBonus) var r float64 = croot.TopRankModifier @@ -76,7 +76,7 @@ func GetESPNRanking(r structs.Recruit) float64 { // ESPN Ranking = Star Rank + Archetype Modifier + weight difference + height difference // + potential val, and then round. - starRank := GetESPNStarRank(r.Stars) + starRank := GetESPNStarRank(int(r.Stars)) archMod := GetArchetypeModifier(r.Archetype) potentialMod := GetESPNPotentialModifier(r.PotentialGrade) @@ -192,7 +192,7 @@ func GetPredictiveOverall(r structs.Recruit) int { potentialProg = 4 } - return currentOverall + (potentialProg * 3) + return int(currentOverall) + (potentialProg * 3) } func GetRivalsStarModifier(stars int) float64 { diff --git a/managers/StatsManager.go b/managers/StatsManager.go index 2d43165..9743bac 100644 --- a/managers/StatsManager.go +++ b/managers/StatsManager.go @@ -377,17 +377,11 @@ func GetALLCollegePlayerSeasonStatsBySeason(SeasonID string) []structs.CollegePl } func GetCollegePlayerSeasonStatsBySeason(SeasonID, gameType string) []structs.CollegePlayerSeasonStats { - return repository.FindCollegePlayerSeasonStatsRecords(SeasonID, gameType) + return repository.FindCollegePlayerSeasonStatsRecords(repository.StatsQuery{SeasonID: SeasonID, GameType: gameType}) } func GetNFLTeamSeasonStatsBySeason(SeasonID, gameType string) []structs.NFLTeamSeasonStats { - db := dbprovider.GetInstance().GetDB() - - var teamStats []structs.NFLTeamSeasonStats - - db.Where("season_id = ?", SeasonID).Find(&teamStats) - - return teamStats + return repository.FindProTeamSeasonStatsRecords(repository.StatsQuery{SeasonID: SeasonID, GameType: gameType}) } func GetALLNFLPlayerSeasonStatsBySeason(SeasonID string) []structs.NFLPlayerSeasonStats { @@ -401,7 +395,7 @@ func GetALLNFLPlayerSeasonStatsBySeason(SeasonID string) []structs.NFLPlayerSeas } func GetNFLPlayerSeasonStatsBySeason(SeasonID, gameType string) []structs.NFLPlayerSeasonStats { - return repository.FindProPlayerSeasonStatsRecords(SeasonID, gameType) + return repository.FindProPlayerSeasonStatsRecords(repository.StatsQuery{SeasonID: SeasonID, GameType: gameType}) } func GetAllNFLPlayerSeasonStatsByPlayerID(playerID, gameType string) []structs.NFLPlayerSeasonStats { @@ -1967,11 +1961,11 @@ func GetProTeamGameStatsBySeason(SeasonID, gameType string) []structs.NFLTeamSta } func GetProPlayerSeasonStatsBySeason(SeasonID, gameType string) []structs.NFLPlayerSeasonStats { - return repository.FindProPlayerSeasonStatsRecords(SeasonID, gameType) + return repository.FindProPlayerSeasonStatsRecords(repository.StatsQuery{SeasonID: SeasonID, GameType: gameType}) } func GetProTeamSeasonStatsBySeason(SeasonID, gameType string) []structs.NFLTeamSeasonStats { - return repository.FindProTeamSeasonStatsRecords(SeasonID, gameType) + return repository.FindProTeamSeasonStatsRecords(repository.StatsQuery{SeasonID: SeasonID, GameType: gameType}) } func SearchCollegeStats(seasonID, weekID, viewType, gameType string) structs.SearchStatsResponse { diff --git a/managers/SyncManager.go b/managers/SyncManager.go index a4a37c5..14d3624 100644 --- a/managers/SyncManager.go +++ b/managers/SyncManager.go @@ -218,7 +218,7 @@ func SyncRecruiting(timestamp structs.Timestamp) { SeasonID: timestamp.CollegeSeasonID, MessageType: "Commitment", League: "CFB", - Message: strconv.Itoa(int(recruit.ID)) + " " + recruit.FirstName + " " + recruit.LastName + ", " + strconv.Itoa(recruit.Stars) + " star " + recruit.Position + " from " + recruit.City + ", " + recruit.State + " has signed with " + recruit.College + " with " + strconv.Itoa(int(odds)) + " percent odds.", + Message: strconv.Itoa(int(recruit.ID)) + " " + recruit.FirstName + " " + recruit.LastName + ", " + strconv.Itoa(int(recruit.Stars)) + " star " + recruit.Position + " from " + recruit.City + ", " + recruit.State + " has signed with " + recruit.College + " with " + strconv.Itoa(int(odds)) + " percent odds.", } db.Create(&newsLog) @@ -616,7 +616,7 @@ func FillAIRecruitingBoards() { starMax = 3 } if (teamNeeds[croot.Position] < 1) || - (croot.Stars > starMax) || (croot.Stars < starMin) { + (int(croot.Stars) > starMax) || (int(croot.Stars) < starMin) { continue } diff --git a/managers/TeamManager.go b/managers/TeamManager.go index 9f3d100..77e12f8 100644 --- a/managers/TeamManager.go +++ b/managers/TeamManager.go @@ -466,12 +466,12 @@ func GetNFLPlayer(depthChartPlayers structs.NFLDepthChart, position string, leve return structs.NFLPlayer{} } -func GetKickReturnOverall(speed int, agility int) float64 { +func GetKickReturnOverall(speed int8, agility int8) float64 { grade := (float64(speed) * 0.75) + (float64(agility) * 0.25) return grade } -func GetPuntReturnOverall(speed int, agility int) float64 { +func GetPuntReturnOverall(speed int8, agility int8) float64 { grade := (float64(speed) * 0.25) + (float64(agility) * 0.75) return grade } diff --git a/managers/TestManager.go b/managers/TestManager.go index 9313c78..ebff772 100644 --- a/managers/TestManager.go +++ b/managers/TestManager.go @@ -218,7 +218,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College score += 50 } // score += ((cp.ThrowAccuracy + cp.ThrowPower) / 2) - score += cp.Overall + score += int(cp.Overall) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -244,7 +244,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College score -= bonus } - score += ((cp.Speed + cp.Agility + cp.Strength + cp.Carrying) / 4) + score += int((float64(cp.Speed) + float64(cp.Agility) + float64(cp.Strength) + float64(cp.Carrying)) / 4.0) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -269,7 +269,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College } else if isBadFit && !isGoodFit { score -= bonus } - score += ((cp.Strength + cp.Carrying + cp.PassBlock + cp.RunBlock) / 4) + score += ((int(cp.Strength) + int(cp.Carrying) + int(cp.PassBlock) + int(cp.RunBlock)) / 4) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -720,7 +720,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College score -= bonus } - score += cp.PuntAccuracy + cp.PuntPower + score += int(cp.PuntAccuracy) + int(cp.PuntPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -747,7 +747,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College } else if isBadFit && !isGoodFit { score -= bonus } - score += cp.KickAccuracy + cp.KickPower + score += int(cp.KickAccuracy) + int(cp.KickPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, Archetype: arch, @@ -774,7 +774,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College score -= bonus } - score += cp.KickAccuracy + cp.KickPower + score += int(cp.KickAccuracy) + int(cp.KickPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -793,7 +793,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College } else if pos == "WR" || pos == "RB" { score += 25 } - score += cp.Agility + score += int(cp.Agility) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -812,7 +812,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College } else if pos == "WR" || pos == "RB" { score += 25 } - score += cp.Speed + score += int(cp.Speed) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -832,7 +832,7 @@ func ReAlignCollegeDepthChartTEST(db *gorm.DB, teamID string, gp structs.College score += 25 } - score += cp.Tackle + score += int(cp.Tackle) dcpObj := structs.DepthChartPositionDTO{ Position: pos, Archetype: arch, @@ -1136,7 +1136,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan } else if pos == "ATH" && (arch == "Triple-Threat" || arch == "Field General") { score += 50 } - score += cp.Overall + score += int(cp.Overall) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1162,7 +1162,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan score -= bonus } - score += ((cp.Speed + cp.Agility + cp.Strength + cp.Carrying) / 4) + score += (int(cp.Speed) + int(cp.Agility) + int(cp.Strength) + int(cp.Carrying)) / 4 dcpObj := structs.DepthChartPositionDTO{ Position: pos, Archetype: arch, @@ -1186,7 +1186,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan } else if isBadFit && !isGoodFit { score -= bonus } - score += ((cp.Strength + cp.Carrying + cp.PassBlock + cp.RunBlock) / 4) + score += (int(cp.Strength) + int(cp.Carrying) + int(cp.PassBlock) + int(cp.RunBlock)) / 4 dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1638,7 +1638,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan score -= bonus } - score += cp.PuntAccuracy + cp.PuntPower + score += int(cp.PuntAccuracy) + int(cp.PuntPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1665,7 +1665,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan } else if isBadFit && !isGoodFit { score -= bonus } - score += cp.KickAccuracy + cp.KickPower + score += int(cp.KickAccuracy) + int(cp.KickPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1693,7 +1693,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan score -= bonus } - score += cp.KickAccuracy + cp.KickPower + score += int(cp.KickAccuracy) + int(cp.KickPower) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1712,7 +1712,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan } else if pos == "WR" || pos == "RB" { score += 25 } - score += cp.Agility + score += int(cp.Agility) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1731,7 +1731,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan } else if pos == "WR" || pos == "RB" { score += 25 } - score += cp.Speed + score += int(cp.Speed) dcpObj := structs.DepthChartPositionDTO{ Position: pos, @@ -1754,7 +1754,7 @@ func ReAlignNFLDepthChartTEST(db *gorm.DB, teamID string, gp structs.NFLGameplan score += 15 } - score += cp.Tackle + score += int(cp.Tackle) dcpObj := structs.DepthChartPositionDTO{ Position: pos, Archetype: arch, diff --git a/managers/TradeManager.go b/managers/TradeManager.go index c42fea1..7f58ba2 100644 --- a/managers/TradeManager.go +++ b/managers/TradeManager.go @@ -321,10 +321,10 @@ func AcceptTradeProposal(proposalID string) { if options.NFLTeamID == proposal.NFLTeamID { if options.NFLPlayerID > 0 { playerRecord := GetNFLPlayerRecord(strconv.Itoa(int(options.NFLPlayerID))) - ovrGrade := util.GetNFLOverallGrade(playerRecord.Overall) + ovrGrade := util.GetNFLOverallGrade(int(playerRecord.Overall)) ovr := playerRecord.Overall if playerRecord.Experience > 1 { - newsLogMessage += playerRecord.Position + " " + strconv.Itoa(ovr) + " " + playerRecord.FirstName + " " + playerRecord.LastName + " to " + proposal.RecepientTeam + "\n" + newsLogMessage += playerRecord.Position + " " + strconv.Itoa(int(ovr)) + " " + playerRecord.FirstName + " " + playerRecord.LastName + " to " + proposal.RecepientTeam + "\n" } else { newsLogMessage += playerRecord.Position + " " + ovrGrade + " " + playerRecord.FirstName + " " + playerRecord.LastName + " to " + proposal.RecepientTeam + "\n" } diff --git a/managers/TrainingCampManager.go b/managers/TrainingCampManager.go index ae76417..2c8e56c 100644 --- a/managers/TrainingCampManager.go +++ b/managers/TrainingCampManager.go @@ -123,7 +123,7 @@ func runDrills(player structs.NFLPlayer, drillPosition string, drillArchetype st applyDrillResult(changedAttrs, positionDrillAttribute, positionDrillResult) applyDrillResult(changedAttrs, teamDrillAttribute, teamDrillResult) - csvWriter.Write([]string{strconv.Itoa(player.PlayerID), player.TeamAbbr, drillPosition, drillArchetype, player.FirstName, player.LastName, strconv.Itoa(player.Age), positionDrill, positionDrillAttribute, + csvWriter.Write([]string{strconv.Itoa(player.PlayerID), player.TeamAbbr, drillPosition, drillArchetype, player.FirstName, player.LastName, strconv.Itoa(int(player.Age)), positionDrill, positionDrillAttribute, strconv.Itoa(positionDrillResult), teamDrill, teamDrillAttribute, strconv.Itoa(teamDrillResult), eventText, injuryText, strconv.Itoa(injuryWeeks)}, ) @@ -376,144 +376,145 @@ func getDrillResult(player structs.NFLPlayer, eventModifier int) int { } func applyDrillResult(progression *structs.CollegePlayerProgressions, attribute string, modifier int) { + m := int8(modifier) if attribute == "football_iq" { - if progression.FootballIQ + modifier > 99 { + if progression.FootballIQ + m > 99 { progression.FootballIQ = 99 } else { - progression.FootballIQ += modifier + progression.FootballIQ += m } } if attribute == "speed" { - if progression.Speed + modifier > 99 { + if progression.Speed + m > 99 { progression.Speed = 99 } else { - progression.Speed += modifier + progression.Speed += m } } if attribute == "carrying" { - if progression.Carrying + modifier > 99 { + if progression.Carrying + m > 99 { progression.Carrying = 99 } else { - progression.Carrying += modifier + progression.Carrying += m } } if attribute == "agility" { - if progression.Agility + modifier > 99 { + if progression.Agility + m > 99 { progression.Agility = 99 } else { - progression.Agility += modifier + progression.Agility += m } } if attribute == "catching" { - if progression.Catching + modifier > 99 { + if progression.Catching + m > 99 { progression.Catching = 99 } else { - progression.Catching += modifier + progression.Catching += m } } if attribute == "route_running" { - if progression.RouteRunning + modifier > 99 { + if progression.RouteRunning + m > 99 { progression.RouteRunning = 99 } else { - progression.RouteRunning += modifier + progression.RouteRunning += m } } if attribute == "zone_coverage" { - if progression.ZoneCoverage + modifier > 99 { + if progression.ZoneCoverage + m > 99 { progression.ZoneCoverage = 99 } else { - progression.ZoneCoverage += modifier + progression.ZoneCoverage += m } } if attribute == "man_coverage" { - if progression.ManCoverage + modifier > 99 { + if progression.ManCoverage + m > 99 { progression.ManCoverage = 99 } else { - progression.ManCoverage += modifier + progression.ManCoverage += m } } if attribute == "strength" { - if progression.Strength + modifier > 99 { + if progression.Strength + m > 99 { progression.Strength = 99 } else { - progression.Strength += modifier + progression.Strength += m } } if attribute == "tackle" { - if progression.Tackle + modifier > 99 { + if progression.Tackle + m > 99 { progression.Tackle = 99 } else { - progression.Tackle += modifier + progression.Tackle += m } } if attribute == "pass_block" { - if progression.PassBlock + modifier > 99 { + if progression.PassBlock + m > 99 { progression.PassBlock = 99 } else { - progression.PassBlock += modifier + progression.PassBlock += m } } if attribute == "run_block" { - if progression.RunBlock + modifier > 99 { + if progression.RunBlock + m > 99 { progression.RunBlock = 99 } else { - progression.RunBlock += modifier + progression.RunBlock += m } } if attribute == "pass_rush" { - if progression.PassRush + modifier > 99 { + if progression.PassRush + m > 99 { progression.PassRush = 99 } else { - progression.PassRush += modifier + progression.PassRush += m } } if attribute == "run_defense" { - if progression.RunDefense + modifier > 99 { + if progression.RunDefense + m > 99 { progression.RunDefense = 99 } else { - progression.RunDefense += modifier + progression.RunDefense += m } } if attribute == "throw_power" { - if progression.ThrowPower + modifier > 99 { + if progression.ThrowPower + m > 99 { progression.ThrowPower = 99 } else { - progression.ThrowPower += modifier + progression.ThrowPower += m } } if attribute == "throw_accuracy" { - if progression.ThrowAccuracy + modifier > 99 { + if progression.ThrowAccuracy + m > 99 { progression.ThrowAccuracy = 99 } else { - progression.ThrowAccuracy += modifier + progression.ThrowAccuracy += m } } if attribute == "kick_accuracy" { - if progression.KickAccuracy + modifier > 99 { + if progression.KickAccuracy + m > 99 { progression.KickAccuracy = 99 } else { - progression.KickAccuracy += modifier + progression.KickAccuracy += m } } if attribute == "kick_power" { - if progression.KickPower + modifier > 99 { + if progression.KickPower + m > 99 { progression.KickPower = 99 } else { - progression.KickPower += modifier + progression.KickPower += m } } if attribute == "punt_accuracy" { - if progression.PuntAccuracy + modifier > 99 { + if progression.PuntAccuracy + m > 99 { progression.PuntAccuracy = 99 } else { - progression.PuntAccuracy += modifier + progression.PuntAccuracy += m } } if attribute == "punt_power" { - if progression.PuntPower + modifier > 99 { + if progression.PuntPower + m > 99 { progression.PuntPower = 99 } else { - progression.PuntPower += modifier + progression.PuntPower += m } } } diff --git a/managers/TransferPortalManager.go b/managers/TransferPortalManager.go index 55e0b89..2bc2d88 100644 --- a/managers/TransferPortalManager.go +++ b/managers/TransferPortalManager.go @@ -96,7 +96,7 @@ func ProcessTransferIntention() { seasonStats := seasonSnapMap[p.ID] totalSnaps := 0 for _, s := range seasonStats { - totalSnaps += s.Snaps + totalSnaps += int(s.Snaps) } snapsPerGame := totalSnaps / 12 @@ -325,7 +325,7 @@ func ProcessTransferIntention() { repository.SaveCFBPlayer(p, db) if p.Stars > 2 { - message := "Breaking News! " + strconv.Itoa(p.Stars) + " star " + p.Position + " " + p.FirstName + " " + p.LastName + " has announced their intention to transfer from " + p.TeamAbbr + "!" + message := "Breaking News! " + strconv.Itoa(int(p.Stars)) + " star " + p.Position + " " + p.FirstName + " " + p.LastName + " has announced their intention to transfer from " + p.TeamAbbr + "!" CreateNewsLog("CFB", message, "Transfer Portal", int(p.TeamID), ts) } if teamProfile != nil && teamProfile.IsUserTeam && teamProfile.Recruiter != "" && teamProfile.Recruiter != "AI" { @@ -339,7 +339,7 @@ func ProcessTransferIntention() { PlayerID: uint(p.PlayerID), PlayerName: p.FirstName + " " + p.LastName, Position: p.Position, - Stars: p.Stars, + Stars: int(p.Stars), TransferLikeliness: p.TransferLikeliness, RecipientUIDs: uids, SourceEventKey: eventKey, @@ -350,7 +350,7 @@ func ProcessTransferIntention() { // // db.Save(&p) // csvModel := structs.MapPlayerToCSVModel(p) // playerRow := []string{ - // p.TeamAbbr, csvModel.FirstName, csvModel.LastName, strconv.Itoa(p.Stars), + // p.TeamAbbr, csvModel.FirstName, csvModel.LastName, strconv.Itoa(int(p.Stars)), // csvModel.Archetype, csvModel.Position, // csvModel.Year, strconv.Itoa(p.Age), csvModel.RedshirtStatus, // csvModel.OverallGrade, p.RecruitingBias, p.TransferLikeliness, strconv.Itoa(transferInt), strconv.Itoa(diceRoll), @@ -636,7 +636,7 @@ func EnterTheTransferPortal() { p.WillTransfer() // Create News Log - message := "Breaking News! " + p.PreviousTeam + " " + strconv.Itoa(p.Stars) + " Star " + p.Position + " " + p.FirstName + " " + p.LastName + " has officially entered the transfer portal!" + message := "Breaking News! " + p.PreviousTeam + " " + strconv.Itoa(int(p.Stars)) + " Star " + p.Position + " " + p.FirstName + " " + p.LastName + " has officially entered the transfer portal!" CreateNewsLog("CFB", message, "Transfer Portal", int(p.PreviousTeamID), ts) repository.SaveCFBPlayer(p, db) @@ -645,7 +645,7 @@ func EnterTheTransferPortal() { } // Create News Log - message := "Breaking News! " + p.TeamAbbr + " " + strconv.Itoa(p.Stars) + " Star " + p.Position + " " + p.FirstName + " " + p.LastName + " has withdrawn their name from the transfer portal!" + message := "Breaking News! " + p.TeamAbbr + " " + strconv.Itoa(int(p.Stars)) + " Star " + p.Position + " " + p.FirstName + " " + p.LastName + " has withdrawn their name from the transfer portal!" CreateNewsLog("CFB", message, "Transfer Portal", int(p.PreviousTeamID), ts) promise.MakePromise() @@ -1005,8 +1005,8 @@ func AICoachAllocateAndPromisePhase() { switch promiseLevel { case 1: promiseBenchmark += 5 - if promiseBenchmark > tp.Stamina { - promiseBenchmark = tp.Stamina - 1 + if promiseBenchmark > int(tp.Stamina) { + promiseBenchmark = int(tp.Stamina) - 1 } case -1: promiseBenchmark -= 1 @@ -1194,7 +1194,7 @@ func SyncTransferPortal() { } portalPlayer.SignWithNewTeam(teamProfile.TeamID, teamProfile.TeamAbbreviation) signingLabels = append(signingLabels, fmt.Sprintf("%d★ %s %s %s (%s → %s)", portalPlayer.Stars, portalPlayer.Position, portalPlayer.FirstName, portalPlayer.LastName, portalPlayer.PreviousTeam, portalPlayer.TeamAbbr)) - message := portalPlayer.FirstName + " " + portalPlayer.LastName + ", " + strconv.Itoa(portalPlayer.Stars) + " star " + portalPlayer.Position + " from " + portalPlayer.PreviousTeam + " has signed with " + portalPlayer.TeamAbbr + " with " + strconv.Itoa(int(odds)) + " percent odds." + message := portalPlayer.FirstName + " " + portalPlayer.LastName + ", " + strconv.Itoa(int(portalPlayer.Stars)) + " star " + portalPlayer.Position + " from " + portalPlayer.PreviousTeam + " has signed with " + portalPlayer.TeamAbbr + " with " + strconv.Itoa(int(odds)) + " percent odds." CreateNewsLog("CFB", message, "Transfer Portal", int(winningTeamID), ts) fmt.Println("Created new log!") // Add player to existing roster map @@ -1301,7 +1301,7 @@ func GetTransferPortalProfilesForPage(teamID string) []structs.TransferPortalPro } cp := collegePlayerMap[p.CollegePlayerID] cpResponse := structs.TransferPlayerResponse{} - ovr := util.GetOverallGrade(cp.Overall, cp.Year) + ovr := util.GetOverallGrade(int(cp.Overall), cp.Year) teamPromises := promisesTeamMap[p.ProfileID] promiseMapByPlayerID := MakePromiseMapByPlayerIDByTeam(teamPromises) playerPromise := promiseMapByPlayerID[p.CollegePlayerID] @@ -1447,7 +1447,7 @@ func GetTransferPortalPlayersForPage() []structs.TransferPlayerResponse { for _, p := range players { res := structs.TransferPlayerResponse{} - ovr := util.GetOverallGrade(p.Overall, p.Year) + ovr := util.GetOverallGrade(int(p.Overall), p.Year) res.Map(p, ovr, portalProfileMap[p.ID]) playerList = append(playerList, res) diff --git a/models/FreeAgencyResponse.go b/models/FreeAgencyResponse.go index 865635c..53a9f76 100644 --- a/models/FreeAgencyResponse.go +++ b/models/FreeAgencyResponse.go @@ -19,32 +19,32 @@ type FreeAgentResponse struct { PositionTwo string Archetype string ArchetypeTwo string - Height int - Weight int - Age int - Overall int - FootballIQ int - Speed int - Carrying int - Agility int - Catching int - RouteRunning int - ZoneCoverage int - ManCoverage int - Strength int - Tackle int - PassBlock int - RunBlock int - PassRush int - RunDefense int - ThrowPower int - ThrowAccuracy int - KickAccuracy int - KickPower int - PuntAccuracy int - PuntPower int - InjuryRating int - Stamina int + Height int8 + Weight int8 + Age int8 + Overall int8 + FootballIQ int8 + Speed int8 + Carrying int8 + Agility int8 + Catching int8 + RouteRunning int8 + ZoneCoverage int8 + ManCoverage int8 + Strength int8 + Tackle int8 + PassBlock int8 + RunBlock int8 + PassRush int8 + RunDefense int8 + ThrowPower int8 + ThrowAccuracy int8 + KickAccuracy int8 + KickPower int8 + PuntAccuracy int8 + PuntPower int8 + InjuryRating int8 + Stamina int8 PotentialGrade string FreeAgency string Personality string diff --git a/models/NFLDraftee.go b/models/NFLDraftee.go index 9babfea..eefdc6b 100644 --- a/models/NFLDraftee.go +++ b/models/NFLDraftee.go @@ -103,29 +103,29 @@ func (n *NFLDraftee) Map(cp structs.CollegePlayer) { func (n *NFLDraftee) GetLetterGrades() { attributeMeans := config.NFLAttributeMeans() rangeNum := 7 - OverallGrade := util.GetNFLOverallGrade(util.GenerateIntFromRange(n.Overall-rangeNum, n.Overall+rangeNum)) - StaminaGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.Stamina-rangeNum, n.Stamina+rangeNum), attributeMeans["Stamina"][n.Position]["mean"], attributeMeans["Stamina"][n.Position]["stddev"], 5) - InjuryGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.Injury-rangeNum, n.Injury+rangeNum), attributeMeans["Injury"][n.Position]["mean"], attributeMeans["Injury"][n.Position]["stddev"], 5) - SpeedGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.Speed-rangeNum, n.Speed+rangeNum), attributeMeans["Speed"][n.Position]["mean"], attributeMeans["Speed"][n.Position]["stddev"], 5) - FootballIQGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.FootballIQ-rangeNum, n.FootballIQ+rangeNum), attributeMeans["FootballIQ"][n.Position]["mean"], attributeMeans["FootballIQ"][n.Position]["stddev"], 5) - AgilityGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.Agility-rangeNum, n.Agility+rangeNum), attributeMeans["Agility"][n.Position]["mean"], attributeMeans["Agility"][n.Position]["stddev"], 5) - CarryingGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.Carrying-rangeNum, n.Carrying+rangeNum), attributeMeans["Carrying"][n.Position]["mean"], attributeMeans["Carrying"][n.Position]["stddev"], 5) - CatchingGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.Catching-rangeNum, n.Catching+rangeNum), attributeMeans["Catching"][n.Position]["mean"], attributeMeans["Catching"][n.Position]["stddev"], 5) - RouteRunningGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.RouteRunning-rangeNum, n.RouteRunning+rangeNum), attributeMeans["RouteRunning"][n.Position]["mean"], attributeMeans["RouteRunning"][n.Position]["stddev"], 5) - ZoneCoverageGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.ZoneCoverage-rangeNum, n.ZoneCoverage+rangeNum), attributeMeans["ZoneCoverage"][n.Position]["mean"], attributeMeans["ZoneCoverage"][n.Position]["stddev"], 5) - ManCoverageGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.ManCoverage-rangeNum, n.ManCoverage+rangeNum), attributeMeans["ManCoverage"][n.Position]["mean"], attributeMeans["ManCoverage"][n.Position]["stddev"], 5) - StrengthGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.Strength-rangeNum, n.Strength+rangeNum), attributeMeans["Strength"][n.Position]["mean"], attributeMeans["Strength"][n.Position]["stddev"], 5) - TackleGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.Tackle-rangeNum, n.Tackle+rangeNum), attributeMeans["Tackle"][n.Position]["mean"], attributeMeans["Tackle"][n.Position]["stddev"], 5) - PassBlockGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.PassBlock-rangeNum, n.PassBlock+rangeNum), attributeMeans["PassBlock"][n.Position]["mean"], attributeMeans["PassBlock"][n.Position]["stddev"], 5) - RunBlockGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.RunBlock-rangeNum, n.RunBlock+rangeNum), attributeMeans["RunBlock"][n.Position]["mean"], attributeMeans["RunBlock"][n.Position]["stddev"], 5) - PassRushGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.PassRush-rangeNum, n.PassRush+rangeNum), attributeMeans["PassRush"][n.Position]["mean"], attributeMeans["PassRush"][n.Position]["stddev"], 5) - RunDefenseGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.RunDefense-rangeNum, n.RunDefense+rangeNum), attributeMeans["RunDefense"][n.Position]["mean"], attributeMeans["RunDefense"][n.Position]["stddev"], 5) - ThrowPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.ThrowPower-rangeNum, n.ThrowPower+rangeNum), attributeMeans["ThrowPower"][n.Position]["mean"], attributeMeans["ThrowPower"][n.Position]["stddev"], 5) - ThrowAccuracyGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.ThrowAccuracy-rangeNum, n.ThrowAccuracy+rangeNum), attributeMeans["ThrowAccuracy"][n.Position]["mean"], attributeMeans["ThrowAccuracy"][n.Position]["stddev"], 5) - KickPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.KickPower-rangeNum, n.KickPower+rangeNum), attributeMeans["KickPower"][n.Position]["mean"], attributeMeans["KickPower"][n.Position]["stddev"], 5) - KickAccuracyGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.KickAccuracy-rangeNum, n.KickAccuracy+rangeNum), attributeMeans["KickAccuracy"][n.Position]["mean"], attributeMeans["KickAccuracy"][n.Position]["stddev"], 5) - PuntPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(n.PuntPower-rangeNum, n.PuntPower+rangeNum), attributeMeans["PuntPower"][n.Position]["mean"], attributeMeans["PuntPower"][n.Position]["stddev"], 5) - PuntAccuracyGrade := util.GetLetterGrade(n.PuntAccuracy, attributeMeans["PuntAccuracy"][n.Position]["mean"], attributeMeans["PuntAccuracy"][n.Position]["stddev"], 5) + OverallGrade := util.GetNFLOverallGrade(util.GenerateIntFromRange(int(n.Overall)-rangeNum, int(n.Overall)+rangeNum)) + StaminaGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.Stamina)-rangeNum, int(n.Stamina)+rangeNum), attributeMeans["Stamina"][n.Position]["mean"], attributeMeans["Stamina"][n.Position]["stddev"], 5) + InjuryGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.Injury)-rangeNum, int(n.Injury)+rangeNum), attributeMeans["Injury"][n.Position]["mean"], attributeMeans["Injury"][n.Position]["stddev"], 5) + SpeedGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.Speed)-rangeNum, int(n.Speed)+rangeNum), attributeMeans["Speed"][n.Position]["mean"], attributeMeans["Speed"][n.Position]["stddev"], 5) + FootballIQGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.FootballIQ)-rangeNum, int(n.FootballIQ)+rangeNum), attributeMeans["FootballIQ"][n.Position]["mean"], attributeMeans["FootballIQ"][n.Position]["stddev"], 5) + AgilityGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.Agility)-rangeNum, int(n.Agility)+rangeNum), attributeMeans["Agility"][n.Position]["mean"], attributeMeans["Agility"][n.Position]["stddev"], 5) + CarryingGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.Carrying)-rangeNum, int(n.Carrying)+rangeNum), attributeMeans["Carrying"][n.Position]["mean"], attributeMeans["Carrying"][n.Position]["stddev"], 5) + CatchingGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.Catching)-rangeNum, int(n.Catching)+rangeNum), attributeMeans["Catching"][n.Position]["mean"], attributeMeans["Catching"][n.Position]["stddev"], 5) + RouteRunningGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.RouteRunning)-rangeNum, int(n.RouteRunning)+rangeNum), attributeMeans["RouteRunning"][n.Position]["mean"], attributeMeans["RouteRunning"][n.Position]["stddev"], 5) + ZoneCoverageGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.ZoneCoverage)-rangeNum, int(n.ZoneCoverage)+rangeNum), attributeMeans["ZoneCoverage"][n.Position]["mean"], attributeMeans["ZoneCoverage"][n.Position]["stddev"], 5) + ManCoverageGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.ManCoverage)-rangeNum, int(n.ManCoverage)+rangeNum), attributeMeans["ManCoverage"][n.Position]["mean"], attributeMeans["ManCoverage"][n.Position]["stddev"], 5) + StrengthGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.Strength)-rangeNum, int(n.Strength)+rangeNum), attributeMeans["Strength"][n.Position]["mean"], attributeMeans["Strength"][n.Position]["stddev"], 5) + TackleGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.Tackle)-rangeNum, int(n.Tackle)+rangeNum), attributeMeans["Tackle"][n.Position]["mean"], attributeMeans["Tackle"][n.Position]["stddev"], 5) + PassBlockGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.PassBlock)-rangeNum, int(n.PassBlock)+rangeNum), attributeMeans["PassBlock"][n.Position]["mean"], attributeMeans["PassBlock"][n.Position]["stddev"], 5) + RunBlockGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.RunBlock)-rangeNum, int(n.RunBlock)+rangeNum), attributeMeans["RunBlock"][n.Position]["mean"], attributeMeans["RunBlock"][n.Position]["stddev"], 5) + PassRushGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.PassRush)-rangeNum, int(n.PassRush)+rangeNum), attributeMeans["PassRush"][n.Position]["mean"], attributeMeans["PassRush"][n.Position]["stddev"], 5) + RunDefenseGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.RunDefense)-rangeNum, int(n.RunDefense)+rangeNum), attributeMeans["RunDefense"][n.Position]["mean"], attributeMeans["RunDefense"][n.Position]["stddev"], 5) + ThrowPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.ThrowPower)-rangeNum, int(n.ThrowPower)+rangeNum), attributeMeans["ThrowPower"][n.Position]["mean"], attributeMeans["ThrowPower"][n.Position]["stddev"], 5) + ThrowAccuracyGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.ThrowAccuracy)-rangeNum, int(n.ThrowAccuracy)+rangeNum), attributeMeans["ThrowAccuracy"][n.Position]["mean"], attributeMeans["ThrowAccuracy"][n.Position]["stddev"], 5) + KickPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.KickPower)-rangeNum, int(n.KickPower)+rangeNum), attributeMeans["KickPower"][n.Position]["mean"], attributeMeans["KickPower"][n.Position]["stddev"], 5) + KickAccuracyGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.KickAccuracy)-rangeNum, int(n.KickAccuracy)+rangeNum), attributeMeans["KickAccuracy"][n.Position]["mean"], attributeMeans["KickAccuracy"][n.Position]["stddev"], 5) + PuntPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(n.PuntPower)-rangeNum, int(n.PuntPower)+rangeNum), attributeMeans["PuntPower"][n.Position]["mean"], attributeMeans["PuntPower"][n.Position]["stddev"], 5) + PuntAccuracyGrade := util.GetLetterGrade(int(n.PuntAccuracy), attributeMeans["PuntAccuracy"][n.Position]["mean"], attributeMeans["PuntAccuracy"][n.Position]["stddev"], 5) n.OverallGrade = OverallGrade n.StaminaGrade = StaminaGrade n.InjuryGrade = InjuryGrade @@ -199,29 +199,29 @@ func (n *NFLDraftee) MapUnsignedPlayer(up structs.UnsignedPlayer) { n.WorkEthic = up.WorkEthic n.AcademicBias = up.AcademicBias rangeNum := 7 - OverallGrade := util.GetNFLOverallGrade(util.GenerateIntFromRange(up.Overall-rangeNum, up.Overall+rangeNum)) - StaminaGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.Stamina-rangeNum, up.Stamina+rangeNum), attributeMeans["Stamina"][up.Position]["mean"], attributeMeans["Stamina"][up.Position]["stddev"], up.Year) - InjuryGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.Injury-rangeNum, up.Injury+rangeNum), attributeMeans["Injury"][up.Position]["mean"], attributeMeans["Injury"][up.Position]["stddev"], up.Year) - SpeedGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.Speed-rangeNum, up.Speed+rangeNum), attributeMeans["Speed"][up.Position]["mean"], attributeMeans["Speed"][up.Position]["stddev"], up.Year) - FootballIQGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.FootballIQ-rangeNum, up.FootballIQ+rangeNum), attributeMeans["FootballIQ"][up.Position]["mean"], attributeMeans["FootballIQ"][up.Position]["stddev"], up.Year) - AgilityGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.Agility-rangeNum, up.Agility+rangeNum), attributeMeans["Agility"][up.Position]["mean"], attributeMeans["Agility"][up.Position]["stddev"], up.Year) - CarryingGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.Carrying-rangeNum, up.Carrying+rangeNum), attributeMeans["Carrying"][up.Position]["mean"], attributeMeans["Carrying"][up.Position]["stddev"], up.Year) - CatchingGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.Catching-rangeNum, up.Catching+rangeNum), attributeMeans["Catching"][up.Position]["mean"], attributeMeans["Catching"][up.Position]["stddev"], up.Year) - RouteRunningGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.RouteRunning-rangeNum, up.RouteRunning+rangeNum), attributeMeans["RouteRunning"][up.Position]["mean"], attributeMeans["RouteRunning"][up.Position]["stddev"], up.Year) - ZoneCoverageGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.ZoneCoverage-rangeNum, up.ZoneCoverage+rangeNum), attributeMeans["ZoneCoverage"][up.Position]["mean"], attributeMeans["ZoneCoverage"][up.Position]["stddev"], up.Year) - ManCoverageGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.ManCoverage-rangeNum, up.ManCoverage+rangeNum), attributeMeans["ManCoverage"][up.Position]["mean"], attributeMeans["ManCoverage"][up.Position]["stddev"], up.Year) - StrengthGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.Strength-rangeNum, up.Strength+rangeNum), attributeMeans["Strength"][up.Position]["mean"], attributeMeans["Strength"][up.Position]["stddev"], up.Year) - TackleGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.Tackle-rangeNum, up.Tackle+rangeNum), attributeMeans["Tackle"][up.Position]["mean"], attributeMeans["Tackle"][up.Position]["stddev"], up.Year) - PassBlockGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.PassBlock-rangeNum, up.PassBlock+rangeNum), attributeMeans["PassBlock"][up.Position]["mean"], attributeMeans["PassBlock"][up.Position]["stddev"], up.Year) - RunBlockGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.RunBlock-rangeNum, up.RunBlock+rangeNum), attributeMeans["RunBlock"][up.Position]["mean"], attributeMeans["RunBlock"][up.Position]["stddev"], up.Year) - PassRushGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.PassRush-rangeNum, up.PassRush+rangeNum), attributeMeans["PassRush"][up.Position]["mean"], attributeMeans["PassRush"][up.Position]["stddev"], up.Year) - RunDefenseGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.RunDefense-rangeNum, up.RunDefense+rangeNum), attributeMeans["RunDefense"][up.Position]["mean"], attributeMeans["RunDefense"][up.Position]["stddev"], up.Year) - ThrowPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.ThrowPower-rangeNum, up.ThrowPower+rangeNum), attributeMeans["ThrowPower"][up.Position]["mean"], attributeMeans["ThrowPower"][up.Position]["stddev"], up.Year) - ThrowAccuracyGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.ThrowAccuracy-rangeNum, up.ThrowAccuracy+rangeNum), attributeMeans["ThrowAccuracy"][up.Position]["mean"], attributeMeans["ThrowAccuracy"][up.Position]["stddev"], up.Year) - KickPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.KickPower-rangeNum, up.KickPower+rangeNum), attributeMeans["KickPower"][up.Position]["mean"], attributeMeans["KickPower"][up.Position]["stddev"], up.Year) - KickAccuracyGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.KickAccuracy-rangeNum, up.KickAccuracy+rangeNum), attributeMeans["KickAccuracy"][up.Position]["mean"], attributeMeans["KickAccuracy"][up.Position]["stddev"], up.Year) - PuntPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(up.PuntAccuracy-rangeNum, up.PuntPower+rangeNum), attributeMeans["PuntPower"][up.Position]["mean"], attributeMeans["PuntPower"][up.Position]["stddev"], up.Year) - PuntAccuracyGrade := util.GetLetterGrade(up.PuntAccuracy, attributeMeans["PuntAccuracy"][up.Position]["mean"], attributeMeans["PuntAccuracy"][up.Position]["stddev"], up.Year) + OverallGrade := util.GetNFLOverallGrade(util.GenerateIntFromRange(int(up.Overall)-rangeNum, int(up.Overall)+rangeNum)) + StaminaGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.Stamina)-rangeNum, int(up.Stamina)+rangeNum), attributeMeans["Stamina"][up.Position]["mean"], attributeMeans["Stamina"][up.Position]["stddev"], up.Year) + InjuryGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.Injury)-rangeNum, int(up.Injury)+rangeNum), attributeMeans["Injury"][up.Position]["mean"], attributeMeans["Injury"][up.Position]["stddev"], up.Year) + SpeedGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.Speed)-rangeNum, int(up.Speed)+rangeNum), attributeMeans["Speed"][up.Position]["mean"], attributeMeans["Speed"][up.Position]["stddev"], up.Year) + FootballIQGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.FootballIQ)-rangeNum, int(up.FootballIQ)+rangeNum), attributeMeans["FootballIQ"][up.Position]["mean"], attributeMeans["FootballIQ"][up.Position]["stddev"], up.Year) + AgilityGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.Agility)-rangeNum, int(up.Agility)+rangeNum), attributeMeans["Agility"][up.Position]["mean"], attributeMeans["Agility"][up.Position]["stddev"], up.Year) + CarryingGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.Carrying)-rangeNum, int(up.Carrying)+rangeNum), attributeMeans["Carrying"][up.Position]["mean"], attributeMeans["Carrying"][up.Position]["stddev"], up.Year) + CatchingGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.Catching)-rangeNum, int(up.Catching)+rangeNum), attributeMeans["Catching"][up.Position]["mean"], attributeMeans["Catching"][up.Position]["stddev"], up.Year) + RouteRunningGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.RouteRunning)-rangeNum, int(up.RouteRunning)+rangeNum), attributeMeans["RouteRunning"][up.Position]["mean"], attributeMeans["RouteRunning"][up.Position]["stddev"], up.Year) + ZoneCoverageGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.ZoneCoverage)-rangeNum, int(up.ZoneCoverage)+rangeNum), attributeMeans["ZoneCoverage"][up.Position]["mean"], attributeMeans["ZoneCoverage"][up.Position]["stddev"], up.Year) + ManCoverageGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.ManCoverage)-rangeNum, int(up.ManCoverage)+rangeNum), attributeMeans["ManCoverage"][up.Position]["mean"], attributeMeans["ManCoverage"][up.Position]["stddev"], up.Year) + StrengthGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.Strength)-rangeNum, int(up.Strength)+rangeNum), attributeMeans["Strength"][up.Position]["mean"], attributeMeans["Strength"][up.Position]["stddev"], up.Year) + TackleGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.Tackle)-rangeNum, int(up.Tackle)+rangeNum), attributeMeans["Tackle"][up.Position]["mean"], attributeMeans["Tackle"][up.Position]["stddev"], up.Year) + PassBlockGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.PassBlock)-rangeNum, int(up.PassBlock)+rangeNum), attributeMeans["PassBlock"][up.Position]["mean"], attributeMeans["PassBlock"][up.Position]["stddev"], up.Year) + RunBlockGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.RunBlock)-rangeNum, int(up.RunBlock)+rangeNum), attributeMeans["RunBlock"][up.Position]["mean"], attributeMeans["RunBlock"][up.Position]["stddev"], up.Year) + PassRushGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.PassRush)-rangeNum, int(up.PassRush)+rangeNum), attributeMeans["PassRush"][up.Position]["mean"], attributeMeans["PassRush"][up.Position]["stddev"], up.Year) + RunDefenseGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.RunDefense)-rangeNum, int(up.RunDefense)+rangeNum), attributeMeans["RunDefense"][up.Position]["mean"], attributeMeans["RunDefense"][up.Position]["stddev"], up.Year) + ThrowPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.ThrowPower)-rangeNum, int(up.ThrowPower)+rangeNum), attributeMeans["ThrowPower"][up.Position]["mean"], attributeMeans["ThrowPower"][up.Position]["stddev"], up.Year) + ThrowAccuracyGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.ThrowAccuracy)-rangeNum, int(up.ThrowAccuracy)+rangeNum), attributeMeans["ThrowAccuracy"][up.Position]["mean"], attributeMeans["ThrowAccuracy"][up.Position]["stddev"], up.Year) + KickPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.KickPower)-rangeNum, int(up.KickPower)+rangeNum), attributeMeans["KickPower"][up.Position]["mean"], attributeMeans["KickPower"][up.Position]["stddev"], up.Year) + KickAccuracyGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.KickAccuracy)-rangeNum, int(up.KickAccuracy)+rangeNum), attributeMeans["KickAccuracy"][up.Position]["mean"], attributeMeans["KickAccuracy"][up.Position]["stddev"], up.Year) + PuntPowerGrade := util.GetLetterGrade(util.GenerateIntFromRange(int(up.PuntAccuracy)-rangeNum, int(up.PuntPower)+rangeNum), attributeMeans["PuntPower"][up.Position]["mean"], attributeMeans["PuntPower"][up.Position]["stddev"], up.Year) + PuntAccuracyGrade := util.GetLetterGrade(int(up.PuntAccuracy), attributeMeans["PuntAccuracy"][up.Position]["mean"], attributeMeans["PuntAccuracy"][up.Position]["stddev"], up.Year) n.OverallGrade = OverallGrade n.StaminaGrade = StaminaGrade n.InjuryGrade = InjuryGrade @@ -264,24 +264,24 @@ func (n *NFLDraftee) AssignBoomBustStatus(status string) { } func (np *NFLDraftee) Progress(attr structs.CollegePlayerProgressions) { - np.Agility = attr.Agility - np.Speed = attr.Speed - np.FootballIQ = attr.FootballIQ - np.Carrying = attr.Carrying - np.Catching = attr.Catching - np.RouteRunning = attr.RouteRunning - np.PassBlock = attr.PassBlock - np.RunBlock = attr.RunBlock - np.PassRush = attr.PassRush - np.RunDefense = attr.RunDefense - np.Tackle = attr.Tackle - np.Strength = attr.Strength - np.ManCoverage = attr.ManCoverage - np.ZoneCoverage = attr.ZoneCoverage - np.KickAccuracy = attr.KickAccuracy - np.KickPower = attr.KickPower - np.PuntAccuracy = attr.PuntAccuracy - np.PuntPower = attr.PuntPower - np.ThrowAccuracy = attr.ThrowAccuracy - np.ThrowPower = attr.ThrowPower + np.Agility = int8(attr.Agility) + np.Speed = int8(attr.Speed) + np.FootballIQ = int8(attr.FootballIQ) + np.Carrying = int8(attr.Carrying) + np.Catching = int8(attr.Catching) + np.RouteRunning = int8(attr.RouteRunning) + np.PassBlock = int8(attr.PassBlock) + np.RunBlock = int8(attr.RunBlock) + np.PassRush = int8(attr.PassRush) + np.RunDefense = int8(attr.RunDefense) + np.Tackle = int8(attr.Tackle) + np.Strength = int8(attr.Strength) + np.ManCoverage = int8(attr.ManCoverage) + np.ZoneCoverage = int8(attr.ZoneCoverage) + np.KickAccuracy = int8(attr.KickAccuracy) + np.KickPower = int8(attr.KickPower) + np.PuntAccuracy = int8(attr.PuntAccuracy) + np.PuntPower = int8(attr.PuntPower) + np.ThrowAccuracy = int8(attr.ThrowAccuracy) + np.ThrowPower = int8(attr.ThrowPower) } diff --git a/models/NFLDrafteeCSV.go b/models/NFLDrafteeCSV.go index 71edec1..d9bd115 100644 --- a/models/NFLDrafteeCSV.go +++ b/models/NFLDrafteeCSV.go @@ -48,29 +48,29 @@ type NFLDrafteeCSV struct { func MapNFLDrafteeToModel(player NFLDraftee) NFLDrafteeCSV { attributeMeans := config.AttributeMeans() - OverallGrade := util.GetNFLOverallGrade(player.Overall) - StaminaGrade := util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], 4) - InjuryGrade := util.GetLetterGrade(player.Injury, attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], 4) - SpeedGrade := util.GetLetterGrade(player.Speed, attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], 4) - FootballIQGrade := util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], 4) - AgilityGrade := util.GetLetterGrade(player.Agility, attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], 4) - CarryingGrade := util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], 4) - CatchingGrade := util.GetLetterGrade(player.Catching, attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], 4) - RouteRunningGrade := util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], 4) - ZoneCoverageGrade := util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], 4) - ManCoverageGrade := util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], 4) - StrengthGrade := util.GetLetterGrade(player.Strength, attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], 4) - TackleGrade := util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], 4) - PassBlockGrade := util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], 4) - RunBlockGrade := util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], 4) - PassRushGrade := util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], 4) - RunDefenseGrade := util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], 4) - ThrowPowerGrade := util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], 4) - ThrowAccuracyGrade := util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], 4) - KickPowerGrade := util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], 4) - KickAccuracyGrade := util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], 4) - PuntPowerGrade := util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], 4) - PuntAccuracyGrade := util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], 4) + OverallGrade := util.GetNFLOverallGrade(int(player.Overall)) + StaminaGrade := util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], 4) + InjuryGrade := util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], 4) + SpeedGrade := util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], 4) + FootballIQGrade := util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], 4) + AgilityGrade := util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], 4) + CarryingGrade := util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], 4) + CatchingGrade := util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], 4) + RouteRunningGrade := util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], 4) + ZoneCoverageGrade := util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], 4) + ManCoverageGrade := util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], 4) + StrengthGrade := util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], 4) + TackleGrade := util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], 4) + PassBlockGrade := util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], 4) + RunBlockGrade := util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], 4) + PassRushGrade := util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], 4) + RunDefenseGrade := util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], 4) + ThrowPowerGrade := util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], 4) + ThrowAccuracyGrade := util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], 4) + KickPowerGrade := util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], 4) + KickAccuracyGrade := util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], 4) + PuntPowerGrade := util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], 4) + PuntAccuracyGrade := util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], 4) return NFLDrafteeCSV{ PlayerID: player.PlayerID, @@ -78,14 +78,14 @@ func MapNFLDrafteeToModel(player NFLDraftee) NFLDrafteeCSV { LastName: player.LastName, Position: player.Position, Archetype: player.Archetype, - Age: player.Age, - Stars: player.Stars, + Age: int(player.Age), + Stars: int(player.Stars), College: player.College, HighSchool: player.HighSchool, City: player.City, State: player.State, - Height: player.Height, - Weight: player.Weight, + Height: int(player.Height), + Weight: int(player.Weight), OverallGrade: OverallGrade, StaminaGrade: StaminaGrade, InjuryGrade: InjuryGrade, diff --git a/models/TeamRecordResponse.go b/models/TeamRecordResponse.go index 3ea4872..34df937 100644 --- a/models/TeamRecordResponse.go +++ b/models/TeamRecordResponse.go @@ -42,8 +42,8 @@ func (t *TopPlayer) MapCollegePlayer(player structs.CollegePlayer) { t.PositionTwo = player.PositionTwo t.Archetype = player.Archetype t.ArchetypeTwo = player.ArchetypeTwo - t.Overall = player.Overall - t.OverallGrade = util.GetOverallGrade(player.Overall, player.Year) + t.Overall = int(player.Overall) + t.OverallGrade = util.GetOverallGrade(int(player.Overall), player.Year) } func (t *TopPlayer) MapNFLPlayer(player structs.NFLPlayer) { @@ -54,6 +54,6 @@ func (t *TopPlayer) MapNFLPlayer(player structs.NFLPlayer) { t.PositionTwo = player.PositionTwo t.Archetype = player.Archetype t.ArchetypeTwo = player.ArchetypeTwo - t.Overall = player.Overall - t.OverallGrade = util.GetNFLOverallGrade(player.Overall) + t.Overall = int(player.Overall) + t.OverallGrade = util.GetNFLOverallGrade(int(player.Overall)) } diff --git a/repository/StatsRepository.go b/repository/StatsRepository.go index 77d2377..9b5d7a2 100644 --- a/repository/StatsRepository.go +++ b/repository/StatsRepository.go @@ -1,26 +1,69 @@ package repository import ( + "log" + "github.com/CalebRose/SimFBA/dbprovider" "github.com/CalebRose/SimFBA/structs" ) -func FindCollegePlayerSeasonStatsRecords(SeasonID, gameType string) []structs.CollegePlayerSeasonStats { +type StatsQuery struct { + SeasonID string + GameType string + WeekID string + TeamID string + PlayerID string +} + +func FindCollegePlayerSeasonStatsRecords(clauses StatsQuery) []structs.CollegePlayerSeasonStats { db := dbprovider.GetInstance().GetDB() var playerStats []structs.CollegePlayerSeasonStats - db.Order("passing_yards desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) + query := db.Model(&playerStats) + if len(clauses.SeasonID) > 0 { + query = query.Where("season_id = ?", clauses.SeasonID) + } + if len(clauses.GameType) > 0 { + query = query.Where("game_type = ?", clauses.GameType) + } + if len(clauses.TeamID) > 0 { + query = query.Where("team_id = ?", clauses.TeamID) + } + if len(clauses.PlayerID) > 0 { + query = query.Where("player_id = ?", clauses.PlayerID) + } + + if err := query.Order("passing_yards desc").Find(&playerStats).Error; err != nil { + // handle the error, for example, log it + log.Println("Error finding college player season stats records:", err) + } return playerStats } -func FindProPlayerSeasonStatsRecords(SeasonID, gameType string) []structs.NFLPlayerSeasonStats { +func FindProPlayerSeasonStatsRecords(clauses StatsQuery) []structs.NFLPlayerSeasonStats { db := dbprovider.GetInstance().GetDB() var playerStats []structs.NFLPlayerSeasonStats - db.Order("passing_yards desc").Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&playerStats) + query := db.Model(&playerStats) + if len(clauses.SeasonID) > 0 { + query = query.Where("season_id = ?", clauses.SeasonID) + } + if len(clauses.GameType) > 0 { + query = query.Where("game_type = ?", clauses.GameType) + } + if len(clauses.TeamID) > 0 { + query = query.Where("team_id = ?", clauses.TeamID) + } + if len(clauses.PlayerID) > 0 { + query = query.Where("player_id = ?", clauses.PlayerID) + } + + if err := query.Order("passing_yards desc").Find(&playerStats).Error; err != nil { + log.Println("Error finding pro player season stats records:", err) + } return playerStats } @@ -88,12 +131,29 @@ func FindCollegeTeamSeasonStatsRecords(SeasonID, gameType string) []structs.Coll return teamStats } -func FindProTeamSeasonStatsRecords(SeasonID, gameType string) []structs.NFLTeamSeasonStats { +func FindProTeamSeasonStatsRecords(clauses StatsQuery) []structs.NFLTeamSeasonStats { db := dbprovider.GetInstance().GetDB() var teamStats []structs.NFLTeamSeasonStats - db.Where("season_id = ? AND game_type = ?", SeasonID, gameType).Find(&teamStats) + query := db.Model(&teamStats) + if len(clauses.SeasonID) > 0 { + query = query.Where("season_id = ?", clauses.SeasonID) + } + if len(clauses.GameType) > 0 { + query = query.Where("game_type = ?", clauses.GameType) + } + if len(clauses.TeamID) > 0 { + query = query.Where("team_id = ?", clauses.TeamID) + } + if len(clauses.PlayerID) > 0 { + query = query.Where("player_id = ?", clauses.PlayerID) + } + + if err := query.Order("passing_yards desc").Find(&teamStats).Error; err != nil { + // handle the error, for example, log it + log.Println("Error finding pro team season stats records:", err) + } return teamStats } diff --git a/structs/BasePlayer.go b/structs/BasePlayer.go index 9413dc0..c0bac3a 100644 --- a/structs/BasePlayer.go +++ b/structs/BasePlayer.go @@ -25,35 +25,35 @@ type BasePlayer struct { Archetype string PreviousTeamID uint PreviousTeam string - Height int - Weight int - Age int - Stars int - Overall int - Stamina int - Injury int - FootballIQ int - Speed int - Carrying int - Agility int - Catching int - RouteRunning int - ZoneCoverage int - ManCoverage int - Strength int - Tackle int - PassBlock int - RunBlock int - PassRush int - RunDefense int - ThrowPower int - ThrowAccuracy int - KickAccuracy int - KickPower int - PuntAccuracy int - PuntPower int - Progression int - Discipline int + Height int8 + Weight int8 + Age int8 + Stars int8 + Overall int8 + Stamina int8 + Injury int8 + FootballIQ int8 + Speed int8 + Carrying int8 + Agility int8 + Catching int8 + RouteRunning int8 + ZoneCoverage int8 + ManCoverage int8 + Strength int8 + Tackle int8 + PassBlock int8 + RunBlock int8 + PassRush int8 + RunDefense int8 + ThrowPower int8 + ThrowAccuracy int8 + KickAccuracy int8 + KickPower int8 + PuntAccuracy int8 + PuntPower int8 + Progression int8 + Discipline int8 PotentialGrade string FreeAgency string Personality string @@ -78,120 +78,122 @@ type BasePlayer struct { func (cp *BasePlayer) GetOverall() { var ovr float64 = 0 - if cp.Position == "QB" { + switch cp.Position { + case "QB": ovr = (0.1 * float64(cp.Agility)) + (0.25 * float64(cp.ThrowPower)) + (0.25 * float64(cp.ThrowAccuracy)) + (0.1 * float64(cp.Speed)) + (0.2 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Strength)) - cp.Overall = int(ovr) - } else if cp.Position == "RB" { + cp.Overall = int8(ovr) + case "RB": ovr = (0.2 * float64(cp.Agility)) + (0.05 * float64(cp.PassBlock)) + (0.1 * float64(cp.Carrying)) + (0.25 * float64(cp.Speed)) + (0.15 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Strength)) + (0.05 * float64(cp.Catching)) - cp.Overall = int(ovr) - } else if cp.Position == "FB" { + cp.Overall = int8(ovr) + case "FB": ovr = (0.1 * float64(cp.Agility)) + (0.1 * float64(cp.PassBlock)) + (0.1 * float64(cp.Carrying)) + (0.05 * float64(cp.Speed)) + (0.15 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Strength)) + (0.05 * float64(cp.Catching)) + (0.25 * float64(cp.RunBlock)) - cp.Overall = int(ovr) - } else if cp.Position == "WR" { + cp.Overall = int8(ovr) + case "WR": ovr = (0.15 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Speed)) + (0.1 * float64(cp.Agility)) + (0.05 * float64(cp.Carrying)) + (0.05 * float64(cp.Strength)) + (0.25 * float64(cp.Catching)) + (0.2 * float64(cp.RouteRunning)) - cp.Overall = int(ovr) - } else if cp.Position == "TE" { + cp.Overall = int8(ovr) + case "TE": ovr = (0.15 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Speed)) + (0.1 * float64(cp.Agility)) + (0.05 * float64(cp.Carrying)) + (0.05 * float64(cp.PassBlock)) + (0.15 * float64(cp.RunBlock)) + (0.1 * float64(cp.Strength)) + (0.20 * float64(cp.Catching)) + (0.1 * float64(cp.RouteRunning)) - cp.Overall = int(ovr) - } else if cp.Position == "OT" || cp.Position == "OG" { + cp.Overall = int8(ovr) + case "OT", "OG": ovr = (0.15 * float64(cp.FootballIQ)) + (0.05 * float64(cp.Agility)) + (0.3 * float64(cp.RunBlock)) + (0.2 * float64(cp.Strength)) + (0.3 * float64(cp.PassBlock)) - cp.Overall = int(ovr) - } else if cp.Position == "C" { + cp.Overall = int8(ovr) + case "C": ovr = (0.2 * float64(cp.FootballIQ)) + (0.05 * float64(cp.Agility)) + (0.3 * float64(cp.RunBlock)) + (0.15 * float64(cp.Strength)) + (0.3 * float64(cp.PassBlock)) - cp.Overall = int(ovr) - } else if cp.Position == "DT" { + cp.Overall = int8(ovr) + case "DT": ovr = (0.15 * float64(cp.FootballIQ)) + (0.05 * float64(cp.Agility)) + (0.25 * float64(cp.RunDefense)) + (0.2 * float64(cp.Strength)) + (0.15 * float64(cp.PassRush)) + (0.2 * float64(cp.Tackle)) - cp.Overall = int(ovr) - } else if cp.Position == "DE" { + cp.Overall = int8(ovr) + case "DE": ovr = (0.15 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Speed)) + (0.15 * float64(cp.RunDefense)) + (0.1 * float64(cp.Strength)) + (0.2 * float64(cp.PassRush)) + (0.2 * float64(cp.Tackle)) + (0.1 * float64(cp.Agility)) - cp.Overall = int(ovr) - } else if cp.Position == "ILB" { + cp.Overall = int8(ovr) + case "ILB": ovr = (0.2 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Speed)) + (0.15 * float64(cp.RunDefense)) + (0.1 * float64(cp.Strength)) + (0.1 * float64(cp.PassRush)) + (0.15 * float64(cp.Tackle)) + (0.1 * float64(cp.ZoneCoverage)) + (0.05 * float64(cp.ManCoverage)) + (0.05 * float64(cp.Agility)) - cp.Overall = int(ovr) - } else if cp.Position == "OLB" { + cp.Overall = int8(ovr) + case "OLB": ovr = (0.15 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Speed)) + (0.15 * float64(cp.RunDefense)) + (0.1 * float64(cp.Strength)) + (0.15 * float64(cp.PassRush)) + (0.15 * float64(cp.Tackle)) + (0.1 * float64(cp.ZoneCoverage)) + (0.05 * float64(cp.ManCoverage)) + (0.05 * float64(cp.Agility)) - cp.Overall = int(ovr) - } else if cp.Position == "CB" { + cp.Overall = int8(ovr) + case "CB": ovr = (0.15 * float64(cp.FootballIQ)) + (0.25 * float64(cp.Speed)) + (0.05 * float64(cp.Tackle)) + (0.05 * float64(cp.Strength)) + (0.15 * float64(cp.Agility)) + (0.15 * float64(cp.ZoneCoverage)) + (0.15 * float64(cp.ManCoverage)) + (0.05 * float64(cp.Catching)) - cp.Overall = int(ovr) - } else if cp.Position == "FS" { + cp.Overall = int8(ovr) + case "FS": ovr = (0.2 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Speed)) + (0.05 * float64(cp.RunDefense)) + (0.05 * float64(cp.Strength)) + (0.05 * float64(cp.Catching)) + (0.05 * float64(cp.Tackle)) + (0.15 * float64(cp.ZoneCoverage)) + (0.15 * float64(cp.ManCoverage)) + (0.1 * float64(cp.Agility)) - cp.Overall = int(ovr) - } else if cp.Position == "SS" { + cp.Overall = int8(ovr) + case "SS": ovr = (0.15 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Speed)) + (0.05 * float64(cp.RunDefense)) + (0.05 * float64(cp.Strength)) + (0.05 * float64(cp.Catching)) + (0.1 * float64(cp.Tackle)) + (0.15 * float64(cp.ZoneCoverage)) + (0.15 * float64(cp.ManCoverage)) + (0.1 * float64(cp.Agility)) - cp.Overall = int(ovr) - } else if cp.Position == "K" { + cp.Overall = int8(ovr) + case "K": ovr = (0.2 * float64(cp.FootballIQ)) + (0.45 * float64(cp.KickPower)) + (0.45 * float64(cp.KickAccuracy)) - cp.Overall = int(ovr) - } else if cp.Position == "P" { + cp.Overall = int8(ovr) + case "P": ovr = (0.2 * float64(cp.FootballIQ)) + (0.45 * float64(cp.PuntPower)) + (0.45 * float64(cp.PuntAccuracy)) - cp.Overall = int(ovr) - } else if cp.Position == "ATH" { - if cp.Archetype == "Field General" { + cp.Overall = int8(ovr) + case "ATH": + switch cp.Archetype { + case "Field General": ovr = (.20 * float64(cp.FootballIQ)) + (.1 * float64(cp.ZoneCoverage)) + (.1 * float64(cp.ManCoverage)) + (.1 * float64(cp.RunDefense)) + (.1 * float64(cp.Speed)) + (.1 * float64(cp.Strength)) + (.1 * float64(cp.Tackle)) + (.1 * float64(cp.ThrowPower)) + (.1 * float64(cp.ThrowAccuracy)) - } else if cp.Archetype == "Triple-Threat" { + case "Triple-Threat": ovr = (.10 * float64(cp.FootballIQ)) + (.2 * float64(cp.Agility)) + (.1 * float64(cp.Carrying)) + (.1 * float64(cp.Catching)) + (.2 * float64(cp.Speed)) + (.1 * float64(cp.RouteRunning)) + (.1 * float64(cp.ThrowPower)) + (.1 * float64(cp.ThrowAccuracy)) - } else if cp.Archetype == "Wingback" { + case "Wingback": ovr = (.1 * float64(cp.FootballIQ)) + (.2 * float64(cp.Agility)) + (.1 * float64(cp.Carrying)) + (.2 * float64(cp.Catching)) + (.2 * float64(cp.Speed)) + (.1 * float64(cp.RouteRunning)) + (.1 * float64(cp.RunBlock)) - } else if cp.Archetype == "Slotback" { + case "Slotback": ovr = (.1 * float64(cp.FootballIQ)) + (.1 * float64(cp.Agility)) + (.1 * float64(cp.Carrying)) + (.1 * float64(cp.Catching)) + (.2 * float64(cp.Speed)) + (.1 * float64(cp.RouteRunning)) + (.1 * float64(cp.RunBlock)) + (.1 * float64(cp.PassBlock)) + (.1 * float64(cp.Strength)) - } else if cp.Archetype == "Lineman" { + case "Lineman": ovr = (.1 * float64(cp.FootballIQ)) + (.1 * float64(cp.Agility)) + (.1 * float64(cp.RunBlock)) + (.1 * float64(cp.PassBlock)) + (.3 * float64(cp.Strength)) + (.1 * float64(cp.PassRush)) + (.1 * float64(cp.RunDefense)) + (.1 * float64(cp.Tackle)) - } else if cp.Archetype == "Strongside" { + case "Strongside": ovr = (.1 * float64(cp.FootballIQ)) + (.1 * float64(cp.Agility)) + (.1 * float64(cp.ZoneCoverage)) + (.1 * float64(cp.ManCoverage)) + (.2 * float64(cp.Strength)) + (.1 * float64(cp.PassRush)) + (.1 * float64(cp.RunDefense)) + (.1 * float64(cp.Tackle)) + (.1 * float64(cp.Speed)) - } else if cp.Archetype == "Weakside" { + case "Weakside": ovr = (.1 * float64(cp.FootballIQ)) + (.1 * float64(cp.Agility)) + (.1 * float64(cp.ZoneCoverage)) + (.1 * float64(cp.ManCoverage)) + (.1 * float64(cp.Strength)) + (.1 * float64(cp.PassRush)) + (.1 * float64(cp.RunDefense)) + (.1 * float64(cp.Tackle)) + (.2 * float64(cp.Speed)) - } else if cp.Archetype == "Bandit" { + case "Bandit": ovr = (.1 * float64(cp.FootballIQ)) + (.1 * float64(cp.Agility)) + (.1 * float64(cp.ZoneCoverage)) + (.1 * float64(cp.ManCoverage)) + (.1 * float64(cp.Strength)) + (.1 * float64(cp.PassRush)) + (.1 * float64(cp.RunDefense)) + (.1 * float64(cp.Tackle)) + (.2 * float64(cp.Speed)) - } else if cp.Archetype == "Return Specialist" { + case "Return Specialist": ovr = (.20 * float64(cp.FootballIQ)) + (.10 * float64(cp.Strength)) + (.20 * float64(cp.Speed)) + (.20 * float64(cp.Agility)) + (.20 * float64(cp.Catching)) + (.1 * float64(cp.Tackle)) - } else if cp.Archetype == "Soccer Player" { + case "Soccer Player": ovr = (.10 * float64(cp.FootballIQ)) + (.10 * float64(cp.Agility)) + (.2 * float64(cp.KickPower)) + (.2 * float64(cp.KickAccuracy)) + (.2 * float64(cp.PuntPower)) + (.2 * float64(cp.PuntAccuracy)) } - cp.Overall = int(ovr) + cp.Overall = int8(ovr) } } @@ -227,7 +229,7 @@ func (cp *BasePlayer) ToggleInjuryReserve() { } func (cp *BasePlayer) MapProgression(prog int, letter string) { - cp.Progression = prog + cp.Progression = int8(prog) cp.PotentialGrade = letter } @@ -245,26 +247,26 @@ func (bp *BasePlayer) DesignateNewPosition(pos, arch string) { } func (bp *BasePlayer) ApplyFixedATHAttributes(fIQ, spe, agi, car, cat, rr, zc, mc, str, tack, pb, rb, pr, rd, tp, ta, ka, kp, pa, pp int) { - bp.FootballIQ = fIQ - bp.Speed = spe - bp.Agility = agi - bp.Carrying = car - bp.Catching = cat - bp.RouteRunning = rr - bp.ZoneCoverage = zc - bp.ManCoverage = mc - bp.Strength = str - bp.Tackle = tack - bp.PassBlock = pb - bp.RunBlock = rb - bp.PassRush = pr - bp.RunDefense = rd - bp.ThrowPower = tp - bp.ThrowAccuracy = ta - bp.KickAccuracy = ka - bp.KickPower = kp - bp.PuntAccuracy = pa - bp.PuntPower = pp + bp.FootballIQ = int8(fIQ) + bp.Speed = int8(spe) + bp.Agility = int8(agi) + bp.Carrying = int8(car) + bp.Catching = int8(cat) + bp.RouteRunning = int8(rr) + bp.ZoneCoverage = int8(zc) + bp.ManCoverage = int8(mc) + bp.Strength = int8(str) + bp.Tackle = int8(tack) + bp.PassBlock = int8(pb) + bp.RunBlock = int8(rb) + bp.PassRush = int8(pr) + bp.RunDefense = int8(rd) + bp.ThrowPower = int8(tp) + bp.ThrowAccuracy = int8(ta) + bp.KickAccuracy = int8(ka) + bp.KickPower = int8(kp) + bp.PuntAccuracy = int8(pa) + bp.PuntPower = int8(pp) } func (bp *BasePlayer) RevertAge() { diff --git a/structs/BasePlayerStats.go b/structs/BasePlayerStats.go index 1822130..bce6491 100644 --- a/structs/BasePlayerStats.go +++ b/structs/BasePlayerStats.go @@ -1,59 +1,59 @@ package structs type BasePlayerStats struct { - PassingYards int - PassAttempts int - PassCompletions int - PassingTDs int - Interceptions int - LongestPass int - Sacks int - RushAttempts int - RushingYards int - RushingTDs int - Fumbles int - LongestRush int - Targets int - Catches int - ReceivingYards int - ReceivingTDs int - LongestReception int + PassingYards int16 + PassAttempts int16 + PassCompletions int16 + PassingTDs int16 + Interceptions int16 + LongestPass int16 + Sacks int16 + RushAttempts int16 + RushingYards int16 + RushingTDs int16 + Fumbles int16 + LongestRush int16 + Targets int16 + Catches int16 + ReceivingYards int16 + ReceivingTDs int16 + LongestReception int16 SoloTackles float64 AssistedTackles float64 TacklesForLoss float64 SacksMade float64 - ForcedFumbles int - RecoveredFumbles int - PassDeflections int - InterceptionsCaught int - Safeties int - DefensiveTDs int - FGMade int - FGAttempts int - LongestFG int - ExtraPointsMade int - ExtraPointsAttempted int - KickoffTouchbacks int - Punts int - GrossPuntDistance int - NetPuntDistance int - PuntTouchbacks int - PuntsInside20 int - KickReturns int - KickReturnTDs int - KickReturnYards int - PuntReturns int - PuntReturnTDs int - PuntReturnYards int + ForcedFumbles int16 + RecoveredFumbles int16 + PassDeflections int16 + InterceptionsCaught int16 + Safeties int16 + DefensiveTDs int16 + FGMade int16 + FGAttempts int16 + LongestFG int16 + ExtraPointsMade int16 + ExtraPointsAttempted int16 + KickoffTouchbacks int16 + Punts int16 + GrossPuntDistance int16 + NetPuntDistance int16 + PuntTouchbacks int16 + PuntsInside20 int16 + KickReturns int16 + KickReturnTDs int16 + KickReturnYards int16 + PuntReturns int16 + PuntReturnTDs int16 + PuntReturnYards int16 STSoloTackles float64 STAssistedTackles float64 - PuntsBlocked int - FGBlocked int - Snaps int - Pancakes int - SacksAllowed int - PlayedGame int - StartedGame int + PuntsBlocked int16 + FGBlocked int16 + Snaps int16 + Pancakes int16 + SacksAllowed int16 + PlayedGame int16 + StartedGame int16 WasInjured bool WeeksOfRecovery uint InjuryType string diff --git a/structs/CollegeCoach.go b/structs/CollegeCoach.go index c94b00e..584647f 100644 --- a/structs/CollegeCoach.go +++ b/structs/CollegeCoach.go @@ -117,15 +117,16 @@ func (cc *CollegeCoach) ReduceCoachRecord(game CollegeGame) { } func (c *CollegeCoach) IncrementOdds(star int) { - if star == 1 { + switch star { + case 1: c.Odds1 += 1 - } else if star == 2 { + case 2: c.Odds2 += 1 - } else if star == 3 { + case 3: c.Odds3 += 1 - } else if star == 4 { + case 4: c.Odds4 += 1 - } else if star == 5 { + case 5: c.Odds5 += 1 } } diff --git a/structs/CollegePlayer.go b/structs/CollegePlayer.go index fabfcfc..a2328a2 100644 --- a/structs/CollegePlayer.go +++ b/structs/CollegePlayer.go @@ -54,95 +54,95 @@ func (cp *CollegePlayer) GetOverall() { switch cp.Position { case "QB": ovr = (0.1 * float64(cp.Agility)) + (0.25 * float64(cp.ThrowPower)) + (0.25 * float64(cp.ThrowAccuracy)) + (0.1 * float64(cp.Speed)) + (0.2 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Strength)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "RB": ovr = (0.2 * float64(cp.Agility)) + (0.05 * float64(cp.PassBlock)) + (0.1 * float64(cp.Carrying)) + (0.25 * float64(cp.Speed)) + (0.15 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Strength)) + (0.05 * float64(cp.Catching)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "FB": ovr = (0.1 * float64(cp.Agility)) + (0.1 * float64(cp.PassBlock)) + (0.1 * float64(cp.Carrying)) + (0.05 * float64(cp.Speed)) + (0.15 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Strength)) + (0.05 * float64(cp.Catching)) + (0.25 * float64(cp.RunBlock)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "WR": ovr = (0.15 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Speed)) + (0.1 * float64(cp.Agility)) + (0.05 * float64(cp.Carrying)) + (0.05 * float64(cp.Strength)) + (0.25 * float64(cp.Catching)) + (0.2 * float64(cp.RouteRunning)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "TE": ovr = (0.15 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Speed)) + (0.1 * float64(cp.Agility)) + (0.05 * float64(cp.Carrying)) + (0.05 * float64(cp.PassBlock)) + (0.15 * float64(cp.RunBlock)) + (0.1 * float64(cp.Strength)) + (0.20 * float64(cp.Catching)) + (0.1 * float64(cp.RouteRunning)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "OT", "OG": ovr = (0.15 * float64(cp.FootballIQ)) + (0.05 * float64(cp.Agility)) + (0.3 * float64(cp.RunBlock)) + (0.2 * float64(cp.Strength)) + (0.3 * float64(cp.PassBlock)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "C": ovr = (0.2 * float64(cp.FootballIQ)) + (0.05 * float64(cp.Agility)) + (0.3 * float64(cp.RunBlock)) + (0.15 * float64(cp.Strength)) + (0.3 * float64(cp.PassBlock)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "DT": ovr = (0.15 * float64(cp.FootballIQ)) + (0.05 * float64(cp.Agility)) + (0.25 * float64(cp.RunDefense)) + (0.2 * float64(cp.Strength)) + (0.15 * float64(cp.PassRush)) + (0.2 * float64(cp.Tackle)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "DE": ovr = (0.15 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Speed)) + (0.15 * float64(cp.RunDefense)) + (0.1 * float64(cp.Strength)) + (0.2 * float64(cp.PassRush)) + (0.2 * float64(cp.Tackle)) + (0.1 * float64(cp.Agility)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "ILB": ovr = (0.2 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Speed)) + (0.15 * float64(cp.RunDefense)) + (0.1 * float64(cp.Strength)) + (0.1 * float64(cp.PassRush)) + (0.15 * float64(cp.Tackle)) + (0.1 * float64(cp.ZoneCoverage)) + (0.05 * float64(cp.ManCoverage)) + (0.05 * float64(cp.Agility)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "OLB": ovr = (0.15 * float64(cp.FootballIQ)) + (0.1 * float64(cp.Speed)) + (0.15 * float64(cp.RunDefense)) + (0.1 * float64(cp.Strength)) + (0.15 * float64(cp.PassRush)) + (0.15 * float64(cp.Tackle)) + (0.1 * float64(cp.ZoneCoverage)) + (0.05 * float64(cp.ManCoverage)) + (0.05 * float64(cp.Agility)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "CB": ovr = (0.15 * float64(cp.FootballIQ)) + (0.25 * float64(cp.Speed)) + (0.05 * float64(cp.Tackle)) + (0.05 * float64(cp.Strength)) + (0.15 * float64(cp.Agility)) + (0.15 * float64(cp.ZoneCoverage)) + (0.15 * float64(cp.ManCoverage)) + (0.05 * float64(cp.Catching)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "FS": ovr = (0.2 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Speed)) + (0.05 * float64(cp.RunDefense)) + (0.05 * float64(cp.Strength)) + (0.05 * float64(cp.Catching)) + (0.05 * float64(cp.Tackle)) + (0.15 * float64(cp.ZoneCoverage)) + (0.15 * float64(cp.ManCoverage)) + (0.1 * float64(cp.Agility)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "SS": ovr = (0.15 * float64(cp.FootballIQ)) + (0.2 * float64(cp.Speed)) + (0.05 * float64(cp.RunDefense)) + (0.05 * float64(cp.Strength)) + (0.05 * float64(cp.Catching)) + (0.1 * float64(cp.Tackle)) + (0.15 * float64(cp.ZoneCoverage)) + (0.15 * float64(cp.ManCoverage)) + (0.1 * float64(cp.Agility)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "K": ovr = (0.2 * float64(cp.FootballIQ)) + (0.45 * float64(cp.KickPower)) + (0.45 * float64(cp.KickAccuracy)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "P": ovr = (0.2 * float64(cp.FootballIQ)) + (0.45 * float64(cp.PuntPower)) + (0.45 * float64(cp.PuntAccuracy)) - cp.Overall = int(ovr) + cp.Overall = int8(ovr) case "ATH": switch cp.Archetype { case "Field General": @@ -166,7 +166,7 @@ func (cp *CollegePlayer) GetOverall() { case "Soccer Player": ovr = (.10 * float64(cp.FootballIQ)) + (.10 * float64(cp.Agility)) + (.2 * float64(cp.KickPower)) + (.2 * float64(cp.KickAccuracy)) + (.2 * float64(cp.PuntPower)) + (.2 * float64(cp.PuntAccuracy)) } - cp.Overall = int(ovr) + cp.Overall = int8(ovr) } } @@ -183,7 +183,7 @@ func (cp *CollegePlayer) GetPotentialGrade() { adjust = 0 } } - potential := cp.Progression + adjust + potential := int(cp.Progression) + adjust if potential > 80 { cp.PotentialGrade = "A+" } else if potential > 70 { @@ -218,26 +218,26 @@ func (cp *CollegePlayer) Progress(attr CollegePlayerProgressions, isBoomBust boo cp.Age++ cp.Year++ } - cp.Agility = attr.Agility - cp.Speed = attr.Speed - cp.FootballIQ = attr.FootballIQ - cp.Carrying = attr.Carrying - cp.Catching = attr.Catching - cp.RouteRunning = attr.RouteRunning - cp.PassBlock = attr.PassBlock - cp.RunBlock = attr.RunBlock - cp.PassRush = attr.PassRush - cp.RunDefense = attr.RunDefense - cp.Tackle = attr.Tackle - cp.Strength = attr.Strength - cp.ManCoverage = attr.ManCoverage - cp.ZoneCoverage = attr.ZoneCoverage - cp.KickAccuracy = attr.KickAccuracy - cp.KickPower = attr.KickPower - cp.PuntAccuracy = attr.PuntAccuracy - cp.PuntPower = attr.PuntPower - cp.ThrowAccuracy = attr.ThrowAccuracy - cp.ThrowPower = attr.ThrowPower + cp.Agility = int8(attr.Agility) + cp.Speed = int8(attr.Speed) + cp.FootballIQ = int8(attr.FootballIQ) + cp.Carrying = int8(attr.Carrying) + cp.Catching = int8(attr.Catching) + cp.RouteRunning = int8(attr.RouteRunning) + cp.PassBlock = int8(attr.PassBlock) + cp.RunBlock = int8(attr.RunBlock) + cp.PassRush = int8(attr.PassRush) + cp.RunDefense = int8(attr.RunDefense) + cp.Tackle = int8(attr.Tackle) + cp.Strength = int8(attr.Strength) + cp.ManCoverage = int8(attr.ManCoverage) + cp.ZoneCoverage = int8(attr.ZoneCoverage) + cp.KickAccuracy = int8(attr.KickAccuracy) + cp.KickPower = int8(attr.KickPower) + cp.PuntAccuracy = int8(attr.PuntAccuracy) + cp.PuntPower = int8(attr.PuntPower) + cp.ThrowAccuracy = int8(attr.ThrowAccuracy) + cp.ThrowPower = int8(attr.ThrowPower) cp.HasProgressed = true } @@ -253,7 +253,7 @@ func (cp *CollegePlayer) MapFromRecruit(r Recruit, t CollegeTeam) { cp.HighSchool = r.HighSchool cp.City = r.City cp.State = r.State - cp.Year = r.Age - 17 + cp.Year = int(r.Age) - 17 cp.IsRedshirt = false cp.IsRedshirting = false cp.HasGraduated = false diff --git a/structs/CollegePlayerProgressions.go b/structs/CollegePlayerProgressions.go index b87b570..f3f267d 100644 --- a/structs/CollegePlayerProgressions.go +++ b/structs/CollegePlayerProgressions.go @@ -1,33 +1,33 @@ package structs type CollegePlayerProgressions struct { - Age int - Stars int - Overall int - Stamina int - Injury int - FootballIQ int - Speed int - Carrying int - Agility int - Catching int - RouteRunning int - ZoneCoverage int - ManCoverage int - Strength int - Tackle int - PassBlock int - RunBlock int - PassRush int - RunDefense int - ThrowPower int - ThrowAccuracy int - KickAccuracy int - KickPower int - PuntAccuracy int - PuntPower int - Progression int - Discipline int + Age int8 + Stars int8 + Overall int8 + Stamina int8 + Injury int8 + FootballIQ int8 + Speed int8 + Carrying int8 + Agility int8 + Catching int8 + RouteRunning int8 + ZoneCoverage int8 + ManCoverage int8 + Strength int8 + Tackle int8 + PassBlock int8 + RunBlock int8 + PassRush int8 + RunDefense int8 + ThrowPower int8 + ThrowAccuracy int8 + KickAccuracy int8 + KickPower int8 + PuntAccuracy int8 + PuntPower int8 + Progression int8 + Discipline int8 PotentialGrade string InjuryText string WeeksOfRecovery int diff --git a/structs/CollegePoll.go b/structs/CollegePoll.go index 390d1b4..bad4951 100644 --- a/structs/CollegePoll.go +++ b/structs/CollegePoll.go @@ -179,127 +179,128 @@ func (s *CollegePollSubmission) MoveSubmissionToNextWeek(weekID, week uint) { } func (c *CollegePollOfficial) AssignRank(idx int, vote TeamVote) { - if idx == 0 { + switch idx { + case 0: c.Rank1 = vote.Team c.Rank1Votes = vote.TotalVotes c.Rank1ID = vote.TeamID c.Rank1No1Votes = vote.Number1Votes - } else if idx == 1 { + case 1: c.Rank2 = vote.Team c.Rank2Votes = vote.TotalVotes c.Rank2ID = vote.TeamID c.Rank2No1Votes = vote.Number1Votes - } else if idx == 2 { + case 2: c.Rank3 = vote.Team c.Rank3Votes = vote.TotalVotes c.Rank3ID = vote.TeamID c.Rank3No1Votes = vote.Number1Votes - } else if idx == 3 { + case 3: c.Rank4 = vote.Team c.Rank4Votes = vote.TotalVotes c.Rank4ID = vote.TeamID c.Rank4No1Votes = vote.Number1Votes - } else if idx == 4 { + case 4: c.Rank5 = vote.Team c.Rank5Votes = vote.TotalVotes c.Rank5ID = vote.TeamID c.Rank5No1Votes = vote.Number1Votes - } else if idx == 5 { + case 5: c.Rank6 = vote.Team c.Rank6Votes = vote.TotalVotes c.Rank6ID = vote.TeamID c.Rank6No1Votes = vote.Number1Votes - } else if idx == 6 { + case 6: c.Rank7 = vote.Team c.Rank7Votes = vote.TotalVotes c.Rank7ID = vote.TeamID c.Rank7No1Votes = vote.Number1Votes - } else if idx == 7 { + case 7: c.Rank8 = vote.Team c.Rank8Votes = vote.TotalVotes c.Rank8ID = vote.TeamID c.Rank8No1Votes = vote.Number1Votes - } else if idx == 8 { + case 8: c.Rank9 = vote.Team c.Rank9Votes = vote.TotalVotes c.Rank9ID = vote.TeamID c.Rank9No1Votes = vote.Number1Votes - } else if idx == 9 { + case 9: c.Rank10 = vote.Team c.Rank10Votes = vote.TotalVotes c.Rank10ID = vote.TeamID c.Rank10No1Votes = vote.Number1Votes - } else if idx == 10 { + case 10: c.Rank11 = vote.Team c.Rank11Votes = vote.TotalVotes c.Rank11ID = vote.TeamID c.Rank11No1Votes = vote.Number1Votes - } else if idx == 11 { + case 11: c.Rank12 = vote.Team c.Rank12Votes = vote.TotalVotes c.Rank12ID = vote.TeamID c.Rank12No1Votes = vote.Number1Votes - } else if idx == 12 { + case 12: c.Rank13 = vote.Team c.Rank13Votes = vote.TotalVotes c.Rank13ID = vote.TeamID c.Rank13No1Votes = vote.Number1Votes - } else if idx == 13 { + case 13: c.Rank14 = vote.Team c.Rank14Votes = vote.TotalVotes c.Rank14ID = vote.TeamID c.Rank14No1Votes = vote.Number1Votes - } else if idx == 14 { + case 14: c.Rank15 = vote.Team c.Rank15Votes = vote.TotalVotes c.Rank15ID = vote.TeamID c.Rank15No1Votes = vote.Number1Votes - } else if idx == 15 { + case 15: c.Rank16 = vote.Team c.Rank16Votes = vote.TotalVotes c.Rank16ID = vote.TeamID c.Rank16No1Votes = vote.Number1Votes - } else if idx == 16 { + case 16: c.Rank17 = vote.Team c.Rank17Votes = vote.TotalVotes c.Rank17ID = vote.TeamID c.Rank17No1Votes = vote.Number1Votes - } else if idx == 17 { + case 17: c.Rank18 = vote.Team c.Rank18Votes = vote.TotalVotes c.Rank18ID = vote.TeamID c.Rank18No1Votes = vote.Number1Votes - } else if idx == 18 { + case 18: c.Rank19 = vote.Team c.Rank19Votes = vote.TotalVotes c.Rank19ID = vote.TeamID c.Rank19No1Votes = vote.Number1Votes - } else if idx == 19 { + case 19: c.Rank20 = vote.Team c.Rank20Votes = vote.TotalVotes c.Rank20ID = vote.TeamID c.Rank20No1Votes = vote.Number1Votes - } else if idx == 20 { + case 20: c.Rank21 = vote.Team c.Rank21Votes = vote.TotalVotes c.Rank21ID = vote.TeamID c.Rank21No1Votes = vote.Number1Votes - } else if idx == 21 { + case 21: c.Rank22 = vote.Team c.Rank22Votes = vote.TotalVotes c.Rank22ID = vote.TeamID c.Rank22No1Votes = vote.Number1Votes - } else if idx == 22 { + case 22: c.Rank23 = vote.Team c.Rank23Votes = vote.TotalVotes c.Rank23ID = vote.TeamID c.Rank23No1Votes = vote.Number1Votes - } else if idx == 23 { + case 23: c.Rank24 = vote.Team c.Rank24Votes = vote.TotalVotes c.Rank24ID = vote.TeamID c.Rank24No1Votes = vote.Number1Votes - } else if idx == 24 { + case 24: c.Rank25 = vote.Team c.Rank25Votes = vote.TotalVotes c.Rank25ID = vote.TeamID diff --git a/structs/NFLPlayer.go b/structs/NFLPlayer.go index a912185..c794a75 100644 --- a/structs/NFLPlayer.go +++ b/structs/NFLPlayer.go @@ -63,7 +63,7 @@ func (np *NFLPlayer) SetID(val uint) { } func (np *NFLPlayer) AssignMissingValues(pr int, aca string, fa string, per string, rec string, we string) { - np.Progression = pr + np.Progression = int8(pr) np.AcademicBias = aca np.FreeAgency = fa np.Personality = per @@ -209,26 +209,26 @@ func (f *NFLPlayer) ToggleHasProgressed() { func (np *NFLPlayer) Progress(attr CollegePlayerProgressions) { np.Age++ np.Experience++ - np.Agility = AddAttribute(attr.Agility) - np.Speed = AddAttribute(attr.Speed) - np.FootballIQ = AddAttribute(attr.FootballIQ) - np.Carrying = AddAttribute(attr.Carrying) - np.Catching = AddAttribute(attr.Catching) - np.RouteRunning = AddAttribute(attr.RouteRunning) - np.PassBlock = AddAttribute(attr.PassBlock) - np.RunBlock = AddAttribute(attr.RunBlock) - np.PassRush = AddAttribute(attr.PassRush) - np.RunDefense = AddAttribute(attr.RunDefense) - np.Tackle = AddAttribute(attr.Tackle) - np.Strength = AddAttribute(attr.Strength) - np.ManCoverage = AddAttribute(attr.ManCoverage) - np.ZoneCoverage = AddAttribute(attr.ZoneCoverage) - np.KickAccuracy = AddAttribute(attr.KickAccuracy) - np.KickPower = AddAttribute(attr.KickPower) - np.PuntAccuracy = AddAttribute(attr.PuntAccuracy) - np.PuntPower = AddAttribute(attr.PuntPower) - np.ThrowAccuracy = AddAttribute(attr.ThrowAccuracy) - np.ThrowPower = AddAttribute(attr.ThrowPower) + np.Agility = int8(AddAttribute(int(attr.Agility))) + np.Speed = int8(AddAttribute(int(attr.Speed))) + np.FootballIQ = int8(AddAttribute(int(attr.FootballIQ))) + np.Carrying = int8(AddAttribute(int(attr.Carrying))) + np.Catching = int8(AddAttribute(int(attr.Catching))) + np.RouteRunning = int8(AddAttribute(int(attr.RouteRunning))) + np.PassBlock = int8(AddAttribute(int(attr.PassBlock))) + np.RunBlock = int8(AddAttribute(int(attr.RunBlock))) + np.PassRush = int8(AddAttribute(int(attr.PassRush))) + np.RunDefense = int8(AddAttribute(int(attr.RunDefense))) + np.Tackle = int8(AddAttribute(int(attr.Tackle))) + np.Strength = int8(AddAttribute(int(attr.Strength))) + np.ManCoverage = int8(AddAttribute(int(attr.ManCoverage))) + np.ZoneCoverage = int8(AddAttribute(int(attr.ZoneCoverage))) + np.KickAccuracy = int8(AddAttribute(int(attr.KickAccuracy))) + np.KickPower = int8(AddAttribute(int(attr.KickPower))) + np.PuntAccuracy = int8(AddAttribute(int(attr.PuntAccuracy))) + np.PuntPower = int8(AddAttribute(int(attr.PuntPower))) + np.ThrowAccuracy = int8(AddAttribute(int(attr.ThrowAccuracy))) + np.ThrowPower = int8(AddAttribute(int(attr.ThrowPower))) np.HasProgressed = true np.ShowLetterGrade = false np.IsInjured = false @@ -250,26 +250,26 @@ func (f *NFLPlayer) AddTagType(tagType uint8) { } func (np *NFLPlayer) ApplyTrainingCampInfo(attr CollegePlayerProgressions) { - np.Agility = AddAttribute(attr.Agility) - np.Speed = AddAttribute(attr.Speed) - np.FootballIQ = AddAttribute(attr.FootballIQ) - np.Carrying = AddAttribute(attr.Carrying) - np.Catching = AddAttribute(attr.Catching) - np.RouteRunning = AddAttribute(attr.RouteRunning) - np.PassBlock = AddAttribute(attr.PassBlock) - np.RunBlock = AddAttribute(attr.RunBlock) - np.PassRush = AddAttribute(attr.PassRush) - np.RunDefense = AddAttribute(attr.RunDefense) - np.Tackle = AddAttribute(attr.Tackle) - np.Strength = AddAttribute(attr.Strength) - np.ManCoverage = AddAttribute(attr.ManCoverage) - np.ZoneCoverage = AddAttribute(attr.ZoneCoverage) - np.KickAccuracy = AddAttribute(attr.KickAccuracy) - np.KickPower = AddAttribute(attr.KickPower) - np.PuntAccuracy = AddAttribute(attr.PuntAccuracy) - np.PuntPower = AddAttribute(attr.PuntPower) - np.ThrowAccuracy = AddAttribute(attr.ThrowAccuracy) - np.ThrowPower = AddAttribute(attr.ThrowPower) + np.Agility = int8(AddAttribute(int(attr.Agility))) + np.Speed = int8(AddAttribute(int(attr.Speed))) + np.FootballIQ = int8(AddAttribute(int(attr.FootballIQ))) + np.Carrying = int8(AddAttribute(int(attr.Carrying))) + np.Catching = int8(AddAttribute(int(attr.Catching))) + np.RouteRunning = int8(AddAttribute(int(attr.RouteRunning))) + np.PassBlock = int8(AddAttribute(int(attr.PassBlock))) + np.RunBlock = int8(AddAttribute(int(attr.RunBlock))) + np.PassRush = int8(AddAttribute(int(attr.PassRush))) + np.RunDefense = int8(AddAttribute(int(attr.RunDefense))) + np.Tackle = int8(AddAttribute(int(attr.Tackle))) + np.Strength = int8(AddAttribute(int(attr.Strength))) + np.ManCoverage = int8(AddAttribute(int(attr.ManCoverage))) + np.ZoneCoverage = int8(AddAttribute(int(attr.ZoneCoverage))) + np.KickAccuracy = int8(AddAttribute(int(attr.KickAccuracy))) + np.KickPower = int8(AddAttribute(int(attr.KickPower))) + np.PuntAccuracy = int8(AddAttribute(int(attr.PuntAccuracy))) + np.PuntPower = int8(AddAttribute(int(attr.PuntPower))) + np.ThrowAccuracy = int8(AddAttribute(int(attr.ThrowAccuracy))) + np.ThrowPower = int8(AddAttribute(int(attr.ThrowPower))) np.IsInjured = attr.WeeksOfRecovery > 0 np.WeeksOfRecovery = uint(attr.WeeksOfRecovery) np.InjuryName = attr.InjuryText diff --git a/structs/PlayerResponses.go b/structs/PlayerResponses.go index 091a595..c675b6d 100644 --- a/structs/PlayerResponses.go +++ b/structs/PlayerResponses.go @@ -95,29 +95,29 @@ type CollegePlayerCSV struct { func MapPlayerForStats(player CollegePlayer) CollegePlayerCSV { attributeMeans := config.AttributeMeans() Year, RedShirtStatus := util.GetYearAndRedshirtStatus(player.Year, player.IsRedshirt) - OverallGrade := util.GetOverallGrade(player.Overall, player.Year) - StaminaGrade := util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade := util.GetLetterGrade(player.Injury, attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade := util.GetLetterGrade(player.Speed, attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade := util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade := util.GetLetterGrade(player.Agility, attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade := util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade := util.GetLetterGrade(player.Catching, attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade := util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade := util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade := util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade := util.GetLetterGrade(player.Strength, attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade := util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade := util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade := util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade := util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade := util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade := util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade := util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade := util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade := util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade := util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade := util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + OverallGrade := util.GetOverallGrade(int(player.Overall), player.Year) + StaminaGrade := util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade := util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade := util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade := util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade := util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade := util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade := util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade := util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade := util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade := util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade := util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade := util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade := util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade := util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade := util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade := util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade := util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade := util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade := util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade := util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade := util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade := util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) return CollegePlayerCSV{ FirstName: player.FirstName, @@ -127,13 +127,13 @@ func MapPlayerForStats(player CollegePlayer) CollegePlayerCSV { PositionTwo: player.PositionTwo, ArchetypeTwo: player.ArchetypeTwo, Year: Year, - Age: player.Age, - Stars: player.Stars, + Age: int(player.Age), + Stars: int(player.Stars), HighSchool: player.HighSchool, City: player.City, State: player.State, - Height: player.Height, - Weight: player.Weight, + Height: int(player.Height), + Weight: int(player.Weight), OverallGrade: OverallGrade, StaminaGrade: StaminaGrade, InjuryGrade: InjuryGrade, @@ -167,7 +167,7 @@ func MapPlayerToCSVModel(player CollegePlayer) CollegePlayerCSV { attributeMeans := config.AttributeMeans() Year, RedShirtStatus := util.GetYearAndRedshirtStatus(player.Year, player.IsRedshirt) - OverallGrade := util.GetOverallGrade(player.Overall, player.Year) + OverallGrade := util.GetOverallGrade(int(player.Overall), player.Year) StaminaGrade := "" InjuryGrade := "" SpeedGrade := "" @@ -192,260 +192,261 @@ func MapPlayerToCSVModel(player CollegePlayer) CollegePlayerCSV { PuntAccuracyGrade := "" if player.Position == "ATH" { - if player.Archetype == "Field General" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["ILB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["QB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["QB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["QB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["QB"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["ILB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["ILB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["ILB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["ILB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["QB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["QB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["ILB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["ILB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Triple-Threat" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["QB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["RB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["RB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Wingback" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["RB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["CB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["CB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Slotback" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["WR"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["WR"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["WR"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["TE"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["FB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["FB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["TE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["TE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Lineman" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["DE"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["C"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["DE"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["RB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["DT"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["DT"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["DE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["DE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Strongside" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["DE"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["OLB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["DE"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["OLB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["OLB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["OLB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["OLB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["DE"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["DE"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["DE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["DE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Weakside" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["ILB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["ILB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["OLB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["OLB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["ILB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["ILB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["OLB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["OLB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["ILB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["ILB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Bandit" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["SS"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["SS"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["SS"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["SS"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["SS"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["OLB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["OLB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Return Specialist" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["RB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Soccer Player" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["RB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["RB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["RB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + switch player.Archetype { + case "Field General": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["ILB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["QB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["QB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["QB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["QB"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["ILB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["ILB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["ILB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["ILB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["QB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["QB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["ILB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["ILB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Triple-Threat": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["QB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["RB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["RB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Wingback": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["RB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["CB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["CB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Slotback": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["WR"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["WR"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["WR"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["TE"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["FB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["FB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["TE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["TE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Lineman": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["DE"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["C"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["DE"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["RB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["DT"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["DT"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["DE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["DE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Strongside": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["DE"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["OLB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["DE"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["OLB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["OLB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["OLB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["OLB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["DE"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["DE"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["DE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["DE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Weakside": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["ILB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["ILB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["OLB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["OLB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["ILB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["ILB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["OLB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["OLB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["ILB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["ILB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Bandit": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["SS"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["SS"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["SS"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["SS"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["SS"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["OLB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["OLB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Return Specialist": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["RB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Soccer Player": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["RB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["RB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["RB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) } } else { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) } return CollegePlayerCSV{ @@ -456,13 +457,13 @@ func MapPlayerToCSVModel(player CollegePlayer) CollegePlayerCSV { PositionTwo: player.PositionTwo, ArchetypeTwo: player.ArchetypeTwo, Year: Year, - Age: player.Age, - Stars: player.Stars, + Age: int(player.Age), + Stars: int(player.Stars), HighSchool: player.HighSchool, City: player.City, State: player.State, - Height: player.Height, - Weight: player.Weight, + Height: int(player.Height), + Weight: int(player.Weight), OverallGrade: OverallGrade, StaminaGrade: StaminaGrade, InjuryGrade: InjuryGrade, @@ -497,7 +498,7 @@ func MapPortalPlayerToCSVModel(player TransferPlayerResponse) CollegePlayerCSV { attributeMeans := config.AttributeMeans() Year, RedShirtStatus := util.GetYearAndRedshirtStatus(player.Year, player.IsRedshirt) - OverallGrade := util.GetOverallGrade(player.Overall, player.Year) + OverallGrade := util.GetOverallGrade(int(player.Overall), player.Year) StaminaGrade := "" InjuryGrade := "" SpeedGrade := "" @@ -522,260 +523,261 @@ func MapPortalPlayerToCSVModel(player TransferPlayerResponse) CollegePlayerCSV { PuntAccuracyGrade := "" if player.Position == "ATH" { - if player.Archetype == "Field General" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["ILB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["QB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["QB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["QB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["QB"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["ILB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["ILB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["ILB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["ILB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["QB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["QB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["ILB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["ILB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Triple-Threat" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["QB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["RB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["RB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Wingback" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["RB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["CB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["CB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Slotback" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["WR"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["WR"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["WR"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["TE"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["FB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["FB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["TE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["TE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Lineman" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["DE"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["C"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["DE"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["RB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["DT"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["DT"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["DE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["DE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Strongside" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["DE"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["OLB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["DE"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["OLB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["OLB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["OLB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["OLB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["DE"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["DE"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["DE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["DE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Weakside" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["ILB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["ILB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["OLB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["OLB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["ILB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["ILB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["OLB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["OLB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["ILB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["ILB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Bandit" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["SS"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["SS"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["SS"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["SS"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["SS"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["OLB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["OLB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Return Specialist" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["RB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) - } else if player.Archetype == "Soccer Player" { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"]["RB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"]["RB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"]["RB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + switch player.Archetype { + case "Field General": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["ILB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["QB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["QB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["QB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["QB"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["ILB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["ILB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["ILB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["ILB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["QB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["QB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["ILB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["ILB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Triple-Threat": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["QB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["RB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["RB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Wingback": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["RB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["CB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["CB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Slotback": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["QB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["QB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["WR"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["WR"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["WR"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["TE"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["WR"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["FB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["FB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["TE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["TE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["QB"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["QB"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["QB"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["QB"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Lineman": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["DE"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["C"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["DE"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["RB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["CB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["CB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["DT"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["DT"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["DE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["DE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Strongside": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["DE"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["OLB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["DE"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["OLB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["OLB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["OLB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["OLB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["DE"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["DE"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["DE"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["DE"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Weakside": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["ILB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["ILB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["OLB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["OLB"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["OG"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["ILB"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["ILB"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["OLB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["OLB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["ILB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["ILB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Bandit": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["SS"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["SS"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["SS"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["SS"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["SS"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["OLB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["OLB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["OG"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["OG"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Return Specialist": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["OG"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["OG"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["RB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + case "Soccer Player": + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"]["RB"]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"]["RB"]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"]["RB"]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"]["ILB"]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"]["RB"]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"]["RB"]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"]["WR"]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"]["WR"]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"]["SS"]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"]["SS"]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"]["RB"]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"]["RB"]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"]["RB"]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"]["RB"]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"]["OLB"]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"]["OLB"]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"]["QB"]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"]["QB"]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"]["K"]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"]["K"]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"]["P"]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"]["P"]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) } } else { - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], player.Year) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], player.Year) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], player.Year) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], player.Year) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], player.Year) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], player.Year) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], player.Year) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], player.Year) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], player.Year) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], player.Year) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], player.Year) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], player.Year) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], player.Year) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], player.Year) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], player.Year) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], player.Year) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], player.Year) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], player.Year) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], player.Year) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], player.Year) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], player.Year) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], player.Year) } return CollegePlayerCSV{ @@ -786,11 +788,11 @@ func MapPortalPlayerToCSVModel(player TransferPlayerResponse) CollegePlayerCSV { PositionTwo: player.PositionTwo, ArchetypeTwo: player.ArchetypeTwo, Year: Year, - Age: player.Age, - Stars: player.Stars, + Age: int(player.Age), + Stars: int(player.Stars), State: player.State, - Height: player.Height, - Weight: player.Weight, + Height: int(player.Height), + Weight: int(player.Weight), OverallGrade: OverallGrade, StaminaGrade: StaminaGrade, InjuryGrade: InjuryGrade, @@ -824,54 +826,54 @@ func MapNFLPlayerToCSVModel(player NFLPlayer) CollegePlayerCSV { attributeMeans := config.AttributeMeans() Year := util.GetNFLYear(player.Experience) - OverallGrade := strconv.Itoa(player.Overall) - StaminaGrade := strconv.Itoa(player.Stamina) - InjuryGrade := strconv.Itoa(player.Injury) - SpeedGrade := strconv.Itoa(player.Speed) - FootballIQGrade := strconv.Itoa(player.FootballIQ) - AgilityGrade := strconv.Itoa(player.Agility) - CarryingGrade := strconv.Itoa(player.Carrying) - CatchingGrade := strconv.Itoa(player.Catching) - RouteRunningGrade := strconv.Itoa(player.RouteRunning) - ZoneCoverageGrade := strconv.Itoa(player.ZoneCoverage) - ManCoverageGrade := strconv.Itoa(player.ManCoverage) - StrengthGrade := strconv.Itoa(player.Strength) - TackleGrade := strconv.Itoa(player.Tackle) - PassBlockGrade := strconv.Itoa(player.PassBlock) - RunBlockGrade := strconv.Itoa(player.RunBlock) - PassRushGrade := strconv.Itoa(player.PassRush) - RunDefenseGrade := strconv.Itoa(player.RunDefense) - ThrowPowerGrade := strconv.Itoa(player.ThrowPower) - ThrowAccuracyGrade := strconv.Itoa(player.ThrowAccuracy) - KickPowerGrade := strconv.Itoa(player.KickPower) - KickAccuracyGrade := strconv.Itoa(player.KickAccuracy) - PuntPowerGrade := strconv.Itoa(player.PuntPower) - PuntAccuracyGrade := strconv.Itoa(player.PuntAccuracy) + OverallGrade := strconv.Itoa(int(player.Overall)) + StaminaGrade := strconv.Itoa(int(player.Stamina)) + InjuryGrade := strconv.Itoa(int(player.Injury)) + SpeedGrade := strconv.Itoa(int(player.Speed)) + FootballIQGrade := strconv.Itoa(int(player.FootballIQ)) + AgilityGrade := strconv.Itoa(int(player.Agility)) + CarryingGrade := strconv.Itoa(int(player.Carrying)) + CatchingGrade := strconv.Itoa(int(player.Catching)) + RouteRunningGrade := strconv.Itoa(int(player.RouteRunning)) + ZoneCoverageGrade := strconv.Itoa(int(player.ZoneCoverage)) + ManCoverageGrade := strconv.Itoa(int(player.ManCoverage)) + StrengthGrade := strconv.Itoa(int(player.Strength)) + TackleGrade := strconv.Itoa(int(player.Tackle)) + PassBlockGrade := strconv.Itoa(int(player.PassBlock)) + RunBlockGrade := strconv.Itoa(int(player.RunBlock)) + PassRushGrade := strconv.Itoa(int(player.PassRush)) + RunDefenseGrade := strconv.Itoa(int(player.RunDefense)) + ThrowPowerGrade := strconv.Itoa(int(player.ThrowPower)) + ThrowAccuracyGrade := strconv.Itoa(int(player.ThrowAccuracy)) + KickPowerGrade := strconv.Itoa(int(player.KickPower)) + KickAccuracyGrade := strconv.Itoa(int(player.KickAccuracy)) + PuntPowerGrade := strconv.Itoa(int(player.PuntPower)) + PuntAccuracyGrade := strconv.Itoa(int(player.PuntAccuracy)) if player.Experience < 2 || player.ShowLetterGrade { - OverallGrade = util.GetOverallGrade(player.Overall, int(player.Experience)) - StaminaGrade = util.GetLetterGrade(player.Stamina, attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], int(player.Experience)) - InjuryGrade = util.GetLetterGrade(player.Injury, attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], int(player.Experience)) - SpeedGrade = util.GetLetterGrade(player.Speed, attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], int(player.Experience)) - FootballIQGrade = util.GetLetterGrade(player.FootballIQ, attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], int(player.Experience)) - AgilityGrade = util.GetLetterGrade(player.Agility, attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], int(player.Experience)) - CarryingGrade = util.GetLetterGrade(player.Carrying, attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], int(player.Experience)) - CatchingGrade = util.GetLetterGrade(player.Catching, attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], int(player.Experience)) - RouteRunningGrade = util.GetLetterGrade(player.RouteRunning, attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], int(player.Experience)) - ZoneCoverageGrade = util.GetLetterGrade(player.ZoneCoverage, attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], int(player.Experience)) - ManCoverageGrade = util.GetLetterGrade(player.ManCoverage, attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], int(player.Experience)) - StrengthGrade = util.GetLetterGrade(player.Strength, attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], int(player.Experience)) - TackleGrade = util.GetLetterGrade(player.Tackle, attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], int(player.Experience)) - PassBlockGrade = util.GetLetterGrade(player.PassBlock, attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], int(player.Experience)) - RunBlockGrade = util.GetLetterGrade(player.RunBlock, attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], int(player.Experience)) - PassRushGrade = util.GetLetterGrade(player.PassRush, attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], int(player.Experience)) - RunDefenseGrade = util.GetLetterGrade(player.RunDefense, attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], int(player.Experience)) - ThrowPowerGrade = util.GetLetterGrade(player.ThrowPower, attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], int(player.Experience)) - ThrowAccuracyGrade = util.GetLetterGrade(player.ThrowAccuracy, attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], int(player.Experience)) - KickPowerGrade = util.GetLetterGrade(player.KickPower, attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], int(player.Experience)) - KickAccuracyGrade = util.GetLetterGrade(player.KickAccuracy, attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], int(player.Experience)) - PuntPowerGrade = util.GetLetterGrade(player.PuntPower, attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], int(player.Experience)) - PuntAccuracyGrade = util.GetLetterGrade(player.PuntAccuracy, attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], int(player.Experience)) + OverallGrade = util.GetOverallGrade(int(player.Overall), int(player.Experience)) + StaminaGrade = util.GetLetterGrade(int(player.Stamina), attributeMeans["Stamina"][player.Position]["mean"], attributeMeans["Stamina"][player.Position]["stddev"], int(player.Experience)) + InjuryGrade = util.GetLetterGrade(int(player.Injury), attributeMeans["Injury"][player.Position]["mean"], attributeMeans["Injury"][player.Position]["stddev"], int(player.Experience)) + SpeedGrade = util.GetLetterGrade(int(player.Speed), attributeMeans["Speed"][player.Position]["mean"], attributeMeans["Speed"][player.Position]["stddev"], int(player.Experience)) + FootballIQGrade = util.GetLetterGrade(int(player.FootballIQ), attributeMeans["FootballIQ"][player.Position]["mean"], attributeMeans["FootballIQ"][player.Position]["stddev"], int(player.Experience)) + AgilityGrade = util.GetLetterGrade(int(player.Agility), attributeMeans["Agility"][player.Position]["mean"], attributeMeans["Agility"][player.Position]["stddev"], int(player.Experience)) + CarryingGrade = util.GetLetterGrade(int(player.Carrying), attributeMeans["Carrying"][player.Position]["mean"], attributeMeans["Carrying"][player.Position]["stddev"], int(player.Experience)) + CatchingGrade = util.GetLetterGrade(int(player.Catching), attributeMeans["Catching"][player.Position]["mean"], attributeMeans["Catching"][player.Position]["stddev"], int(player.Experience)) + RouteRunningGrade = util.GetLetterGrade(int(player.RouteRunning), attributeMeans["RouteRunning"][player.Position]["mean"], attributeMeans["RouteRunning"][player.Position]["stddev"], int(player.Experience)) + ZoneCoverageGrade = util.GetLetterGrade(int(player.ZoneCoverage), attributeMeans["ZoneCoverage"][player.Position]["mean"], attributeMeans["ZoneCoverage"][player.Position]["stddev"], int(player.Experience)) + ManCoverageGrade = util.GetLetterGrade(int(player.ManCoverage), attributeMeans["ManCoverage"][player.Position]["mean"], attributeMeans["ManCoverage"][player.Position]["stddev"], int(player.Experience)) + StrengthGrade = util.GetLetterGrade(int(player.Strength), attributeMeans["Strength"][player.Position]["mean"], attributeMeans["Strength"][player.Position]["stddev"], int(player.Experience)) + TackleGrade = util.GetLetterGrade(int(player.Tackle), attributeMeans["Tackle"][player.Position]["mean"], attributeMeans["Tackle"][player.Position]["stddev"], int(player.Experience)) + PassBlockGrade = util.GetLetterGrade(int(player.PassBlock), attributeMeans["PassBlock"][player.Position]["mean"], attributeMeans["PassBlock"][player.Position]["stddev"], int(player.Experience)) + RunBlockGrade = util.GetLetterGrade(int(player.RunBlock), attributeMeans["RunBlock"][player.Position]["mean"], attributeMeans["RunBlock"][player.Position]["stddev"], int(player.Experience)) + PassRushGrade = util.GetLetterGrade(int(player.PassRush), attributeMeans["PassRush"][player.Position]["mean"], attributeMeans["PassRush"][player.Position]["stddev"], int(player.Experience)) + RunDefenseGrade = util.GetLetterGrade(int(player.RunDefense), attributeMeans["RunDefense"][player.Position]["mean"], attributeMeans["RunDefense"][player.Position]["stddev"], int(player.Experience)) + ThrowPowerGrade = util.GetLetterGrade(int(player.ThrowPower), attributeMeans["ThrowPower"][player.Position]["mean"], attributeMeans["ThrowPower"][player.Position]["stddev"], int(player.Experience)) + ThrowAccuracyGrade = util.GetLetterGrade(int(player.ThrowAccuracy), attributeMeans["ThrowAccuracy"][player.Position]["mean"], attributeMeans["ThrowAccuracy"][player.Position]["stddev"], int(player.Experience)) + KickPowerGrade = util.GetLetterGrade(int(player.KickPower), attributeMeans["KickPower"][player.Position]["mean"], attributeMeans["KickPower"][player.Position]["stddev"], int(player.Experience)) + KickAccuracyGrade = util.GetLetterGrade(int(player.KickAccuracy), attributeMeans["KickAccuracy"][player.Position]["mean"], attributeMeans["KickAccuracy"][player.Position]["stddev"], int(player.Experience)) + PuntPowerGrade = util.GetLetterGrade(int(player.PuntPower), attributeMeans["PuntPower"][player.Position]["mean"], attributeMeans["PuntPower"][player.Position]["stddev"], int(player.Experience)) + PuntAccuracyGrade = util.GetLetterGrade(int(player.PuntAccuracy), attributeMeans["PuntAccuracy"][player.Position]["mean"], attributeMeans["PuntAccuracy"][player.Position]["stddev"], int(player.Experience)) } return CollegePlayerCSV{ @@ -884,14 +886,14 @@ func MapNFLPlayerToCSVModel(player NFLPlayer) CollegePlayerCSV { PreviousTeam: player.PreviousTeam, Team: player.TeamAbbr, Year: Year, - Age: player.Age, - Stars: player.Stars, + Age: int(player.Age), + Stars: int(player.Stars), HighSchool: player.HighSchool, College: player.College, City: player.Hometown, State: player.State, - Height: player.Height, - Weight: player.Weight, + Height: int(player.Height), + Weight: int(player.Weight), OverallGrade: OverallGrade, StaminaGrade: StaminaGrade, InjuryGrade: InjuryGrade, @@ -977,9 +979,9 @@ func (c *Croot) Map(r Recruit) { c.LastName = r.LastName c.Position = r.Position c.Archetype = r.Archetype - c.Height = r.Height - c.Weight = r.Weight - c.Stars = r.Stars + c.Height = int(r.Height) + c.Weight = int(r.Weight) + c.Stars = int(r.Stars) c.PotentialGrade = r.PotentialGrade c.Personality = r.Personality c.RecruitingBias = r.RecruitingBias @@ -991,7 +993,7 @@ func (c *Croot) Map(r Recruit) { c.AffinityOne = r.AffinityOne c.AffinityTwo = r.AffinityTwo c.College = r.College - c.OverallGrade = util.GetOverallGrade(r.Overall, 1) + c.OverallGrade = util.GetOverallGrade(int(r.Overall), 1) c.IsSigned = r.IsSigned c.RecruitingStatus = r.RecruitingStatus c.RecruitModifier = r.RecruitingModifier diff --git a/structs/PlayerSnaps.go b/structs/PlayerSnaps.go index 04ec194..c5fb215 100644 --- a/structs/PlayerSnaps.go +++ b/structs/PlayerSnaps.go @@ -30,47 +30,48 @@ type BasePlayerGameSnaps struct { } func (g *BasePlayerGameSnaps) MapSnapsToPosition(pos string, snaps int) { - if pos == "QB" { + switch pos { + case "QB": g.QBSnaps += uint16(snaps) - } else if pos == "RB" { + case "RB": g.RBSnaps += uint16(snaps) - } else if pos == "FB" { + case "FB": g.FBSnaps += uint16(snaps) - } else if pos == "WR" { + case "WR": g.WRSnaps += uint16(snaps) - } else if pos == "TE" { + case "TE": g.TESnaps += uint16(snaps) - } else if pos == "OT" { + case "OT": g.OTSnaps += uint16(snaps) - } else if pos == "OG" { + case "OG": g.OGSnaps += uint16(snaps) - } else if pos == "C" { + case "C": g.CSnaps += uint16(snaps) - } else if pos == "DE" { + case "DE": g.DESnaps += uint16(snaps) - } else if pos == "DT" { + case "DT": g.DTSnaps += uint16(snaps) - } else if pos == "OLB" { + case "OLB": g.OLBSnaps += uint16(snaps) - } else if pos == "ILB" { + case "ILB": g.ILBSnaps += uint16(snaps) - } else if pos == "CB" { + case "CB": g.CBSnaps += uint16(snaps) - } else if pos == "FS" { + case "FS": g.FSSnaps += uint16(snaps) - } else if pos == "SS" { + case "SS": g.SSSnaps += uint16(snaps) - } else if pos == "P" { + case "P": g.PSnaps += uint16(snaps) - } else if pos == "K" { + case "K": g.KSnaps += uint16(snaps) - } else if pos == "ST" { + case "ST": g.STSnaps += uint16(snaps) - } else if pos == "KR" { + case "KR": g.KRSnaps += uint16(snaps) - } else if pos == "PR" { + case "PR": g.PRSnaps += uint16(snaps) - } else if pos == "KOS" { + case "KOS": g.KOSSnaps += uint16(snaps) } } diff --git a/structs/PlayerStatDTO.go b/structs/PlayerStatDTO.go index 8148123..a5759a9 100644 --- a/structs/PlayerStatDTO.go +++ b/structs/PlayerStatDTO.go @@ -74,57 +74,57 @@ func (p *PlayerStatDTO) GetPlayerID() int { func (p *PlayerStatDTO) MapTobasePlayerStatsObject(gameType uint8) BasePlayerStats { return BasePlayerStats{ - PassAttempts: p.PassAttempts, - PassingYards: p.PassYards, - PassCompletions: p.PassCompletions, - PassingTDs: p.PassTDS, - Interceptions: p.PassINTs, - LongestPass: p.LongestPass, - Sacks: p.TimesSacked, - RushAttempts: p.RushAttempts, - RushingYards: p.RushYards, - RushingTDs: p.RushTDs, - LongestRush: p.LongestRush, - Fumbles: p.Fumbles, - Targets: p.Targets, - Catches: p.Catches, - ReceivingYards: p.ReceivingYards, - ReceivingTDs: p.ReceivingTDs, - LongestReception: p.LongestCatch, - Pancakes: p.Pancakes, - SacksAllowed: p.SacksAllowed, + PassAttempts: int16(p.PassAttempts), + PassingYards: int16(p.PassYards), + PassCompletions: int16(p.PassCompletions), + PassingTDs: int16(p.PassTDS), + Interceptions: int16(p.PassINTs), + LongestPass: int16(p.LongestPass), + Sacks: int16(p.TimesSacked), + RushAttempts: int16(p.RushAttempts), + RushingYards: int16(p.RushYards), + RushingTDs: int16(p.RushTDs), + LongestRush: int16(p.LongestRush), + Fumbles: int16(p.Fumbles), + Targets: int16(p.Targets), + Catches: int16(p.Catches), + ReceivingYards: int16(p.ReceivingYards), + ReceivingTDs: int16(p.ReceivingTDs), + LongestReception: int16(p.LongestCatch), + Pancakes: int16(p.Pancakes), + SacksAllowed: int16(p.SacksAllowed), SoloTackles: p.SoloTackles, AssistedTackles: p.AssistedTackles, TacklesForLoss: p.TacklesForLoss, SacksMade: p.Sacks, - ForcedFumbles: p.ForcedFumbles, - RecoveredFumbles: p.RecoveredFumbles, - Safeties: p.Safeties, - DefensiveTDs: p.DefensiveTDs, - PassDeflections: p.PassesDefensed, - InterceptionsCaught: p.INTs, - LongestFG: p.LongestFG, - FGAttempts: p.FGAttempts, - FGMade: p.FGMade, - ExtraPointsAttempted: p.XPAttempts, - ExtraPointsMade: p.XPMade, - KickoffTouchbacks: p.KickoffTBs, - Punts: p.Punts, - PuntTouchbacks: p.PuntTBs, - PuntsInside20: p.PuntInside20, - KickReturns: p.KickoffReturns, - KickReturnTDs: p.KickReturnTDs, - KickReturnYards: p.KickReturnYards, - PuntReturns: p.PuntReturns, - PuntReturnYards: p.PuntReturnYards, - PuntReturnTDs: p.PuntReturnTDs, + ForcedFumbles: int16(p.ForcedFumbles), + RecoveredFumbles: int16(p.RecoveredFumbles), + Safeties: int16(p.Safeties), + DefensiveTDs: int16(p.DefensiveTDs), + PassDeflections: int16(p.PassesDefensed), + InterceptionsCaught: int16(p.INTs), + LongestFG: int16(p.LongestFG), + FGAttempts: int16(p.FGAttempts), + FGMade: int16(p.FGMade), + ExtraPointsAttempted: int16(p.XPAttempts), + ExtraPointsMade: int16(p.XPMade), + KickoffTouchbacks: int16(p.KickoffTBs), + Punts: int16(p.Punts), + PuntTouchbacks: int16(p.PuntTBs), + PuntsInside20: int16(p.PuntInside20), + KickReturns: int16(p.KickoffReturns), + KickReturnTDs: int16(p.KickReturnTDs), + KickReturnYards: int16(p.KickReturnYards), + PuntReturns: int16(p.PuntReturns), + PuntReturnYards: int16(p.PuntReturnYards), + PuntReturnTDs: int16(p.PuntReturnTDs), STSoloTackles: p.STSoloTackles, STAssistedTackles: p.STAssistedTackles, - PuntsBlocked: p.PuntsBlocked, - FGBlocked: p.FGBlocked, - Snaps: p.Snaps, - PlayedGame: p.Games, - StartedGame: p.GamesStarted, + PuntsBlocked: int16(p.PuntsBlocked), + FGBlocked: int16(p.FGBlocked), + Snaps: int16(p.Snaps), + PlayedGame: int16(p.Games), + StartedGame: int16(p.GamesStarted), WasInjured: p.IsInjured, InjuryType: p.InjuryType, WeeksOfRecovery: p.WeeksOfRecovery, diff --git a/structs/Recruit.go b/structs/Recruit.go index cd05017..60b1eb4 100644 --- a/structs/Recruit.go +++ b/structs/Recruit.go @@ -136,25 +136,25 @@ func (r *Recruit) AssignRecruitingModifier(recruitingMod float64) { func (r *Recruit) ProgressUnsignedRecruit(attr CollegePlayerProgressions) { r.Age++ - r.Agility = attr.Agility - r.Speed = attr.Speed - r.FootballIQ = attr.FootballIQ - r.Carrying = attr.Carrying - r.Catching = attr.Catching - r.RouteRunning = attr.RouteRunning - r.PassBlock = attr.PassBlock - r.RunBlock = attr.RunBlock - r.PassRush = attr.PassRush - r.RunDefense = attr.RunDefense - r.Tackle = attr.Tackle - r.ManCoverage = attr.ManCoverage - r.ZoneCoverage = attr.ZoneCoverage - r.KickAccuracy = attr.KickAccuracy - r.KickPower = attr.KickPower - r.PuntAccuracy = attr.PuntAccuracy - r.PuntPower = attr.PuntPower - r.ThrowAccuracy = attr.ThrowAccuracy - r.ThrowPower = attr.ThrowPower + r.Agility = int8(attr.Agility) + r.Speed = int8(attr.Speed) + r.FootballIQ = int8(attr.FootballIQ) + r.Carrying = int8(attr.Carrying) + r.Catching = int8(attr.Catching) + r.RouteRunning = int8(attr.RouteRunning) + r.PassBlock = int8(attr.PassBlock) + r.RunBlock = int8(attr.RunBlock) + r.PassRush = int8(attr.PassRush) + r.RunDefense = int8(attr.RunDefense) + r.Tackle = int8(attr.Tackle) + r.ManCoverage = int8(attr.ManCoverage) + r.ZoneCoverage = int8(attr.ZoneCoverage) + r.KickAccuracy = int8(attr.KickAccuracy) + r.KickPower = int8(attr.KickPower) + r.PuntAccuracy = int8(attr.PuntAccuracy) + r.PuntPower = int8(attr.PuntPower) + r.ThrowAccuracy = int8(attr.ThrowAccuracy) + r.ThrowPower = int8(attr.ThrowPower) } func (r *Recruit) GetOverall() { @@ -162,96 +162,96 @@ func (r *Recruit) GetOverall() { switch r.Position { case "QB": ovr = (0.1 * float64(r.Agility)) + (0.25 * float64(r.ThrowPower)) + (0.25 * float64(r.ThrowAccuracy)) + (0.1 * float64(r.Speed)) + (0.2 * float64(r.FootballIQ)) + (0.1 * float64(r.Strength)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "RB": ovr = (0.2 * float64(r.Agility)) + (0.05 * float64(r.PassBlock)) + (0.1 * float64(r.Carrying)) + (0.25 * float64(r.Speed)) + (0.15 * float64(r.FootballIQ)) + (0.2 * float64(r.Strength)) + (0.05 * float64(r.Catching)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "FB": ovr = (0.1 * float64(r.Agility)) + (0.1 * float64(r.PassBlock)) + (0.1 * float64(r.Carrying)) + (0.05 * float64(r.Speed)) + (0.15 * float64(r.FootballIQ)) + (0.2 * float64(r.Strength)) + (0.05 * float64(r.Catching)) + (0.25 * float64(r.RunBlock)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "WR": ovr = (0.15 * float64(r.FootballIQ)) + (0.2 * float64(r.Speed)) + (0.1 * float64(r.Agility)) + (0.05 * float64(r.Carrying)) + (0.05 * float64(r.Strength)) + (0.25 * float64(r.Catching)) + (0.2 * float64(r.RouteRunning)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "TE": ovr = (0.15 * float64(r.FootballIQ)) + (0.1 * float64(r.Speed)) + (0.1 * float64(r.Agility)) + (0.05 * float64(r.Carrying)) + (0.05 * float64(r.PassBlock)) + (0.15 * float64(r.RunBlock)) + (0.1 * float64(r.Strength)) + (0.20 * float64(r.Catching)) + (0.1 * float64(r.RouteRunning)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "OT", "OG": ovr = (0.15 * float64(r.FootballIQ)) + (0.05 * float64(r.Agility)) + (0.3 * float64(r.RunBlock)) + (0.2 * float64(r.Strength)) + (0.3 * float64(r.PassBlock)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "C": ovr = (0.2 * float64(r.FootballIQ)) + (0.05 * float64(r.Agility)) + (0.3 * float64(r.RunBlock)) + (0.15 * float64(r.Strength)) + (0.3 * float64(r.PassBlock)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "DT": ovr = (0.15 * float64(r.FootballIQ)) + (0.05 * float64(r.Agility)) + (0.25 * float64(r.RunDefense)) + (0.2 * float64(r.Strength)) + (0.15 * float64(r.PassRush)) + (0.2 * float64(r.Tackle)) + (0.1 * float64(r.Agility)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "DE": ovr = (0.15 * float64(r.FootballIQ)) + (0.1 * float64(r.Speed)) + (0.15 * float64(r.RunDefense)) + (0.1 * float64(r.Strength)) + (0.2 * float64(r.PassRush)) + (0.2 * float64(r.Tackle)) + (0.1 * float64(r.Agility)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "ILB": ovr = (0.2 * float64(r.FootballIQ)) + (0.1 * float64(r.Speed)) + (0.15 * float64(r.RunDefense)) + (0.1 * float64(r.Strength)) + (0.1 * float64(r.PassRush)) + (0.15 * float64(r.Tackle)) + (0.1 * float64(r.ZoneCoverage)) + (0.05 * float64(r.ManCoverage)) + (0.05 * float64(r.Agility)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "OLB": ovr = (0.15 * float64(r.FootballIQ)) + (0.1 * float64(r.Speed)) + (0.15 * float64(r.RunDefense)) + (0.1 * float64(r.Strength)) + (0.15 * float64(r.PassRush)) + (0.15 * float64(r.Tackle)) + (0.1 * float64(r.ZoneCoverage)) + (0.05 * float64(r.ManCoverage)) + (0.05 * float64(r.Agility)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "CB": ovr = (0.15 * float64(r.FootballIQ)) + (0.25 * float64(r.Speed)) + (0.05 * float64(r.Tackle)) + (0.05 * float64(r.Strength)) + (0.15 * float64(r.Agility)) + (0.15 * float64(r.ZoneCoverage)) + (0.15 * float64(r.ManCoverage)) + (0.05 * float64(r.Catching)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "FS": ovr = (0.2 * float64(r.FootballIQ)) + (0.2 * float64(r.Speed)) + (0.05 * float64(r.RunDefense)) + (0.05 * float64(r.Strength)) + (0.05 * float64(r.Catching)) + (0.05 * float64(r.Tackle)) + (0.15 * float64(r.ZoneCoverage)) + (0.15 * float64(r.ManCoverage)) + (0.1 * float64(r.Agility)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "SS": ovr = (0.15 * float64(r.FootballIQ)) + (0.2 * float64(r.Speed)) + (0.05 * float64(r.RunDefense)) + (0.05 * float64(r.Strength)) + (0.05 * float64(r.Catching)) + (0.1 * float64(r.Tackle)) + (0.15 * float64(r.ZoneCoverage)) + (0.15 * float64(r.ManCoverage)) + (0.1 * float64(r.Agility)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "K": ovr = (0.2 * float64(r.FootballIQ)) + (0.45 * float64(r.KickPower)) + (0.45 * float64(r.KickAccuracy)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "P": ovr = (0.2 * float64(r.FootballIQ)) + (0.45 * float64(r.PuntPower)) + (0.45 * float64(r.PuntAccuracy)) - r.Overall = int(ovr) + r.Overall = int8(ovr) case "ATH": ovr = (float64(r.FootballIQ) + float64(r.Speed) + float64(r.Agility) + float64(r.Carrying) + float64(r.Catching) + float64(r.RouteRunning) + @@ -260,7 +260,7 @@ func (r *Recruit) GetOverall() { float64(r.ZoneCoverage) + float64(r.ManCoverage) + float64(r.ThrowAccuracy) + float64(r.ThrowPower) + float64(r.PuntAccuracy) + float64(r.PuntPower) + float64(r.KickAccuracy) + float64(r.KickPower)) / 20 - r.Overall = int(ovr) + r.Overall = int8(ovr) } } diff --git a/structs/TeamRecruitingProfile.go b/structs/TeamRecruitingProfile.go index d2dd569..1a066b1 100644 --- a/structs/TeamRecruitingProfile.go +++ b/structs/TeamRecruitingProfile.go @@ -218,7 +218,7 @@ func (r *RecruitingTeamProfile) ResetStarCount() { r.FiveStars = 0 } -func (r *RecruitingTeamProfile) AddStarPlayer(stars int) { +func (r *RecruitingTeamProfile) AddStarPlayer(stars int8) { switch stars { case 3: r.ThreeStars += 1 diff --git a/structs/TransferPortal.go b/structs/TransferPortal.go index 6418f28..7828192 100644 --- a/structs/TransferPortal.go +++ b/structs/TransferPortal.go @@ -187,33 +187,33 @@ func (c *TransferPlayerResponse) Map(r CollegePlayer, ovr string, profiles []Tra c.Archetype = r.Archetype c.PositionTwo = r.PositionTwo c.ArchetypeTwo = r.ArchetypeTwo - c.Height = r.Height - c.Weight = r.Weight - c.Stars = r.Stars - c.Stamina = r.Stamina + c.Height = int(r.Height) + c.Weight = int(r.Weight) + c.Stars = int(r.Stars) + c.Stamina = int(r.Stamina) c.OverallGrade = ovr - c.Stamina = r.Stamina - c.Injury = r.Injury - c.FootballIQ = r.FootballIQ - c.Speed = r.Speed - c.Carrying = r.Carrying - c.Agility = r.Agility - c.Catching = r.Catching - c.RouteRunning = r.RouteRunning - c.ZoneCoverage = r.ZoneCoverage - c.ManCoverage = r.ManCoverage - c.Strength = r.Strength - c.Tackle = r.Tackle - c.PassBlock = r.PassBlock - c.RunBlock = r.RunBlock - c.PassRush = r.PassRush - c.RunDefense = r.RunDefense - c.ThrowPower = r.ThrowPower - c.ThrowAccuracy = r.ThrowAccuracy - c.KickAccuracy = r.KickAccuracy - c.KickPower = r.KickPower - c.PuntAccuracy = r.PuntAccuracy - c.PuntPower = r.PuntPower + c.Stamina = int(r.Stamina) + c.Injury = int(r.Injury) + c.FootballIQ = int(r.FootballIQ) + c.Speed = int(r.Speed) + c.Carrying = int(r.Carrying) + c.Agility = int(r.Agility) + c.Catching = int(r.Catching) + c.RouteRunning = int(r.RouteRunning) + c.ZoneCoverage = int(r.ZoneCoverage) + c.ManCoverage = int(r.ManCoverage) + c.Strength = int(r.Strength) + c.Tackle = int(r.Tackle) + c.PassBlock = int(r.PassBlock) + c.RunBlock = int(r.RunBlock) + c.PassRush = int(r.PassRush) + c.RunDefense = int(r.RunDefense) + c.ThrowPower = int(r.ThrowPower) + c.ThrowAccuracy = int(r.ThrowAccuracy) + c.KickAccuracy = int(r.KickAccuracy) + c.KickPower = int(r.KickPower) + c.PuntAccuracy = int(r.PuntAccuracy) + c.PuntPower = int(r.PuntPower) c.PotentialGrade = r.PotentialGrade c.Personality = r.Personality c.RecruitingBias = r.RecruitingBias diff --git a/structs/UnsignedPlayer.go b/structs/UnsignedPlayer.go index 63de5d6..6540731 100644 --- a/structs/UnsignedPlayer.go +++ b/structs/UnsignedPlayer.go @@ -31,26 +31,26 @@ func (up *UnsignedPlayer) GraduatePlayer() { func (up *UnsignedPlayer) Progress(attr CollegePlayerProgressions) { up.Age++ up.Year++ - up.Agility = attr.Agility - up.Speed = attr.Speed - up.FootballIQ = attr.FootballIQ - up.Carrying = attr.Carrying - up.Catching = attr.Catching - up.RouteRunning = attr.RouteRunning - up.PassBlock = attr.PassBlock - up.RunBlock = attr.RunBlock - up.PassRush = attr.PassRush - up.RunDefense = attr.RunDefense - up.Tackle = attr.Tackle - up.Strength = attr.Strength - up.ManCoverage = attr.ManCoverage - up.ZoneCoverage = attr.ZoneCoverage - up.KickAccuracy = attr.KickAccuracy - up.KickPower = attr.KickPower - up.PuntAccuracy = attr.PuntAccuracy - up.PuntPower = attr.PuntPower - up.ThrowAccuracy = attr.ThrowAccuracy - up.ThrowPower = attr.ThrowPower + up.Agility = int8(attr.Agility) + up.Speed = int8(attr.Speed) + up.FootballIQ = int8(attr.FootballIQ) + up.Carrying = int8(attr.Carrying) + up.Catching = int8(attr.Catching) + up.RouteRunning = int8(attr.RouteRunning) + up.PassBlock = int8(attr.PassBlock) + up.RunBlock = int8(attr.RunBlock) + up.PassRush = int8(attr.PassRush) + up.RunDefense = int8(attr.RunDefense) + up.Tackle = int8(attr.Tackle) + up.Strength = int8(attr.Strength) + up.ManCoverage = int8(attr.ManCoverage) + up.ZoneCoverage = int8(attr.ZoneCoverage) + up.KickAccuracy = int8(attr.KickAccuracy) + up.KickPower = int8(attr.KickPower) + up.PuntAccuracy = int8(attr.PuntAccuracy) + up.PuntPower = int8(attr.PuntPower) + up.ThrowAccuracy = int8(attr.ThrowAccuracy) + up.ThrowPower = int8(attr.ThrowPower) up.HasProgressed = true } @@ -62,7 +62,7 @@ func (up *UnsignedPlayer) MapFromRecruit(r Recruit) { up.HighSchool = r.HighSchool up.City = r.City up.State = r.State - up.Year = r.Age - 17 + up.Year = int(r.Age) - 17 up.IsRedshirt = false up.IsRedshirting = false up.HasGraduated = false diff --git a/util/GenerationUtil.go b/util/GenerationUtil.go index afeb450..311d477 100644 --- a/util/GenerationUtil.go +++ b/util/GenerationUtil.go @@ -50,13 +50,13 @@ func GenerateNormalizedIntFromMeanStdev(mean, stdDev float64) float64 { return float64(intNum) } -func RegressValue(val, min, max int) int { - newVal := val - GenerateNormalizedIntFromRange(min, max) +func RegressValue(val int8, min, max int) int8 { + newVal := int(val) - GenerateNormalizedIntFromRange(min, max) if newVal < 1 { return 1 } - return newVal + return int8(newVal) } func PickFromStringList(list []string) string { @@ -110,8 +110,8 @@ func GenerateNFLPotential(pot int) int { return GenerateIntFromRange(floor, ceil) } -func GetWeightedPotentialGrade(rating int) string { - weightedRating := GenerateIntFromRange(rating-15, rating+15) +func GetWeightedPotentialGrade(rating int8) string { + weightedRating := GenerateIntFromRange(int(rating)-15, int(rating)+15) if weightedRating > 100 { weightedRating = 99 } else if weightedRating < 0 {