static int StartLoad(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityGameFramework.Runtime.ListLoader obj = (UnityGameFramework.Runtime.ListLoader)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.ListLoader));
         obj.StartLoad();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_ListFinished(IntPtr L)
    {
        try
        {
            UnityGameFramework.Runtime.ListLoader obj = (UnityGameFramework.Runtime.ListLoader)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.ListLoader));
            EventObject arg0 = null;

            if (LuaDLL.lua_isuserdata(L, 2) != 0)
            {
                arg0 = (EventObject)ToLua.ToObject(L, 2);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "The event 'UnityGameFramework.Runtime.ListLoader.ListFinished' can only appear on the left hand side of += or -= when used outside of the type 'UnityGameFramework.Runtime.ListLoader'"));
            }

            if (arg0.op == EventOp.Add)
            {
                UnityGameFramework.Runtime.ListLoader.ListFinishedHandler ev = (UnityGameFramework.Runtime.ListLoader.ListFinishedHandler)DelegateFactory.CreateDelegate(typeof(UnityGameFramework.Runtime.ListLoader.ListFinishedHandler), arg0.func);
                obj.ListFinished += ev;
            }
            else if (arg0.op == EventOp.Sub)
            {
                UnityGameFramework.Runtime.ListLoader.ListFinishedHandler ev = (UnityGameFramework.Runtime.ListLoader.ListFinishedHandler)LuaMisc.GetEventHandler(obj, typeof(UnityGameFramework.Runtime.ListLoader), "ListFinished");
                Delegate[] ds    = ev.GetInvocationList();
                LuaState   state = LuaState.Get(L);

                for (int i = 0; i < ds.Length; i++)
                {
                    ev = (UnityGameFramework.Runtime.ListLoader.ListFinishedHandler)ds[i];
                    LuaDelegate ld = ev.Target as LuaDelegate;

                    if (ld != null && ld.func == arg0.func)
                    {
                        obj.ListFinished -= ev;
                        state.DelayDispose(ld.func);
                        break;
                    }
                }

                arg0.func.Dispose();
            }

            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int Add(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityGameFramework.Runtime.ListLoader obj = (UnityGameFramework.Runtime.ListLoader)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.ListLoader));
         string arg0 = ToLua.CheckString(L, 2);
         obj.Add(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_m_loadAssetCallbacks(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityGameFramework.Runtime.ListLoader     obj = (UnityGameFramework.Runtime.ListLoader)o;
            GameFramework.Resource.LoadAssetCallbacks ret = obj.m_loadAssetCallbacks;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_loadAssetCallbacks on a nil value" : e.Message));
        }
    }
    static int set_m_loadAssetBundleCallbacks(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityGameFramework.Runtime.ListLoader           obj  = (UnityGameFramework.Runtime.ListLoader)o;
            GameFramework.Resource.LoadAssetBundleCallbacks arg0 = (GameFramework.Resource.LoadAssetBundleCallbacks)ToLua.CheckObject(L, 2, typeof(GameFramework.Resource.LoadAssetBundleCallbacks));
            obj.m_loadAssetBundleCallbacks = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_loadAssetBundleCallbacks on a nil value" : e.Message));
        }
    }
    static int _CreateUnityGameFramework_Runtime_ListLoader(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                UnityGameFramework.Runtime.ListLoader.LoadMode arg0 = (UnityGameFramework.Runtime.ListLoader.LoadMode)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.ListLoader.LoadMode));
                GameFramework.Resource.LoadAssetCallbacks      arg1 = (GameFramework.Resource.LoadAssetCallbacks)ToLua.CheckObject(L, 2, typeof(GameFramework.Resource.LoadAssetCallbacks));
                UnityGameFramework.Runtime.ListLoader          obj  = new UnityGameFramework.Runtime.ListLoader(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityGameFramework.Runtime.ListLoader.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }