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); } }
public static bool IsHero(this AssetDat data) { return(data.ClassType == "Hero"); }
public static bool IsDefender(this AssetDat data) { return(data.ClassType == "Defender"); }
public static bool IsWeapon(this AssetDat data) { return(data.ClassType == "Weapon"); }