public void Load(IUserProfileModel userProfileModel) { IUserInventory inventory = LoadInventory(); IUserStats userStats = LoadUserStats(); IGameOptions gameOptions = LoadGameOptions(); userProfileModel.UserProfile = new UserProfile(inventory, userStats, gameOptions); }
private void SaveInventory(IUserInventory inventory) { Converter.Serialize(inventory.CityProgressData, StringConstants.PlayerPrefsKeys.CitiesData); SaveCurrencies(inventory.Currencies); }
public UserProfile(IUserInventory inventory, IUserStats userStats, IGameOptions gameOptions) { UserInventory = inventory; UserStats = userStats; GameOptions = gameOptions; }