Exemple #1
0
    public static int SelectCard(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            int cardPoolId;
            LuaObject.checkType(l, 2, out cardPoolId);
            bool isSingleSelect;
            LuaObject.checkType(l, 3, out isSingleSelect);
            bool isUsingTicket;
            LuaObject.checkType(l, 4, out isUsingTicket);
            int guaranteedAccumulatedValue;
            LuaObject.checkType(l, 5, out guaranteedAccumulatedValue);
            int guaranteedSelectCardCount;
            LuaObject.checkType(l, 6, out guaranteedSelectCardCount);
            selectCardComponent.SelectCard(cardPoolId, isSingleSelect, isUsingTicket, guaranteedAccumulatedValue, guaranteedSelectCardCount);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #2
0
    public static int __callBase_PostDeSerialize(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            selectCardComponent.m_luaExportHelper.__callBase_PostDeSerialize();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent o = new SelectCardComponent();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #4
0
    public static int DeInit(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            selectCardComponent.DeInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #5
0
    public static int GetDSVersion(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            ushort dsversion = selectCardComponent.GetDSVersion();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dsversion);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #6
0
    public static int GetActivityCardPool(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            List <CardPool>     activityCardPool    = selectCardComponent.GetActivityCardPool();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, activityCardPool);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #7
0
    public static int __callBase_GetAllOpenActivityCardPool(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            List <int>          o = selectCardComponent.m_luaExportHelper.__callBase_GetAllOpenActivityCardPool();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #8
0
    public static int __callBase_Tick(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            selectCardComponent.m_luaExportHelper.__callBase_Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #9
0
    public static int __callBase_InitCardPoolConfigs(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            List <CardPool>     cardPools;
            LuaObject.checkType <List <CardPool> >(l, 2, out cardPools);
            selectCardComponent.m_luaExportHelper.__callBase_InitCardPoolConfigs(cardPools);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #10
0
    public static int DeSerialize(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            DSSelectCardNtf     msg;
            LuaObject.checkType <DSSelectCardNtf>(l, 2, out msg);
            selectCardComponent.DeSerialize(msg);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #11
0
    public static int __callBase_SelectHeroCard(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            int heroId;
            LuaObject.checkType(l, 2, out heroId);
            selectCardComponent.m_luaExportHelper.__callBase_SelectHeroCard(heroId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #12
0
    public static int __callBase_FindOperationalActivityByActivityCardPoolId(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            int activityCardPoolId;
            LuaObject.checkType(l, 2, out activityCardPoolId);
            OperationalActivityBase o = selectCardComponent.m_luaExportHelper.__callBase_FindOperationalActivityByActivityCardPoolId(activityCardPoolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #13
0
    public static int __callBase_IsUsedOutActivityCardPoolSelectOpportunity(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            CardPool            cardPool;
            LuaObject.checkType <CardPool>(l, 2, out cardPool);
            bool b = selectCardComponent.m_luaExportHelper.__callBase_IsUsedOutActivityCardPoolSelectOpportunity(cardPool);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #14
0
    public static int __callBase_IsCrystalOrActivityCardPool(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            CardPoolType        cardPoolType;
            LuaObject.checkEnum <CardPoolType>(l, 2, out cardPoolType);
            bool b = selectCardComponent.m_luaExportHelper.__callBase_IsCrystalOrActivityCardPool(cardPoolType);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #15
0
    public static int GetActivityTimeByPoolId(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            int poolId;
            LuaObject.checkType(l, 2, out poolId);
            string activityTimeByPoolId = selectCardComponent.GetActivityTimeByPoolId(poolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, activityTimeByPoolId);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #16
0
    public static int __callBase_SelectCardUseCrystal(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            CardPool            cardPool;
            LuaObject.checkType <CardPool>(l, 2, out cardPool);
            bool isSingleSelect;
            LuaObject.checkType(l, 3, out isSingleSelect);
            selectCardComponent.m_luaExportHelper.__callBase_SelectCardUseCrystal(cardPool, isSingleSelect);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #17
0
    public static int __callBase_CanUseTicketSelectCard(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            CardPool            cardPool;
            LuaObject.checkType <CardPool>(l, 2, out cardPool);
            int ticketNums;
            LuaObject.checkType(l, 3, out ticketNums);
            int i = selectCardComponent.m_luaExportHelper.__callBase_CanUseTicketSelectCard(cardPool, ticketNums);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #18
0
    public static int __callBase_IsTicketsEnough(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            int ticketId;
            LuaObject.checkType(l, 2, out ticketId);
            int ticketCount;
            LuaObject.checkType(l, 3, out ticketCount);
            bool b = selectCardComponent.m_luaExportHelper.__callBase_IsTicketsEnough(ticketId, ticketCount);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #19
0
    public static int __callBase_GetCardPoolById(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            int cardPoolId;
            LuaObject.checkType(l, 2, out cardPoolId);
            bool ignoreActivityCheck;
            LuaObject.checkType(l, 3, out ignoreActivityCheck);
            CardPool o = selectCardComponent.m_luaExportHelper.__callBase_GetCardPoolById(cardPoolId, ignoreActivityCheck);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #20
0
    public static int CanSelectCard(IntPtr l)
    {
        int result;

        try
        {
            SelectCardComponent selectCardComponent = (SelectCardComponent)LuaObject.checkSelf(l);
            int cardPoolId;
            LuaObject.checkType(l, 2, out cardPoolId);
            bool isSingleSelect;
            LuaObject.checkType(l, 3, out isSingleSelect);
            bool isUsingTickets;
            LuaObject.checkType(l, 4, out isUsingTickets);
            int i = selectCardComponent.CanSelectCard(cardPoolId, isSingleSelect, isUsingTickets);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }