Exemple #1
0
        // WORK IN PROGRESS AHHHHHHHHH
        public EverythingVM LoadGame(string playerID)
        {
            var vm = new EverythingVM();

            vm.Player         = playerrepo.FindById(playerID);
            vm.TotalBuildings = buildrepo.GrabBuildings(vm.Player.PlayerID.ToString());
            vm.AllUpgrades    = upgraderepo.GrabUpgrades(vm.Player.PlayerID.ToString());
            vm.PPS            = CurrentPPS(vm);

            return(vm);
        }