Server.Mobiles.ProximitySpawner.OnMovement C# (CSharp) Méthode

OnMovement() public méthode

public OnMovement ( Mobile m, Point3D oldLocation ) : void
m Mobile
oldLocation Point3D
Résultat void
		public override void OnMovement( Mobile m, Point3D oldLocation )
		{
			if ( !Running )
				return;

			if ( IsEmpty && End <= DateTime.Now && m.InRange( GetWorldLocation(), m_TriggerRange ) && m.Location != oldLocation && ValidTrigger( m ) )
			{
				TextDefinition.SendMessageTo( m, m_SpawnMessage );

				DoTimer();
				Spawn();

				if ( m_InstantFlag )
				{
					foreach ( ISpawnable spawned in Spawned )
					{
						if ( spawned is Mobile )
							((Mobile)spawned).Combatant = m;
					}
				}
			}
		}