Example #1
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()));
         }
     }
 }
Example #2
0
        public PartyGuestInformations GetPartyGuestInformations(int id)
        {
            PartyGuest m = this.PGuests.Find(x => x.Character.Id == id);

            return(m.GetPartyGuestInformations());
        }