Example #1
0
    public bool AddToExpImpOrders(Order order)
    {
        if (ExpImpOrders.Count < maxAmtOfExpImpOrders)
        {
            if (order.DestinyBuild == "Ship")
            {
                if (ExportsOrders == null)
                {
                    ExportsOrders = new List <Order>();
                }

                ExportsOrders.Add(order);
            }

            ExpImpOrders.Add(order);
            _fresh.Add(order);
            return(true);
        }
        else
        {
            //todo notify
            Debug.Log("Will not handle over 10 Export Import orders at the same time . 10 is the max");
            Dialog.OKDialog(H.Info, Languages.ReturnString("Ten Orders Limit"));
            return(false);
        }
    }