Aura.Channel.Network.Sending.Send.WarpRegion C# (CSharp) Метод

WarpRegion() публичный статический Метод

Sends WarpRegion for creature to creature's client.
Makes client load the region and move the creature there. Uses current position of creature, move beforehand.
public static WarpRegion ( Creature creature ) : void
creature Creature
Результат void
		public static void WarpRegion(Creature creature)
		{
			var pos = creature.GetPosition();

			var packet = new Packet(Op.WarpRegion, creature.EntityId);
			packet.PutByte(true);
			packet.PutInt(creature.RegionId);
			packet.PutInt(pos.X);
			packet.PutInt(pos.Y);

			creature.Client.Send(packet);
		}
Send