//better way to do this plz //the settings in the gameinfo object affect match calculations, so if edited in one place must be edited in all public void GetData(TableTennisRazerContext _context) { _context.Entry(this).Reload(); if (Mean == 0 && StandardDeviation == 0) { Mean = GameInfo.DefaultGameInfo.InitialMean; StandardDeviation = GameInfo.DefaultGameInfo.InitialStandardDeviation; _context.Person.Add(this); } }
public LeaderboardModel(TableTennisRazer.Models.TableTennisRazerContext context) { _context = context; }
public CreateModel(TableTennisRazer.Models.TableTennisRazerContext context) { _context = context; }
public ResultModel(TableTennisRazer.Models.TableTennisRazerContext context) { _context = context; }
public IndexModel(TableTennisRazer.Models.TableTennisRazerContext context) { _context = context; }