Пример #1
0
        private static ShopDataGroup GetShopDataGroup(this ModelManager mmng)
        {
            ShopDataGroup result = null;

            if (mmng != null && mmng.ValidData(EModelType.Model_allShopInfoList))
            {
                result = mmng.GetData <ShopDataGroup>(EModelType.Model_allShopInfoList);
            }
            return(result);
        }
Пример #2
0
        public static List <GoodsData> Get_ShopGoodsList(this ModelManager mmng)
        {
            ShopDataGroup shopDataGroup = mmng.GetShopDataGroup();

            if (shopDataGroup == null)
            {
                SendMsgManager.Instance.SendMsg(MobaGameCode.GetShopNew, null, new object[0]);
                return(null);
            }
            return(shopDataGroup.goodsList);
        }