Example #1
0
        public static void ExchangeShopStockStartedMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            ExchangeShopStockStartedMessage msg = (ExchangeShopStockStartedMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            account.actualizeshop(msg.ObjectsInfos.ToList());
            if (account.NeedToAddItem())
            {
                account.addItemToShop();
            }
        }