Пример #1
0
        public ITruck GetReadyTruck()
        {
            ITruck     departing     = this.Truck;
            IContainer ore_container = this.ProductsToShip.First();

            ore_container.AddContent(ore_container.MaxCapacity - ore_container.CurrentAmount);

            departing.AddContainer(ore_container);

            if (this.Truck == null)
            {
                return(new Truck(new Vector2(200, 200), truckTexure, oreContainer));
            }
            return(null);
        }