Beispiel #1
0
        private void AddToTradeables(Thing t, Transactor trans)
        {
            Tradeable tradeable = TransferableUtility.TradeableMatching(t, tradeables);

            if (tradeable == null)
            {
                tradeable = ((!(t is Pawn)) ? new Tradeable() : new Tradeable_Pawn());
                tradeables.Add(tradeable);
            }
            tradeable.AddThing(t, trans);
        }
Beispiel #2
0
        private void AddToTradeables(Thing t, Transactor trans)
        {
            Tradeable tradeable = TransferableUtility.TradeableMatching(t, this.tradeables);

            if (tradeable == null)
            {
                Pawn pawn = t as Pawn;
                if (pawn != null)
                {
                    tradeable = new Tradeable_Pawn();
                }
                else
                {
                    tradeable = new Tradeable();
                }
                this.tradeables.Add(tradeable);
            }
            tradeable.AddThing(t, trans);
        }