Server.Commands.Add.AddTarget.OnTarget C# (CSharp) Méthode

OnTarget() protected méthode

protected OnTarget ( Mobile from, object o ) : void
from Mobile
o object
Résultat void
			protected override void OnTarget( Mobile from, object o )
			{
				IPoint3D p = o as IPoint3D;

				if ( p != null )
				{
					if ( p is Item )
						p = ((Item)p).GetWorldTop();
					else if ( p is Mobile )
						p = ((Mobile)p).Location;

					Point3D point = new Point3D( p );
					Add.Invoke( from, point, point, m_Args );
				}
			}
		}