Scripts/Misc/ResourceInfo.cs
/// <summary>
/// Returns a <see cref="CraftResourceType"/> value indiciating the type of '<paramref name="resource"/>'.
/// </summary>
Returns a  value indiciating the type of ''.
Returns a value indiciating the type of ' ' .
public static CraftResourceType GetType(CraftResource resource)
        {
            if (resource >= CraftResource.MIron && resource <= CraftResource.MSteel)
                return CraftResourceType.Metal;
            if (resource >= CraftResource.RegularLeather && resource <= CraftResource.DaemonLeather)
                return CraftResourceType.Leather;
            if (resource >= CraftResource.RedScales && resource <= CraftResource.BlueScales)
                return CraftResourceType.Scales;
            if (resource >= CraftResource.RegularWood && resource <= CraftResource.Frostwood)
                return CraftResourceType.Wood;
            return CraftResourceType.None;
        }
public static CraftResourceType GetType ( CraftResource resource ) { if ( resource >= CraftResource . MIron && resource <= CraftResource . MSteel ) return CraftResourceType . Metal ; if ( resource >= CraftResource . RegularLeather && resource <= CraftResource . DaemonLeather ) return CraftResourceType . Leather ; if ( resource >= CraftResource . RedScales && resource <= CraftResource . BlueScales ) return CraftResourceType . Scales ; if ( resource >= CraftResource . RegularWood && resource <= CraftResource . Frostwood ) return CraftResourceType . Wood ; return CraftResourceType . None ; }
Returns a  value indiciating the type of ''.
Returns a value indiciating the type of ' ' .
resource
CraftResource