Scripts/Misc/ResourceInfo.cs
/// <summary>
/// Returns the <see cref="CraftResource"/> value for which '<paramref name="resourceType"/>' uses -or- CraftResource.None if an unregistered type was specified.
/// </summary>
Returns the  value for which '' uses -or- CraftResource.None if an unregistered type was specified.
Returns the value for which ' ' uses - or - CraftResource . None if an unregistered type was specified .
public static CraftResource GetFromType(Type resourceType)
        {
            if (m_TypeTable == null)
                return CraftResource.None;
            object obj = m_TypeTable[resourceType];
            if (!(obj is CraftResource))
                return CraftResource.None;
            return (CraftResource)obj;
        }
public static CraftResource GetFromType ( Type resourceType ) { if ( m_TypeTable == null ) return CraftResource . None ; object obj = m_TypeTable [ resourceType ] ; if ( ! ( obj is CraftResource ) ) return CraftResource . None ; return ( CraftResource ) obj ; }
Returns the  value for which '' uses -or- CraftResource.None if an unregistered type was specified.
Returns the value for which ' ' uses - or - CraftResource . None if an unregistered type was specified .
resourceType
Type