Esempio n. 1
0
    public static int BuyGoods(IntPtr l)
    {
        int result;

        try
        {
            DataSectionRechargeStore dataSectionRechargeStore = (DataSectionRechargeStore)LuaObject.checkSelf(l);
            int goodsId;
            LuaObject.checkType(l, 2, out goodsId);
            dataSectionRechargeStore.BuyGoods(goodsId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }