Example #1
0
 static int AddDownloadPackProgressListener(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         LuaFramework.GameManager.DownloadPackProgressChanged arg0 = (LuaFramework.GameManager.DownloadPackProgressChanged)ToLua.CheckDelegate <LuaFramework.GameManager.DownloadPackProgressChanged>(L, 2);
         obj.AddDownloadPackProgressListener(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #2
0
    static int set_progressChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            LuaFramework.GameManager.DownloadPackProgressChanged arg0 = (LuaFramework.GameManager.DownloadPackProgressChanged)ToLua.CheckDelegate <LuaFramework.GameManager.DownloadPackProgressChanged>(L, 2);
            obj.progressChanged = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index progressChanged on a nil value"));
        }
    }
Example #3
0
    static int get_progressChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            LuaFramework.GameManager.DownloadPackProgressChanged ret = obj.progressChanged;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index progressChanged on a nil value"));
        }
    }