Aura.Channel.Skills.Life.Tailoring.ReadStitches C# (CSharp) Метод

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

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

			var gotStitches = packet.GetBool();
			if (!gotStitches)
				return false;

			for (int i = 0; i < 6; ++i)
			{
				var x = packet.GetShort();
				var y = packet.GetShort();

				stitches.Add(new Point(x, y));
			}

			return true;
		}