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;
		}