示例#1
0
        public void Update(ObjectModifiedMessage msg)
        {
            if (msg == null) throw new ArgumentNullException("msg");
            var item = GetItem([email protected]);

            if (item == null)
                logger.Warn("Try to update item {0} but item not found !", [email protected]);
            else
                item.Update(msg.@object);
        }
 public static void HandleObjectModifiedMessage(Bot bot, ObjectModifiedMessage message)
 {
     bot.Character.Inventory.Update(message);
 }