Exemplo n.º 1
0
 public bool PurchasePropellent(float propellent_mass, Market market)
 {
     return(market.Purchase(Craft.GetOwner(),
                            Craft.Cargo,
                            Propellent,
                            PropellentMassToUnits(propellent_mass)));
 }
Exemplo n.º 2
0
    public bool SellPropellent(float propellent_mass, Market market)
    {
        if (PropellentMass < propellent_mass)
        {
            propellent_mass = PropellentMass;
        }

        return(market.Sell(Craft.GetOwner(), Craft.Cargo, Propellent,
                           PropellentMassToUnits(propellent_mass)));
    }