private void ParseServerOpenShopWindow(InMessage message)
        {
            var shop = new Shop(message.ReadString());
            var size = message.ReadUShort();
            for (uint i = 0; i < size; ++i)
            {
                var shopItem = new ShopItem();
                shopItem.Id = message.ReadUShort();
                shopItem.SubType = message.ReadByte();
                shopItem.Name = message.ReadString();
                shopItem.Weight = message.ReadUInt();
                shopItem.BuyPrice = message.ReadUInt();
                shopItem.SellPrice = message.ReadUInt();

                shop.Items.Add(shopItem);
            }

            client.OnOpenShopWindow(shop);
        }
Exemplo n.º 2
0
 internal void OnOpenShopWindow(Shop shop)
 {
     OpenShopWindow.Raise(this, new OpenShopWindowEventArgs { Shop = shop });
 }
Exemplo n.º 3
0
 internal void OnOpenShopWindow(Shop shop)
 {
     OpenShopWindow.Raise(this, new OpenShopWindowEventArgs {
         Shop = shop
     });
 }