示例#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);
        }
示例#2
0
        // Token: 0x06003B82 RID: 15234 RVA: 0x0010F7F8 File Offset: 0x0010D9F8
        public GuildMemberCacheObject AddMember(GuildMember member)
        {
            GuildMemberCacheObject guildMemberCacheObject = new GuildMemberCacheObject
            {
                Member = member
            };

            this.Members.Add(guildMemberCacheObject);
            this.TotalBattlePower += member.TopHeroBattlePower;
            return(guildMemberCacheObject);
        }
示例#3
0
 // Token: 0x06003B84 RID: 15236 RVA: 0x0010F868 File Offset: 0x0010DA68
 public void RemoveMember(GuildMemberCacheObject cache)
 {
     this.Members.Remove(cache);
     this.TotalBattlePower -= cache.Member.TopHeroBattlePower;
 }