示例#1
0
        public void SendInvitationDetail(WorldClient to)
        {
            PartyGuest g = this.PGuests.Find(x => x.Character.Id == to.Character.Id);

            var members = this.PMembers.ConvertAll <PartyInvitationMemberInformations>(x => x.GetPartyInvitationMemberInformations());
            var guests  = this.PGuests.ConvertAll <PartyGuestInformations>(x => x.GetPartyGuestInformations());

            to.Send(new PartyInvitationDetailsMessage((uint)this.Id,
                                                      (sbyte)PartyTypeEnum.PARTY_TYPE_CLASSICAL, this.Name,
                                                      (uint)g.InvitedBy.Id, g.InvitedBy.Record.Name, (uint)this.BossCharacterId, members,
                                                      guests));
        }
示例#2
0
 public void NewGuest(WorldClient c, WorldClient invitedBy)
 {
     if (this.CountMembers() < this.MAX_PARTY_MEMBER_COUNT)
     {
         this.Guests.Add(c);
         PartyGuest g = new PartyGuest(this, c.Character, invitedBy.Character);
         this.PGuests.Add(g);
         foreach (WorldClient clients in this.Members)
         {
             clients.Send(new PartyNewGuestMessage((uint)this.Id, g.GetPartyGuestInformations()));
         }
     }
 }
示例#3
0
        public PartyGuestInformations GetPartyGuestInformations(int id)
        {
            PartyGuest m = this.PGuests.Find(x => x.Character.Id == id);

            return(m.GetPartyGuestInformations());
        }