示例#1
0
        public void ItemLooted()
        {
            ItemLootedEvent drop   = null;
            var             parser = new LogParser(PLAYER);

            parser.OnItemLooted += (args) => drop = args;

            drop = null;
            parser.ParseLine("[Tue Apr 26 20:26:20 2016] --You have looted a Bixie Chitin Sword.--");
            Assert.NotNull(drop);
            Assert.Equal(PLAYER, drop.Looter);
            Assert.Equal("a Bixie Chitin Sword", drop.Item);

            drop = null;
            parser.ParseLine("[Tue Apr 26 20:24:39 2016] --Rumstil has looted a Alluring Flower.--");
            Assert.NotNull(drop);
            Assert.Equal("Rumstil", drop.Looter);
            Assert.Equal("a Alluring Flower", drop.Item);
        }
示例#2
0
 private void TrackItemDrop(ItemLootedEvent drop)
 {
     Add(drop.Looter);
 }