예제 #1
0
    public static QualifyInformation GetRandomName(int level)
    {
        TableQualifyData[] targets = Array.FindAll(table, i => i.Level == level);
        TableQualifyData   tar     = targets[UnityEngine.Random.Range(0, targets.Length)];
        QualifyInformation r       = new QualifyInformation();

        AttackValue(r, tar);

        return(r);
    }
예제 #2
0
    private static void AttackValue(QualifyInformation r, TableQualifyData tar)
    {
        r.ObjNo = tar.ObjNo;

        if (GameStateInformation.IsEnglish == false)
        {
            r.Name = tar.Name;
        }
        else
        {
            r.Name = tar.NameEn;
        }
    }
예제 #3
0
    public static QualifyInformation GetValue(ushort objno)
    {
        TableQualifyData tar = Array.Find(table, i => i.ObjNo == objno);

        QualifyInformation r = new QualifyInformation();

        if (CommonFunction.IsNull(tar) == true)
        {
            return(r);
        }
        AttackValue(r, tar);

        return(r);
    }