示例#1
0
        public static Image GetCardImage(int cid, int width, int height)
        {
            switch (ConfigIdManager.GetCardType(cid))
            {
            case CardTypes.Monster: return(MonsterBook.GetMonsterImage(cid, width, height));

            case CardTypes.Weapon: return(WeaponBook.GetWeaponImage(cid, width, height));

            case CardTypes.Spell: return(SpellBook.GetSpellImage(cid, width, height));
            }
            return(SpecialCards.NullCard.GetCardImage(width, height));
        }
示例#2
0
 public Image GetImage(int width, int height)
 {
     return(WeaponBook.GetWeaponImage(avatar.Id, width, height));
 }