コード例 #1
0
        private static void AddTrader(Location location, XmlNode traderHere)
        {
            if (traderHere == null)
            {
                return;
            }

            location.TraderHere = TraderFactory.GetTraderByID(traderHere.AttributeAsInt("ID"));
        }
コード例 #2
0
        private static void AddTrader(Location location, XmlNodeList traderNodes)
        {
            if (traderNodes == null)
            {
                return;
            }

            foreach (XmlNode traderNode in traderNodes)
            {
                location.TraderHere =
                    TraderFactory.GetTraderByID(traderNode.AttributeAsInt("ID"));
            }
        }