Пример #1
0
 public void Update(ObjectsAddedMessage msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     foreach (var item in msg.@object)
     {
         AddItem(new Item(item));
     }
 }
Пример #2
0
 public static void HandleObjectsAddedMessage(Bot bot, ObjectsAddedMessage message)
 {
     bot.Character.Inventory.Update(message);
 }