/// <summary> /// Loads the lock state of the achievement. /// </summary> private bool LoadAchievUnlocked_CollectChars02() { string unlockedValue = KeyValueStorage.GetValue(ACHIEV_COLLECT_CHARS_02_KEY); return unlockedValue == "1" ? true : false; }
/// <summary> /// Loads the next gift time. /// </summary> private long LoadNextGiftTime() { string nextGiftTimeValue = KeyValueStorage.GetValue(NEXT_GIFT_TIME_KEY); try { return long.Parse(nextGiftTimeValue); } catch { return 0; } }
/// <summary> /// Loads the gift count. /// </summary> private int LoadGiftCount() { string giftCountValue = KeyValueStorage.GetValue(GIFT_COUNT_KEY); try { return int.Parse(giftCountValue); } catch { return 0; } }
/// <summary> /// Loads the orientation preference. /// </summary> private ScreenOrientation LoadOrientationPref() { string orientationValue = KeyValueStorage.GetValue(ORIENTATION_PREF_KEY); try { return (ScreenOrientation)int.Parse(orientationValue); } catch { return ScreenOrientation.Unknown; } }
/// <summary> /// Loads the mute state. /// </summary> private bool LoadMuteState() { string muteValue = KeyValueStorage.GetValue(MUTE_KEY); return muteValue == "1" ? true : false; }
/// <summary> /// Loads the top score. /// </summary> private int LoadTopScore() { string topScoreValue = KeyValueStorage.GetValue(TOP_SCORE_KEY); try { return int.Parse(topScoreValue); } catch { return 0; } }
protected virtual string _getLastCompletedInnerWorld(World world) { string key = keyLastCompletedInnerWorld(world.ID); return(KeyValueStorage.GetValue(key)); }
/// <summary> /// Retrieves the given <c>World</c>'s assigned reward. /// </summary> /// <returns>The assigned reward to retrieve.</returns> /// <param name="world"><c>World</c> whose reward is to be retrieved.</param> protected virtual string _getAssignedReward(World world) { string key = keyReward(world.ID); return(KeyValueStorage.GetValue(key)); }