示例#1
0
        public static int GetRarity(this AssetDat data)
        {
            switch (data.Rarity)
            {
            case "Mythic":
                return(6);

            case "Legendary":
                return(5);

            case "Epic":
                return(4);

            case "Rare":
                return(3);

            case "UnCommon":
                return(2);

            case "Common":
                return(1);

            case null:
                return(0);

            default:
                return(-1);
            }
        }
示例#2
0
 public static bool IsHero(this AssetDat data)
 {
     return(data.ClassType == "Hero");
 }
示例#3
0
 public static bool IsDefender(this AssetDat data)
 {
     return(data.ClassType == "Defender");
 }
示例#4
0
 public static bool IsWeapon(this AssetDat data)
 {
     return(data.ClassType == "Weapon");
 }