예제 #1
0
 public void NewMember(WorldClient c)
 {
     if (this.Members.Count + this.Guests.Count < this.MAX_PARTY_MEMBER_COUNT)
     {
         PartyMember m = new PartyMember(c.Character, this);
         foreach (WorldClient clients in this.Members)
         {
             clients.Send(new PartyNewMemberMessage((uint)this.Id, m.GetPartyMemberInformations()));
         }
         this.Members.Add(c);
         this.PMembers.Add(m);
         c.Character.PartyMember = m;
         c.Send(new PartyJoinMessage((uint)this.Id, (sbyte)PartyTypeEnum.PARTY_TYPE_CLASSICAL, (uint)this.BossCharacterId, (sbyte)this.MAX_PARTY_MEMBER_COUNT,
                                     from members in this.PMembers
                                     select members.GetPartyMemberInformations(),
                                     from guests in this.PGuests
                                     select guests.GetPartyGuestInformations(),
                                     false, this.Name));
     }
 }
예제 #2
0
        public PartyMemberInformations GetPartyMemberInformations(int id)
        {
            PartyMember m = this.PMembers.Find(x => x.Character.Id == id);

            return(m.GetPartyMemberInformations());
        }