示例#1
0
    public static int get_GuaranteedStatus(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)dataSectionSelectCard.GuaranteedStatus);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#2
0
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            dataSectionSelectCard.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#3
0
    public static int get_CardPools(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionSelectCard.CardPools);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#4
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard o = new DataSectionSelectCard();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#5
0
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            object o = dataSectionSelectCard.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#6
0
    public static int IsCardPoolExistGuaranteedMechanism(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            bool b = dataSectionSelectCard.IsCardPoolExistGuaranteedMechanism();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#7
0
    public static int IsAboveGuaranteedAccumulatedValue(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            bool b = dataSectionSelectCard.IsAboveGuaranteedAccumulatedValue();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#8
0
    public static int InitCardPools(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            List <CardPool>       cardPools;
            LuaObject.checkType <List <CardPool> >(l, 2, out cardPools);
            dataSectionSelectCard.InitCardPools(cardPools);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#9
0
    public static int SetSelectCardGuaranteedStatus(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard      dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            SelectCardGuaranteedStatus selectCardGuaranteedStatus;
            LuaObject.checkEnum <SelectCardGuaranteedStatus>(l, 2, out selectCardGuaranteedStatus);
            dataSectionSelectCard.SetSelectCardGuaranteedStatus(selectCardGuaranteedStatus);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#10
0
    public static int InitGuaranteedSelectCardCount(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            int count;
            LuaObject.checkType(l, 2, out count);
            dataSectionSelectCard.InitGuaranteedSelectCardCount(count);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#11
0
    public static int SetGuaranteedAccumulatedValue(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            int guaranteedAccumulatedValue;
            LuaObject.checkType(l, 2, out guaranteedAccumulatedValue);
            dataSectionSelectCard.SetGuaranteedAccumulatedValue(guaranteedAccumulatedValue);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#12
0
    public static int FinishFirstTenSelect(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            CardPool cardPool;
            LuaObject.checkType <CardPool>(l, 2, out cardPool);
            dataSectionSelectCard.FinishFirstTenSelect(cardPool);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#13
0
    public static int RemoveCardPool(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            int cardPoolId;
            LuaObject.checkType(l, 2, out cardPoolId);
            dataSectionSelectCard.RemoveCardPool(cardPoolId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#14
0
    public static int IsFirstSelectCard(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            CardPool cardPool;
            LuaObject.checkType <CardPool>(l, 2, out cardPool);
            bool b = dataSectionSelectCard.IsFirstSelectCard(cardPool);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#15
0
    public static int AddCardPool(IntPtr l)
    {
        int result;

        try
        {
            DataSectionSelectCard dataSectionSelectCard = (DataSectionSelectCard)LuaObject.checkSelf(l);
            CardPool newCardPool;
            LuaObject.checkType <CardPool>(l, 2, out newCardPool);
            CardPool o = dataSectionSelectCard.AddCardPool(newCardPool);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }