GetMembers() public method

Returns list of all members.
public GetMembers ( ) : Aura.Channel.World.Entities.Creature[]
return Aura.Channel.World.Entities.Creature[]
コード例 #1
0
ファイル: PartyHelper.cs プロジェクト: tkiapril/aura
		/// <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);
		}
コード例 #2
0
ファイル: PartyHelper.cs プロジェクト: aura-project/aura
		/// <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);
		}