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); }
internal void OnOpenShopWindow(Shop shop) { OpenShopWindow.Raise(this, new OpenShopWindowEventArgs { Shop = shop }); }
internal void OnOpenShopWindow(Shop shop) { OpenShopWindow.Raise(this, new OpenShopWindowEventArgs { Shop = shop }); }