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

        try
        {
            CooperateBattleCollections cooperateBattleCollections = (CooperateBattleCollections)LuaObject.checkSelf(l);
            GetUserLevel getUserLevel;
            int          num = LuaObject.checkDelegate <GetUserLevel>(l, 2, out getUserLevel);
            if (num == 0)
            {
                cooperateBattleCollections.GetLevel = getUserLevel;
            }
            else if (num == 1)
            {
                CooperateBattleCollections cooperateBattleCollections2 = cooperateBattleCollections;
                cooperateBattleCollections2.GetLevel = (GetUserLevel)Delegate.Combine(cooperateBattleCollections2.GetLevel, getUserLevel);
            }
            else if (num == 2)
            {
                CooperateBattleCollections cooperateBattleCollections3 = cooperateBattleCollections;
                cooperateBattleCollections3.GetLevel = (GetUserLevel)Delegate.Remove(cooperateBattleCollections3.GetLevel, getUserLevel);
            }
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Now(IntPtr l)
    {
        int result;

        try
        {
            CooperateBattleCollections cooperateBattleCollections = (CooperateBattleCollections)LuaObject.checkSelf(l);
            CurrentTime currentTime;
            int         num = LuaObject.checkDelegate <CurrentTime>(l, 2, out currentTime);
            if (num == 0)
            {
                cooperateBattleCollections.Now = currentTime;
            }
            else if (num == 1)
            {
                CooperateBattleCollections cooperateBattleCollections2 = cooperateBattleCollections;
                cooperateBattleCollections2.Now = (CurrentTime)Delegate.Combine(cooperateBattleCollections2.Now, currentTime);
            }
            else if (num == 2)
            {
                CooperateBattleCollections cooperateBattleCollections3 = cooperateBattleCollections;
                cooperateBattleCollections3.Now = (CurrentTime)Delegate.Remove(cooperateBattleCollections3.Now, currentTime);
            }
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int ReloadConfigData(IntPtr l)
    {
        int result;

        try
        {
            CooperateBattleCollections cooperateBattleCollections = (CooperateBattleCollections)LuaObject.checkSelf(l);
            cooperateBattleCollections.ReloadConfigData();
            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
        {
            CooperateBattleCollections o = new CooperateBattleCollections();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_Battles(IntPtr l)
    {
        int result;

        try
        {
            CooperateBattleCollections cooperateBattleCollections = (CooperateBattleCollections)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, cooperateBattleCollections.Battles);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_ConfigDataLoader(IntPtr l)
    {
        int result;

        try
        {
            CooperateBattleCollections cooperateBattleCollections = (CooperateBattleCollections)LuaObject.checkSelf(l);
            IConfigDataLoader          configDataLoader;
            LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader);
            cooperateBattleCollections.ConfigDataLoader = configDataLoader;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Battles(IntPtr l)
    {
        int result;

        try
        {
            CooperateBattleCollections cooperateBattleCollections = (CooperateBattleCollections)LuaObject.checkSelf(l);
            List <CooperateBattle>     battles;
            LuaObject.checkType <List <CooperateBattle> >(l, 2, out battles);
            cooperateBattleCollections.Battles = battles;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }