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

AddPartyMember() public static method

Adds the referred creature's data to the referenced packet.
public static AddPartyMember ( this packet, Creature creature ) : void
packet this
creature Aura.Channel.World.Entities.Creature
return void
		public static void AddPartyMember(this Packet packet, Creature creature)
		{
			var loc = creature.GetPosition();

			packet.PutInt(creature.PartyPosition);
			packet.PutLong(creature.EntityId);
			packet.PutString(creature.Name);
			packet.PutByte(1);
			packet.PutInt(creature.Region.Id);
			packet.PutInt(loc.X);
			packet.PutInt(loc.Y);
			packet.PutByte(0);
			packet.PutInt((int)((creature.Life * 100) / creature.LifeMax));
			packet.PutInt((int)100);
		}
	}