Ejemplo n.º 1
0
 /// <summary>
 /// (Cross-Game compatible) Return all AbilityModel behaviors from this tower, if it has any
 /// </summary>
 public static List <AbilityModel> GetAbilites(this TowerModel towerModel)
 {
     return(towerModel.GetAbilities());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// (Cross-Game compatible) Return the first ability on the tower
 /// </summary>
 public static AbilityModel GetAbility(this TowerModel towerModel)
 {
     return(towerModel.GetAbilities().FirstOrDefault());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// (Cross-Game compatible) Return a specific Ability of the tower.
 /// </summary>
 /// <param name="index">Index of the ability you want.</param>
 public static AbilityModel GetAbility(this TowerModel towerModel, int index)
 {
     return(towerModel.GetAbilities()[index]);
 }