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

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

        return(0);
    }
    static int get_win_times(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.PvpLadderInfo obj = (fogs.proto.msg.PvpLadderInfo)o;

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

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

        LuaScriptMgr.Push(L, obj.win_times);
        return(1);
    }
    static int set_league_awards_flag(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.PvpLadderInfo obj = (fogs.proto.msg.PvpLadderInfo)o;

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

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

        obj.league_awards_flag = (uint)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
    static int set_total_win_times(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.PvpLadderInfo obj = (fogs.proto.msg.PvpLadderInfo)o;

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

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

        obj.total_win_times = (uint)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }