Exemplo n.º 1
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent o = new RechargeStoreComponent();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 2
0
    public static int DeInit(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent rechargeStoreComponent = (RechargeStoreComponent)LuaObject.checkSelf(l);
            rechargeStoreComponent.DeInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 3
0
    public static int __callBase_PostDeSerialize(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent rechargeStoreComponent = (RechargeStoreComponent)LuaObject.checkSelf(l);
            rechargeStoreComponent.m_luaExportHelper.__callBase_PostDeSerialize();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 4
0
    public static int GetDSVersion(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent rechargeStoreComponent = (RechargeStoreComponent)LuaObject.checkSelf(l);
            ushort dsversion = rechargeStoreComponent.GetDSVersion();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dsversion);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 5
0
    public static int DeSerialize(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent rechargeStoreComponent = (RechargeStoreComponent)LuaObject.checkSelf(l);
            DSRechargeStoreNtf     msg;
            LuaObject.checkType <DSRechargeStoreNtf>(l, 2, out msg);
            rechargeStoreComponent.DeSerialize(msg);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 6
0
    public static int __callBase_BuyGoods(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent rechargeStoreComponent = (RechargeStoreComponent)LuaObject.checkSelf(l);
            int goodsId;
            LuaObject.checkType(l, 2, out goodsId);
            rechargeStoreComponent.m_luaExportHelper.__callBase_BuyGoods(goodsId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 7
0
    public static int __callBase_Tick(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent rechargeStoreComponent = (RechargeStoreComponent)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            rechargeStoreComponent.m_luaExportHelper.__callBase_Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 8
0
    public static int GetGoodsIcon(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent rechargeStoreComponent = (RechargeStoreComponent)LuaObject.checkSelf(l);
            int goodsId;
            LuaObject.checkType(l, 2, out goodsId);
            string goodsIcon = rechargeStoreComponent.GetGoodsIcon(goodsId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, goodsIcon);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 9
0
    public static int GetCrystalRepeatlyBoughtRewardNums(IntPtr l)
    {
        int result;

        try
        {
            RechargeStoreComponent rechargeStoreComponent = (RechargeStoreComponent)LuaObject.checkSelf(l);
            int goodsId;
            LuaObject.checkType(l, 2, out goodsId);
            int crystalRepeatlyBoughtRewardNums = rechargeStoreComponent.GetCrystalRepeatlyBoughtRewardNums(goodsId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, crystalRepeatlyBoughtRewardNums);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 10
0
    public static int BuyGoods(IntPtr l)
    {
        int result;

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