public void SaveUserProfile (Kreyos_User_Profile p_profile) { string profilePrefix = KREYOS_PROFILE + "_" + this.KreyosPrefsKey; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.ID]] = p_profile.ID; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.Email]] = p_profile.Email; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.FacebookID]] = p_profile.FacebookID; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.TwitterID]] = p_profile.TwitterID; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.GoogleID]] = p_profile.GoogleID; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.Password]] = p_profile.Password; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.Name]] = p_profile.Name; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.Gender]] = p_profile.Gender; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.Height]] = p_profile.Height; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.Weight]] = p_profile.Weight; m_prefs[profilePrefix + SaveManager.UserProfileKeys[UserProfile.Birthday]] = p_profile.Birthday; //~~~temp save // this shouldn't be called here this.Save(); }
public void AddProfile (Kreyos_User_Profile p_profile) { //~~~save data to prefs PrefsManager.Instance.SaveUserProfile(p_profile); }