示例#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);
 }
示例#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);
     }
 }
示例#3
0
 public static void SendPartyInvitationMessage(Character Invited, Character Invitor, AbstractParty Party)
 {
     Invited.Client.Send(new PartyInvitationMessage((uint)Party.Id, (sbyte)Party.Type, Party.PartyName, Party.MaxParticipants, (ulong)Invitor.Id, Invitor.Name, (ulong)Invited.Id));
     Party.AddGuest(Invited);
 }