Esempio n. 1
0
    public static CardInfo FromId(int id)
    {
        if (id < 0 || id >= 52)
        {
            throw new Exception("id (" + id + ") is out of range");
        }

        return(new CardInfo(CardUtils.GetKindById(id), CardUtils.GetValueById(id)));
    }