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