Server.Items.Aquarium.Accepts C# (CSharp) Méthode

Accepts() public static méthode

public static Accepts ( Item item ) : bool
item Item
Résultat bool
        public static bool Accepts( Item item )
        {
            if ( item == null )
                return false;

            Type type = item.GetType();

            for ( int i = 0; i < m_Decorations.Length; i ++ )
            {
                if ( type == m_Decorations[ i ] )
                    return true;
            }

            return false;
        }