Aura.Channel.Network.Sending.Helpers.PartyHelper.AddPartyMembers C# (CSharp) Method

AddPartyMembers() public static method

Adds party member data to the referenced packet.
public static AddPartyMembers ( this packet, Party party ) : void
packet this
party Aura.Channel.World.Party
return void
		public static void AddPartyMembers(this Packet packet, Party party)
		{
			var members = party.GetMembers();

			for (int i = members.Length - 1; i >= 0; i--)
			{
				packet.AddPartyMember(members[i]);

				packet.PutInt(i == 0 ? 3 : 1);

				// [200200, NA242 (2016-12-15)]
				{
					packet.PutByte(0);
					packet.PutShort(128);
					packet.PutInt(0);
					packet.PutInt(0);
					packet.PutInt(0);
				}

				packet.PutLong(0);
			}
			packet.PutByte(0);
		}