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

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

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

        CC.Runtime.PB.ProtoBattleVideoRoleInfo obj = (CC.Runtime.PB.ProtoBattleVideoRoleInfo)o;

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

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

        LuaScriptMgr.PushObject(L, obj.league_info);
        return(1);
    }
    static int set_rankSpecified(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        CC.Runtime.PB.ProtoBattleVideoRoleInfo obj = (CC.Runtime.PB.ProtoBattleVideoRoleInfo)o;

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

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

        obj.rankSpecified = LuaScriptMgr.GetBoolean(L, 3);
        return(0);
    }
    static int set_final_star(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        CC.Runtime.PB.ProtoBattleVideoRoleInfo obj = (CC.Runtime.PB.ProtoBattleVideoRoleInfo)o;

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

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

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

        CC.Runtime.PB.ProtoBattleVideoRoleInfo obj = (CC.Runtime.PB.ProtoBattleVideoRoleInfo)o;

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

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

        obj.battle_info = (CC.Runtime.PB.ProtoRoleBattleInfo)LuaScriptMgr.GetNetObject(L, 3, typeof(CC.Runtime.PB.ProtoRoleBattleInfo));
        return(0);
    }