Exemplo n.º 1
0
 public Unit(CharaID id) 
 {
     this.id = id;
     acts = new Act[6];
     affinity = new Affinity[Enum.GetNames(typeof(Terrain)).Length - 1];
     ability = new List<Ability>();
     artifact = new Artifact[2];
 }
Exemplo n.º 2
0
 public static Unit SetUnit(CharaID chara, int level)
 {
     string name = "Set" + chara.ToString();
     MethodInfo mi = typeof(UnitSetting).GetMethod(name, BindingFlags.NonPublic | BindingFlags.Static);
     return (Unit)mi.Invoke(null, new object[] {level});
 }