Esempio n. 1
0
        public bool Buy(int StationId, int TypeId, double Price, int quantity, DirectOrderRange range, int minVolume, int duration) //, bool useCorp)
        {
            //if (!HasSupportInstances())
            //{
            //    Log("DirectEve: Error: This method requires a support instance.");
            //    return false;
            //}
            var pyRange = GetRange(range);

            //def BuyStuff(self, stationID, typeID, price, quantity, orderRange = None, minVolume = 1, duration = 0, useCorp = False):
            return(ThreadedLocalSvcCall("marketQuote", "BuyStuff", StationId, TypeId, Price, quantity, pyRange, minVolume, duration)); //, useCorp);
        }
Esempio n. 2
0
        internal PyObject GetRange(DirectOrderRange range)
        {
            switch (range)
            {
            case DirectOrderRange.SolarSystem:
                return(Const.RangeSolarSystem);

            case DirectOrderRange.Constellation:
                return(Const.RangeConstellation);

            case DirectOrderRange.Region:
                return(Const.RangeRegion);

            default:
                return(Const.RangeStation);
            }
        }
Esempio n. 3
0
 //, bool useCorp)
 public bool Buy(int StationId, int TypeId, double Price, int quantity, DirectOrderRange range, int minVolume, int duration)
 {
     //if (!HasSupportInstances())
     //{
     //    Log("DirectEve: Error: This method requires a support instance.");
     //    return false;
     //}
     var pyRange = GetRange(range);
     //def BuyStuff(self, stationID, typeID, price, quantity, orderRange = None, minVolume = 1, duration = 0, useCorp = False):
     return ThreadedLocalSvcCall("marketQuote", "BuyStuff", StationId, TypeId, Price, quantity, pyRange, minVolume, duration); //, useCorp);
 }
Esempio n. 4
0
 internal PyObject GetRange(DirectOrderRange range)
 {
     switch (range)
     {
         case DirectOrderRange.SolarSystem:
             return Const.RangeSolarSystem;
         case DirectOrderRange.Constellation:
             return Const.RangeConstellation;
         case DirectOrderRange.Region:
             return Const.RangeRegion;
         default:
             return Const.RangeStation;
     }
 }
Esempio n. 5
0
 public bool Buy(int quantity, DirectOrderRange range)
 {
     var pyRange = DirectEve.GetRange(range);
     return DirectEve.ThreadedLocalSvcCall("marketQuote", "BuyStuff", StationId, TypeId, Price, quantity, pyRange);
 }
Esempio n. 6
0
        public bool Buy(int quantity, DirectOrderRange range)
        {
            var pyRange = DirectEve.GetRange(range);

            return(DirectEve.ThreadedLocalSvcCall("marketQuote", "BuyStuff", StationId, TypeId, Price, quantity, pyRange));
        }