private static void AddTrader(Location location, XmlNode traderHere) { if (traderHere == null) { return; } location.TraderHere = TraderFactory.GetTraderByID(traderHere.AttributeAsInt("ID")); }
private static void AddTrader(Location location, XmlNodeList traderNodes) { if (traderNodes == null) { return; } foreach (XmlNode traderNode in traderNodes) { location.TraderHere = TraderFactory.GetTraderByID(traderNode.AttributeAsInt("ID")); } }