GetMembers() public méthode

Returns list of all members.
public GetMembers ( ) : Aura.Channel.World.Entities.Creature[]
Résultat Aura.Channel.World.Entities.Creature[]
Exemple #1
0
		/// <summary>
		/// Adds party member data to the referenced packet.
		/// </summary>
		/// <param name="party"></param>
		/// <param name="packet"></param>
		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]);

				if (i == 0)
				{
					packet.PutInt(3);
					packet.PutLong(0);
				}
				else
				{
					packet.PutInt(1);
					packet.PutLong(0);
				}
			}
			packet.PutByte(0);
		}
Exemple #2
0
		/// <summary>
		/// Adds party member data to the referenced packet.
		/// </summary>
		/// <param name="party"></param>
		/// <param name="packet"></param>
		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);
		}