Ejemplo n.º 1
0
        public Port(PortModel p, LocatorService ls)
            : base(p, ls)
        {
            Cargo = new CargoHandlerPort_ROVM(p.Cargo);


            CashFromSales = p.CashFromSales;

            _servicesForSale = new Dictionary <PortServiceTypes, PortService>();
            foreach (var o in p.ServicesForSale)
            {
                _servicesForSale.Add(o.OutfitType, o);
            }

            IsMoon = p.IsMoon;

            Size = p.Size;
        }
Ejemplo n.º 2
0
        public Port(int ID, Planet moon, string portName, List <ShipStats> allShipStats, LocatorService ls)
            : base(ID, ls)
        {
            var r = new Random(6546345);

            Size = r.Next(1, 3);

            Distance    = moon.Distance;
            MaxTrip     = moon.MaxTrip;
            CurrentTrip = moon.CurrentTrip;
            IDToOrbit   = moon.IDToOrbit;
            IsMoon      = true;

            ParentAreaID = moon.ParentAreaID;
            AreaName     = portName;

            _servicesForSale.Add(PortServiceTypes.HullRepair, new ShipRepair(this));
            Cargo = new CargoHandlerPort_ROVM(_model.Cargo);
        }