コード例 #1
0
    public string getPrefsKey_2(Keys_2 key, int profileId)
    {
        string str = "U_";

        if (profileId > -1)
        {
            str += profileId;
        }
        else
        {
            str += UsersController.Instance.CurrentProfileId;
        }
        str += "_";

        switch (key)
        {
        case Keys_2.LevelScore:
            return(str + "LevelScore");

        case Keys_2.LevelStars:
            return(str + "LevelStars");

        case Keys_2.LevelCount:
            return(str + "LevelCount");

        case Keys_2.MonsterLevelFaled:
            return(str + "MonsterLevelFaled");

        case Keys_2.MonsterLastUsed:
            return(str + "MonsterLastUsed");

        case Keys_2.LetterGroup:
            return(str + "LastLetterGroup");

        case Keys_2.MonsterEmotionType:
            return(str + "MonsterEmotionType");

        case Keys_2.LevelOpenIndex:
            return(str + "LevelOpenIndex");

        case Keys_2.Monster:
            return(str + "Monster");

        case Keys_2.MonsterReady:
            return(str + "MonsterReady");

        case Keys_2.MonsterGage:
            return(str + "MonsterGage");

        case Keys_2.MonsterGageValue:
            return(str + "MonsterGageValue");

        case Keys_2.LastPlayingLevel:
            return(str + "LastPlayingLevel");

        case Keys_2.LastPettingZoneTutorial:
            return(str + "LastPettingZoneTutorial");
        }
        return(str);
    }
コード例 #2
0
    public string getPrefsKey_2(Keys_2 key, int profileId, string val)
    {
        string str = getPrefsKey_2(key, profileId);

        if (!string.IsNullOrEmpty(val))
        {
            str += "_" + val;
        }
        return(str);
    }
コード例 #3
0
 /// <returns>
 /// true if the Collection(Tkey_1, Tkey_2, Tvalue) contains an element with
 /// the part of composite key (Tkey_2); otherwise, false.
 /// </returns>
 public bool ContainsKey(Tkey_2 key_2)
 {
     return(Keys_2.Contains(key_2));
 }