Esempio n. 1
0
        // Token: 0x06003B8B RID: 15243 RVA: 0x0010FB38 File Offset: 0x0010DD38
        public static Guild FromPb(ProGuild pb)
        {
            Guild guild = new Guild
            {
                Id                    = pb.Id,
                Name                  = pb.Name,
                Bulletin              = pb.Bulletin,
                HiringDeclaration     = pb.HiringDeclaration,
                AutoJoin              = pb.AutoJoin,
                TotalBattlePower      = pb.TotalBattlePower,
                TotalActivities       = pb.TotalActivities,
                LastWeekActivities    = pb.LastWeekActivities,
                Activities            = pb.Activities,
                CurrentWeekActivities = pb.CurrentWeekActivities,
                JoinLevel             = pb.JoinLevel,
                MassiveCombat         = pb.MassiveCombatInfo.ToMemory()
            };

            foreach (ProGuildMember pb2 in pb.Members)
            {
                GuildMemberCacheObject item = new GuildMemberCacheObject
                {
                    Member = GuildMember.FromPb(pb2)
                };
                guild.Members.Add(item);
            }
            return(guild);
        }
Esempio n. 2
0
 // Token: 0x06003BCA RID: 15306 RVA: 0x00110184 File Offset: 0x0010E384
 public static GuildSearchInfo ToGuildSearchInfo(ProGuildSearchInfo proInfo)
 {
     return(new GuildSearchInfo
     {
         Id = proInfo.Id,
         Name = proInfo.Name,
         JoinLevel = proInfo.JoinLevel,
         LastWeekActivities = proInfo.LastWeekActivities,
         HiringDeclaration = proInfo.HiringDeclaration,
         HaveSendJoinReq = proInfo.HaveSendJoinReq,
         MemberCount = proInfo.MemberCount,
         PresidentMemberInfo = GuildMember.FromPb(proInfo.PresidentMemberInfo)
     });
 }