コード例 #1
0
 public Ability(string id, string name, int manaCost, int range, bool ignoreLineOfSight, AbilityEffect[] effects, AbilityAOE areaOfEffect, bool targetFriends = false, bool targetEnemies = true)
 {
     this.ID            = id;
     this.Name          = name;
     this.ManaCost      = manaCost;
     this.range         = range;
     this.ignoreLoS     = ignoreLineOfSight;
     this.effects       = effects;
     this.area          = areaOfEffect;
     this.targetFriends = targetFriends;
     this.targetEnemies = targetEnemies;
 }
コード例 #2
0
 private static void AddAbility(string id, string name, int mana, int range, bool ignoreLineOfSight, AbilityEffect[] effects, AbilityAOE areaOfEffect)
 {
     abilities.Add(id, new Ability(id, name, mana, range, ignoreLineOfSight, effects, areaOfEffect));
 }