Exemple #1
0
    static int SetMd5(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3)
            {
                LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                string arg1 = ToLua.CheckString(L, 3);
                obj.SetMd5(arg0, arg1);
                return(0);
            }
            else if (count == 4)
            {
                LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                string arg1 = ToLua.CheckString(L, 3);
                bool   arg2 = LuaDLL.luaL_checkboolean(L, 4);
                obj.SetMd5(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.GameManager.SetMd5"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemple #2
0
 static int RemoveDownloadPackProgressListener(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         obj.RemoveDownloadPackProgressListener();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #3
0
 static int GetGameManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         LuaFramework.GameManager o = LuaFramework.LuaHelper.GetGameManager();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #4
0
 static int CheckExtractResource(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         obj.CheckExtractResource();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #5
0
 static int OnResourceInited(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.GameManager));
         obj.OnResourceInited();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #6
0
 static int DestroyHotUpgradeView(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         obj.DestroyHotUpgradeView();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #7
0
 static int RegisterHandlers(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         obj.RegisterHandlers();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int StartLoadUpdate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         obj.StartLoadUpdate();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int is_WXAppSupportApi(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         bool o = obj.is_WXAppSupportApi();
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int LoadCallBack(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.GameManager obj  = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         UnityEngine.Object       arg0 = (UnityEngine.Object)ToLua.CheckObject <UnityEngine.Object>(L, 2);
         obj.LoadCallBack(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int login_sdk(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         LuaFunction arg0             = ToLua.CheckLuaFunction(L, 2);
         obj.login_sdk(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int updateLoadPos(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.updateLoadPos(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int getApplicationVer(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         string o = obj.getApplicationVer();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #14
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));
     }
 }
Exemple #15
0
 static int GetTotalDownloadedPackSize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         string o = obj.GetTotalDownloadedPackSize();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #16
0
 static int GetDownloadPackProgress(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         float o = obj.GetDownloadPackProgress();
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #17
0
 static int GetSceneFileList(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         string[] o = obj.GetSceneFileList();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #18
0
 static int IsDownloadError(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         bool o = obj.IsDownloadError();
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int UpdateCallBack(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject <LuaFramework.GameManager>(L, 1);
         bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.UpdateCallBack(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #20
0
 static int ShowUpdateTip(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.GameManager));
         string arg0 = ToLua.CheckString(L, 2);
         obj.ShowUpdateTip(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #21
0
 static int Init(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.GameManager obj = (LuaFramework.GameManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.GameManager));
         bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.Init(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #22
0
    static int set_gameVersion(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.gameVersion = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index gameVersion on a nil value" : e.Message));
        }
    }
Exemple #23
0
    static int set_moduleABPaths(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            System.Collections.Generic.List <string> arg0 = (System.Collections.Generic.List <string>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <string>));
            obj.moduleABPaths = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index moduleABPaths on a nil value" : e.Message));
        }
    }
Exemple #24
0
    static int get_gameVersion(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            string ret = obj.gameVersion;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index gameVersion on a nil value" : e.Message));
        }
    }
    static int set_luaf_pay_cb(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            LuaFunction arg0             = ToLua.CheckLuaFunction(L, 2);
            obj.luaf_pay_cb = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index luaf_pay_cb on a nil value"));
        }
    }
    static int set_loadCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.loadCount = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index loadCount on a nil value"));
        }
    }
Exemple #27
0
    static int set_isUpdate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.isUpdate = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isUpdate on a nil value" : e.Message));
        }
    }
Exemple #28
0
    static int get_isUpdate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            bool ret = obj.isUpdate;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isUpdate on a nil value" : e.Message));
        }
    }
Exemple #29
0
    static int get_moduleABPaths(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            System.Collections.Generic.List <string> ret = obj.moduleABPaths;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index moduleABPaths on a nil value" : e.Message));
        }
    }
    static int set_fpsMeasuringDelta(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaFramework.GameManager obj = (LuaFramework.GameManager)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.fpsMeasuringDelta = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fpsMeasuringDelta on a nil value"));
        }
    }