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