Exemplo n.º 1
0
 public void Create(Character Creator, Character Invited)
 {
     Members.Add(Creator);
     Creator.Party = this;
     this.Leader   = Creator;
     AbstractParty.SendPartyJoinMessage(Creator);
     Creator.Client.Send(new PartyUpdateMessage((uint)this.Id, this.GetPartyMemberInformations(Creator)));
     AbstractParty.SendPartyInvitationMessage(Invited, Creator, this);
 }
Exemplo n.º 2
0
 public void AddMember(Character character)
 {
     if (!Members.Contains(character))
     {
         Members.Add(character);
         character.Party = this;
         RemoveGuest(character);
         AbstractParty.SendPartyJoinMessage(character);
         character.Client.Send(new PartyUpdateMessage((uint)this.Id, this.GetPartyMemberInformations(character)));
         UpdateMember(character);
         RemoveGuest(character);
     }
 }