Ejemplo n.º 1
0
 // Token: 0x06003BC9 RID: 15305 RVA: 0x00110108 File Offset: 0x0010E308
 public static ProGuildSearchInfo ToPBGuildSearchInfo(GuildSearchInfo info)
 {
     return(new ProGuildSearchInfo
     {
         Id = info.Id,
         Name = info.Name,
         JoinLevel = info.JoinLevel,
         LastWeekActivities = info.LastWeekActivities,
         HiringDeclaration = info.HiringDeclaration,
         HaveSendJoinReq = info.HaveSendJoinReq,
         MemberCount = info.MemberCount,
         PresidentMemberInfo = GuildMember.ToPb(info.PresidentMemberInfo)
     });
 }
Ejemplo n.º 2
0
        // Token: 0x06003B8A RID: 15242 RVA: 0x0010FA2C File Offset: 0x0010DC2C
        public static ProGuild ToPb(Guild g)
        {
            ProGuild proGuild = new ProGuild
            {
                Id                    = g.Id,
                Name                  = g.Name,
                Bulletin              = g.Bulletin,
                HiringDeclaration     = g.HiringDeclaration,
                AutoJoin              = g.AutoJoin,
                TotalBattlePower      = g.TotalBattlePower,
                TotalActivities       = g.TotalActivities,
                LastWeekActivities    = g.LastWeekActivities,
                Activities            = g.Activities,
                CurrentWeekActivities = g.CurrentWeekActivities,
                JoinLevel             = g.JoinLevel,
                MassiveCombatInfo     = g.MassiveCombat.ToPro()
            };

            foreach (GuildMemberCacheObject guildMemberCacheObject in g.Members)
            {
                proGuild.Members.Add(GuildMember.ToPb(guildMemberCacheObject.Member));
            }
            return(proGuild);
        }