Scripts/Misc/ResourceInfo.cs
/// <summary>
/// Returns the <see cref="CraftResource"/> value which represents '<paramref name="info"/>', using '<paramref name="material"/>' to help resolve leather OreInfo instances.
/// </summary>
Returns the  value which represents '', using '' to help resolve leather OreInfo instances.
Returns the value which represents ' ' using ' ' to help resolve leather OreInfo instances .
public static CraftResource GetFromOreInfo(OreInfo info, ArmorMaterialType material)
        {
            if (material == ArmorMaterialType.Studded || material == ArmorMaterialType.Leather || material == ArmorMaterialType.Spined ||
                material == ArmorMaterialType.Horned || material == ArmorMaterialType.Barbed || material == ArmorMaterialType.Daemon)
            {
                if (info.Level == 0)
                    return CraftResource.RegularLeather;
                else if (info.Level == 1)
                    return CraftResource.SpinedLeather;
                else if (info.Level == 2)
                    return CraftResource.HornedLeather;
                else if (info.Level == 3)
                    return CraftResource.BarbedLeather;
                else if (info.Level == 4)
                    return CraftResource.DaemonLeather;
                return CraftResource.None;
            }
            return GetFromOreInfo(info);
        }
public static CraftResource GetFromOreInfo ( OreInfo info , ArmorMaterialType material ) { if ( material == ArmorMaterialType . Studded || material == ArmorMaterialType . Leather || material == ArmorMaterialType . Spined || material == ArmorMaterialType . Horned || material == ArmorMaterialType . Barbed || material == ArmorMaterialType . Daemon ) { if ( info . Level == 0 ) return CraftResource . RegularLeather ; else if ( info . Level == 1 ) return CraftResource . SpinedLeather ; else if ( info . Level == 2 ) return CraftResource . HornedLeather ; else if ( info . Level == 3 ) return CraftResource . BarbedLeather ; else if ( info . Level == 4 ) return CraftResource . DaemonLeather ; return CraftResource . None ; } return GetFromOreInfo ( info ) ; }
Returns the  value which represents '', using '' to help resolve leather OreInfo instances.
Returns the value which represents ' ' using ' ' to help resolve leather OreInfo instances .
info
OreInfo
material
ArmorMaterialType