Server.Mobiles.EscortDestinationInfo.Find C# (CSharp) Méthode

Find() public static méthode

public static Find ( string name ) : Server.Mobiles.EscortDestinationInfo
name string
Résultat Server.Mobiles.EscortDestinationInfo
		public static EDI Find(string name)
		{
			if (m_Table == null)
				LoadTable();

			if (name == null || m_Table == null)
				return null;

			return (EscortDestinationInfo)m_Table[name];
		}
	}

Usage Example

        public EDI GetDestination()
        {
            if (this.m_DestinationString == null && this.m_DeleteTimer == null)
            {
                this.m_DestinationString = this.PickRandomDestination();
            }

            if (this.m_Destination != null && this.m_Destination.Name == this.m_DestinationString)
            {
                return(this.m_Destination);
            }

            if (Map.Felucca.Regions.Count > 0)
            {
                return(this.m_Destination = EDI.Find(this.m_DestinationString));
            }

            return(this.m_Destination = null);
        }
All Usage Examples Of Server.Mobiles.EscortDestinationInfo::Find