Aura.Channel.Network.Sending.Send.EnterDynamicRegionExtended C# (CSharp) Méthode

EnterDynamicRegionExtended() public static méthode

Sends EnterDynamicRegionExtended to creature's client.
From the looks of it this basically does the same as EnterDynamicRegion, but it supports the creation of multiple regions before warping to one.
public static EnterDynamicRegionExtended ( Creature creature, int warpFromRegionId, Region warpToRegion ) : void
creature Creature
warpFromRegionId int
warpToRegion Region
Résultat void
		public static void EnterDynamicRegionExtended(Creature creature, int warpFromRegionId, Region warpToRegion)
		{
			var warpTo = warpToRegion as DynamicRegion;
			if (warpTo == null)
				throw new ArgumentException("EnterDynamicRegionExtended requires a dynamic region.");

			var pos = creature.GetPosition();

			var packet = new Packet(Op.EnterDynamicRegionExtended, MabiId.Broadcast);
			packet.PutLong(creature.EntityId);
			packet.PutInt(warpFromRegionId); // creature's current region or 0?

			packet.PutInt(warpToRegion.Id); // target region id
			packet.PutInt(pos.X); // target x pos
			packet.PutInt(pos.Y); // target y pos
			packet.PutInt(0); // 0|4|8|16

			packet.PutInt(1); // count of dynamic regions v

			packet.PutInt(warpToRegion.Id);
			packet.PutString(warpToRegion.Name); // dynamic region name
			packet.PutUInt(0x80000000); // bitmask? (|1 = time difference?)
			packet.PutInt(warpTo.BaseId);
			packet.PutString(warpTo.BaseName);
			packet.PutInt(200); // 100|200
			packet.PutByte(0); // 1 = next is empty?
			packet.PutString("data/world/{0}/{1}", warpTo.BaseName, warpTo.Variation);

			creature.Client.Send(packet);
		}
Send