Aura.Channel.Skills.Life.Blacksmithing.ReadHits C# (CSharp) Метод

ReadHits() приватный Метод

Reads stitches from packet, starting with the bool, saying whether there are any. Returns false if bool is false.
private ReadHits ( Creature creature, Packet packet, List &hits ) : bool
creature Aura.Channel.World.Entities.Creature
packet Packet
hits List
Результат bool
		private bool ReadHits(Creature creature, Packet packet, out List<HammerHit> hits)
		{
			hits = new List<HammerHit>();

			for (int i = 0; i < 5; ++i)
			{
				var hit = new HammerHit();

				hit.Performed = packet.GetBool();
				hit.X = packet.GetShort();
				hit.Y = packet.GetShort();
				hit.Timing = packet.GetInt();

				hits.Add(hit);
			}

			return true;
		}