Exemple #1
0
        public static bool IsHero(this TowerDetailsModel towerDetailsModel)
        {
            var heroDetailsModel = towerDetailsModel.TryCast <HeroDetailsModel>();
            var isHero           = heroDetailsModel != null;

            return(isHero);
        }
Exemple #2
0
 /// <summary>
 /// Get the ShopTowerDetails for this TowerDetailModel
 /// </summary>
 public static ShopTowerDetailsModel GetShopTowerDetails(this TowerDetailsModel towerDetailsModel)
 {
     return(towerDetailsModel.TryCast <ShopTowerDetailsModel>());
 }