Ejemplo n.º 1
0
 public void Configure(Design design)
 {
     foreach (UnitComponent c in design.Components)
     {
         ComponentEngine engine = c.Component as ComponentEngine;
         if (engine != null)
         {
             Tonnage  = engine.Tonnage / 10;
             BaseCost = engine.EngineRating / 10;
         }
     }
 }
Ejemplo n.º 2
0
        public override object Clone()
        {
            ComponentEngine retval = base.Clone() as ComponentEngine;

            return(retval);
        }