public static int __callBase_PostDeSerialize(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            raffleComponent.m_luaExportHelper.__callBase_PostDeSerialize();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int Init(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            raffleComponent.Init();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent o = new RaffleComponent();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetOpenRafflePools(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent   raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            List <RafflePool> openRafflePools = raffleComponent.GetOpenRafflePools();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, openRafflePools);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_GetAllOpenActivityRafflePool(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            List <int>      o = raffleComponent.m_luaExportHelper.__callBase_GetAllOpenActivityRafflePool();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetDSVersion(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            ushort          dsversion       = raffleComponent.GetDSVersion();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dsversion);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int DeSerialize(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            DSRaffleNtf     msg;
            LuaObject.checkType <DSRaffleNtf>(l, 2, out msg);
            raffleComponent.DeSerialize(msg);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_InitRafflePoolConfigs(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent   raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            List <RafflePool> rafflePools;
            LuaObject.checkType <List <RafflePool> >(l, 2, out rafflePools);
            raffleComponent.m_luaExportHelper.__callBase_InitRafflePoolConfigs(rafflePools);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_RemoveRafflePool(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            int             poolId;
            LuaObject.checkType(l, 2, out poolId);
            raffleComponent.m_luaExportHelper.__callBase_RemoveRafflePool(poolId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_Tick(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            uint            deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            raffleComponent.m_luaExportHelper.__callBase_Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_GetAllDrawedCount(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            RafflePool      pool;
            LuaObject.checkType <RafflePool>(l, 2, out pool);
            int i = raffleComponent.m_luaExportHelper.__callBase_GetAllDrawedCount(pool);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_FindOperationalActivityByRafflePoolId(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            int             activityCardPoolId;
            LuaObject.checkType(l, 2, out activityCardPoolId);
            OperationalActivityBase o = raffleComponent.m_luaExportHelper.__callBase_FindOperationalActivityByRafflePoolId(activityCardPoolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_IsRafflePoolOnActivityTime(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            int             rafflePoolId;
            LuaObject.checkType(l, 2, out rafflePoolId);
            int i = raffleComponent.m_luaExportHelper.__callBase_IsRafflePoolOnActivityTime(rafflePoolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_DrawCostItem(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            RafflePool      rafflePool;
            LuaObject.checkType <RafflePool>(l, 2, out rafflePool);
            int raffleId;
            LuaObject.checkType(l, 3, out raffleId);
            raffleComponent.m_luaExportHelper.__callBase_DrawCostItem(rafflePool, raffleId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int Drawed(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            int             poolId;
            LuaObject.checkType(l, 2, out poolId);
            int raffleId;
            LuaObject.checkType(l, 3, out raffleId);
            raffleComponent.Drawed(poolId, raffleId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_IsDrawItemsEnough(IntPtr l)
    {
        int result;

        try
        {
            RaffleComponent raffleComponent = (RaffleComponent)LuaObject.checkSelf(l);
            GoodsType       goodsType;
            LuaObject.checkEnum <GoodsType>(l, 2, out goodsType);
            int drawItemId;
            LuaObject.checkType(l, 3, out drawItemId);
            int count;
            LuaObject.checkType(l, 4, out count);
            bool b = raffleComponent.m_luaExportHelper.__callBase_IsDrawItemsEnough(goodsType, drawItemId, count);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }