Exemplo n.º 1
0
        //以下为协议相关处理数据-----------------------------------------------------------------//
        //购买非限制物品
        public void BuyNormalGoods(SelectedGoods goods)
        {
            MemoryStream msdata = new MemoryStream();

            Module_15.write_15_1(msdata, goods.id, goods.num, goods.type, goods.subType);
            AppNet.gameNet.send(msdata, 15, 1);
        }
Exemplo n.º 2
0
        //购买限购物品
        public void BuyLimitGoods(SelectedGoods goods)
        {
            MemoryStream msdata = new MemoryStream();

            Module_15.write_15_3(msdata, goods.id, goods.num);
            AppNet.gameNet.send(msdata, 15, 3);
        }
Exemplo n.º 3
0
        //设置当前选中物品
        public void setCurrentGoods(uint type, SysVipMallVo vipmallVo, SysItemVo itemVo)
        {
            clickType      = type;
            currentGoodsVo = vipmallVo;
            currentItemVo  = itemVo;

            currentSelectGoods         = new SelectedGoods();
            currentSelectGoods.id      = (uint)vipmallVo.id;
            currentSelectGoods.type    = (ushort)vipmallVo.type;
            currentSelectGoods.subType = (ushort)vipmallVo.small_type;
            currentSelectGoods.num     = 1;

            isOpen = true;
            alertViewGameObject.SetActive(true);
            alertPlayReverse();
            setCurrentGoodsInfo();
            setCurretnCostIcon();

            Singleton <StoreShopInputView> .Instance.LimitBuyMax = vipmallVo.buy_max;
        }