Method | Description | |
---|---|---|
GetFromOreInfo ( |
Returns the CraftResource value which represents 'info' -or- CraftResource.None if unable to convert.
|
|
GetFromOreInfo ( |
Returns the CraftResource value which represents 'info', using 'material' to help resolve leather OreInfo instances.
|
|
GetFromType ( |
Returns the CraftResource value for which 'resourceType' uses -or- CraftResource.None if an unregistered type was specified.
|
|
GetHue ( CraftResource resource ) : int |
Returns the CraftResourceInfo.Hue property of 'resource' -or- 0 if an invalid resource was specified.
|
|
GetIndex ( CraftResource resource ) : int |
Returns the index of 'resource' in the seriest of resources for which it belongs.
|
|
GetInfo ( CraftResource resource ) : |
Returns a CraftResourceInfo instance describing 'resource' -or- null if an invalid resource was specified.
|
|
GetLocalizationNumber ( CraftResource resource ) : int |
Returns the CraftResourceInfo.Number property of 'resource' -or- 0 if an invalid resource was specified.
|
|
GetName ( CraftResource resource ) : string |
Returns the CraftResourceInfo.Name property of 'resource' -or- an empty string if the resource specified was invalid.
|
|
GetStart ( CraftResource resource ) : CraftResource |
Returns the first CraftResource in the series of resources for which 'resource' belongs.
|
|
GetType ( CraftResource resource ) : CraftResourceType |
Returns a CraftResourceType value indiciating the type of 'resource'.
|
|
IsStandard ( CraftResource resource ) : bool |
Returns true if 'resource' is None, Iron, RegularLeather or RegularWood. False if otherwise.
|
|
RegisterType ( |
Registers that 'resourceType' uses 'resource' so that it can later be queried by CraftResources.GetFromType
|
public static GetFromOreInfo ( |
||
info | ||
return | CraftResource |
public static GetFromOreInfo ( |
||
info | ||
material | ArmorMaterialType | |
return | CraftResource |
public static GetFromType ( |
||
resourceType | ||
return | CraftResource |
public static GetHue ( CraftResource resource ) : int | ||
resource | CraftResource | |
return | int |
public static GetIndex ( CraftResource resource ) : int | ||
resource | CraftResource | |
return | int |
public static GetInfo ( CraftResource resource ) : |
||
resource | CraftResource | |
return |
public static GetLocalizationNumber ( CraftResource resource ) : int | ||
resource | CraftResource | |
return | int |
public static GetName ( CraftResource resource ) : string | ||
resource | CraftResource | |
return | string |
public static GetStart ( CraftResource resource ) : CraftResource | ||
resource | CraftResource | |
return | CraftResource |
public static GetType ( CraftResource resource ) : CraftResourceType | ||
resource | CraftResource | |
return | CraftResourceType |
public static IsStandard ( CraftResource resource ) : bool | ||
resource | CraftResource | |
return | bool |
public static RegisterType ( |
||
resourceType | ||
resource | CraftResource | |
return | void |