예제 #1
0
파일: Engine.cs 프로젝트: kevinwall1992/Sol
 public bool PurchasePropellent(float propellent_mass, Market market)
 {
     return(market.Purchase(Craft.GetOwner(),
                            Craft.Cargo,
                            Propellent,
                            PropellentMassToUnits(propellent_mass)));
 }
예제 #2
0
파일: Engine.cs 프로젝트: kevinwall1992/Sol
    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)));
    }