static int LoadAsset(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(NTGResourceController.AssetLoader), typeof(string), typeof(string)))
            {
                NTGResourceController.AssetLoader obj = (NTGResourceController.AssetLoader)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                string arg1 = ToLua.ToString(L, 3);
                obj.LoadAsset(arg0, arg1);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(NTGResourceController.AssetLoader), typeof(string), typeof(string), typeof(string)))
            {
                NTGResourceController.AssetLoader obj = (NTGResourceController.AssetLoader)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                string arg1 = ToLua.ToString(L, 3);
                string arg2 = ToLua.ToString(L, 4);
                obj.LoadAsset(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: NTGResourceController.AssetLoader.LoadAsset"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int Close(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         NTGResourceController.AssetLoader obj = (NTGResourceController.AssetLoader)ToLua.CheckObject(L, 1, typeof(NTGResourceController.AssetLoader));
         obj.Close();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_bundle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGResourceController.AssetLoader obj  = (NTGResourceController.AssetLoader)o;
            UnityEngine.AssetBundle           arg0 = (UnityEngine.AssetBundle)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.AssetBundle));
            obj.bundle = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bundle on a nil value" : e.Message));
        }
    }
    static int set_assettype(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGResourceController.AssetLoader obj = (NTGResourceController.AssetLoader)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.assettype = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index assettype on a nil value" : e.Message));
        }
    }
    static int set_Done(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGResourceController.AssetLoader obj = (NTGResourceController.AssetLoader)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.Done = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Done on a nil value" : e.Message));
        }
    }
    static int get_bundle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGResourceController.AssetLoader obj = (NTGResourceController.AssetLoader)o;
            UnityEngine.AssetBundle           ret = obj.bundle;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bundle on a nil value" : e.Message));
        }
    }
    static int get_assettype(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGResourceController.AssetLoader obj = (NTGResourceController.AssetLoader)o;
            string ret = obj.assettype;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index assettype on a nil value" : e.Message));
        }
    }
    static int _CreateNTGResourceController_AssetLoader(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                NTGResourceController.AssetLoader obj = new NTGResourceController.AssetLoader();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: NTGResourceController.AssetLoader.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }