示例#1
0
    static int _CreateAL_Resources_LoadStageAsync(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                AL.Resources.LoadStageAsync obj = new AL.Resources.LoadStageAsync();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 2)
            {
                string arg0 = ToLua.CheckString(L, 1);
                bool   arg1 = LuaDLL.luaL_checkboolean(L, 2);
                AL.Resources.LoadStageAsync obj = new AL.Resources.LoadStageAsync(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: AL.Resources.LoadStageAsync.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
示例#2
0
 static int Reset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         AL.Resources.LoadStageAsync obj = (AL.Resources.LoadStageAsync)ToLua.CheckObject <AL.Resources.LoadStageAsync>(L, 1);
         obj.Reset();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
 static int Sort(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         AL.Resources.LoadStageAsync obj = (AL.Resources.LoadStageAsync)ToLua.CheckObject <AL.Resources.LoadStageAsync>(L, 1);
         System.Collections.Generic.IComparer <AL.Resources.LoadStageAsync.AsyncLoader> arg0 = (System.Collections.Generic.IComparer <AL.Resources.LoadStageAsync.AsyncLoader>)ToLua.CheckObject <System.Collections.Generic.IComparer <AL.Resources.LoadStageAsync.AsyncLoader> >(L, 2);
         obj.Sort(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#4
0
 static int IsDone(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         AL.Resources.LoadStageAsync obj = (AL.Resources.LoadStageAsync)ToLua.CheckObject <AL.Resources.LoadStageAsync>(L, 1);
         bool o = obj.IsDone();
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#5
0
 static int AddRangeLoader(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         AL.Resources.LoadStageAsync   obj  = (AL.Resources.LoadStageAsync)ToLua.CheckObject <AL.Resources.LoadStageAsync>(L, 1);
         AL.Resources.ALoadOperation[] arg0 = ToLua.CheckObjectArray <AL.Resources.ALoadOperation>(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         obj.AddRangeLoader(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#6
0
 static int PreLoadCutscene(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LuaFramework.CutsceneManager obj  = (LuaFramework.CutsceneManager)ToLua.CheckObject <LuaFramework.CutsceneManager>(L, 1);
         UnityEngine.GameObject       arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         AL.Resources.LoadStageAsync  arg1 = (AL.Resources.LoadStageAsync)ToLua.CheckObject <AL.Resources.LoadStageAsync>(L, 3);
         obj.PreLoadCutscene(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#7
0
    static int get_Current(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            AL.Resources.LoadStageAsync obj = (AL.Resources.LoadStageAsync)o;
            object ret = obj.Current;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Current on a nil value"));
        }
    }
示例#8
0
    static int get_Progress(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            AL.Resources.LoadStageAsync obj = (AL.Resources.LoadStageAsync)o;
            float ret = obj.Progress;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Progress on a nil value"));
        }
    }
示例#9
0
    static int get_Weight(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            AL.Resources.LoadStageAsync obj = (AL.Resources.LoadStageAsync)o;
            int ret = obj.Weight;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Weight on a nil value"));
        }
    }
示例#10
0
    static int get_stageLoader(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.SceneStageManager obj = (LuaFramework.SceneStageManager)o;
            AL.Resources.LoadStageAsync    ret = obj.stageLoader;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index stageLoader on a nil value"));
        }
    }