예제 #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());
 }
예제 #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());
 }
예제 #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]);
 }