Ejemplo n.º 1
0
    static int LoadWebIPs(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 3)
        {
            PlatformEntityLua obj  = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
            string            arg0 = LuaScriptMgr.GetLuaString(L, 2);
            bool arg1 = LuaScriptMgr.GetBoolean(L, 3);
            bool o    = obj.LoadWebIPs(arg0, arg1);
            LuaScriptMgr.Push(L, o);
            return(1);
        }
        else if (count == 4)
        {
            PlatformEntityLua obj = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
            bool   arg0           = LuaScriptMgr.GetBoolean(L, 2);
            string arg1           = LuaScriptMgr.GetLuaString(L, 3);
            bool   arg2           = LuaScriptMgr.GetBoolean(L, 4);
            bool   o = obj.LoadWebIPs(arg0, arg1, arg2);
            LuaScriptMgr.Push(L, o);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: PlatformEntityLua.LoadWebIPs");
        }

        return(0);
    }
Ejemplo n.º 2
0
    static int LoadConf_web_hostArr(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        PlatformEntityLua obj       = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        Action            arg0      = null;
        LuaTypes          funcType2 = LuaDLL.lua_type(L, 2);

        if (funcType2 != LuaTypes.LUA_TFUNCTION)
        {
            arg0 = (Action)LuaScriptMgr.GetNetObject(L, 2, typeof(Action));
        }
        else
        {
            LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 2);
            arg0 = () =>
            {
                func.Call();
            };
        }

        IEnumerator o = obj.LoadConf_web_hostArr(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 3
0
    static int LoadAndSaveConfigData(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        PlatformEntityLua obj       = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        Action            arg0      = null;
        LuaTypes          funcType2 = LuaDLL.lua_type(L, 2);

        if (funcType2 != LuaTypes.LUA_TFUNCTION)
        {
            arg0 = (Action)LuaScriptMgr.GetNetObject(L, 2, typeof(Action));
        }
        else
        {
            LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 2);
            arg0 = () =>
            {
                func.Call();
            };
        }

        float       arg1 = (float)LuaScriptMgr.GetNumber(L, 3);
        IEnumerator o    = obj.LoadAndSaveConfigData(arg0, arg1);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 4
0
    static int IsTester(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        bool o = obj.IsTester();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 5
0
    static int GameNoticeURL(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        string            o   = obj.GameNoticeURL();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 6
0
    static int testCoroutine(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        IEnumerator       o   = obj.testCoroutine();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 7
0
    static int LoadLocalConfig(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        IEnumerator       o   = obj.LoadLocalConfig();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 8
0
    static int LoadConfByUser(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        PlatformEntityLua obj  = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        string            arg0 = LuaScriptMgr.GetLuaString(L, 2);
        IEnumerator       o    = obj.LoadConfByUser(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 9
0
    static int LoadURL(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        PlatformEntityLua obj  = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        string            arg0 = LuaScriptMgr.GetLuaString(L, 2);
        string            arg1 = LuaScriptMgr.GetLuaString(L, 3);

        obj.LoadURL(arg0, arg1);
        return(0);
    }
Ejemplo n.º 10
0
    static int testCall(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        PlatformEntityLua obj  = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        string            arg0 = LuaScriptMgr.GetLuaString(L, 2);
        string            o    = obj.testCall(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 11
0
    static int LuaCoroutine(IntPtr L)
    {
        int count              = LuaDLL.lua_gettop(L);
        PlatformEntityLua obj  = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        string            arg0 = LuaScriptMgr.GetLuaString(L, 2);

        object[]    objs1 = LuaScriptMgr.GetParamsObject(L, 3, count - 2);
        IEnumerator o     = obj.LuaCoroutine(arg0, objs1);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 12
0
    static int _CreatePlatformEntityLua(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            PlatformEntityLua obj = new PlatformEntityLua();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: PlatformEntityLua.New");
        }

        return(0);
    }
Ejemplo n.º 13
0
    static int get_FeedbackContent(IntPtr L)
    {
        object            o   = LuaScriptMgr.GetLuaObject(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name FeedbackContent");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index FeedbackContent on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.FeedbackContent);
        return(1);
    }
Ejemplo n.º 14
0
    static int get_Register_url(IntPtr L)
    {
        object            o   = LuaScriptMgr.GetLuaObject(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name Register_url");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index Register_url on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.Register_url);
        return(1);
    }
Ejemplo n.º 15
0
    static int get_WXShareDescription(IntPtr L)
    {
        object            o   = LuaScriptMgr.GetLuaObject(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name WXShareDescription");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index WXShareDescription on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.WXShareDescription);
        return(1);
    }
Ejemplo n.º 16
0
    static int set_testName(IntPtr L)
    {
        object            o   = LuaScriptMgr.GetLuaObject(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name testName");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index testName on a nil value");
            }
        }

        obj.testName = LuaScriptMgr.GetString(L, 3);
        return(0);
    }
Ejemplo n.º 17
0
    static int get_SocketManager_config_str(IntPtr L)
    {
        object            o   = LuaScriptMgr.GetLuaObject(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name SocketManager_config_str");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index SocketManager_config_str on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.SocketManager_config_str);
        return(1);
    }
Ejemplo n.º 18
0
    static int get_IsCache_config(IntPtr L)
    {
        object            o   = LuaScriptMgr.GetLuaObject(L, 1);
        PlatformEntityLua obj = (PlatformEntityLua)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name IsCache_config");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index IsCache_config on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.IsCache_config);
        return(1);
    }
Ejemplo n.º 19
0
    static int testOnComplete(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        PlatformEntityLua obj       = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        Action            arg0      = null;
        LuaTypes          funcType2 = LuaDLL.lua_type(L, 2);

        if (funcType2 != LuaTypes.LUA_TFUNCTION)
        {
            arg0 = (Action)LuaScriptMgr.GetNetObject(L, 2, typeof(Action));
        }
        else
        {
            LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 2);
            arg0 = () =>
            {
                func.Call();
            };
        }

        obj.testOnComplete(arg0);
        return(0);
    }
Ejemplo n.º 20
0
    static int swithWebHostUrl(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        PlatformEntityLua obj = (PlatformEntityLua)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlatformEntityLua");
        bool     arg0         = LuaScriptMgr.GetBoolean(L, 2);
        Action   arg1         = null;
        LuaTypes funcType3    = LuaDLL.lua_type(L, 3);

        if (funcType3 != LuaTypes.LUA_TFUNCTION)
        {
            arg1 = (Action)LuaScriptMgr.GetNetObject(L, 3, typeof(Action));
        }
        else
        {
            LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 3);
            arg1 = () =>
            {
                func.Call();
            };
        }

        obj.swithWebHostUrl(arg0, arg1);
        return(0);
    }