예제 #1
0
 public UnitConversionKeySlot(Unit from, Unit to)
 {
     this.fromType = from.UnitType;
     this.toType   = to.UnitType;
 }
예제 #2
0
 /// <summary>
 /// Returns all registered units of the given type.
 /// </summary>
 public static IList <Unit> GetUnits(UnitType unitType)
 {
     return(Instance._unitsByType[unitType]);
 }