C# 클래스 Server.Items.CraftResources

파일 보기 프로젝트 열기: Grimoric/RunUO.T2A 1 사용 예제들

공개 메소드들

메소드 설명
GetFromOreInfo ( OreInfo info ) : CraftResource

Returns the CraftResource value which represents 'info' -or- CraftResource.None if unable to convert.

GetFromOreInfo ( OreInfo info, ArmorMaterialType material ) : CraftResource

Returns the CraftResource value which represents 'info', using 'material' to help resolve leather OreInfo instances.

GetFromType ( Type resourceType ) : CraftResource

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 ) : CraftResourceInfo

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 ( Type resourceType, CraftResource resource ) : void

Registers that 'resourceType' uses 'resource' so that it can later be queried by CraftResources.GetFromType

메소드 상세

GetFromOreInfo() 공개 정적인 메소드

Returns the CraftResource value which represents 'info' -or- CraftResource.None if unable to convert.
public static GetFromOreInfo ( OreInfo info ) : CraftResource
info OreInfo
리턴 CraftResource

GetFromOreInfo() 공개 정적인 메소드

Returns the CraftResource value which represents 'info', using 'material' to help resolve leather OreInfo instances.
public static GetFromOreInfo ( OreInfo info, ArmorMaterialType material ) : CraftResource
info OreInfo
material ArmorMaterialType
리턴 CraftResource

GetFromType() 공개 정적인 메소드

Returns the CraftResource value for which 'resourceType' uses -or- CraftResource.None if an unregistered type was specified.
public static GetFromType ( Type resourceType ) : CraftResource
resourceType System.Type
리턴 CraftResource

GetHue() 공개 정적인 메소드

Returns the CraftResourceInfo.Hue property of 'resource' -or- 0 if an invalid resource was specified.
public static GetHue ( CraftResource resource ) : int
resource CraftResource
리턴 int

GetIndex() 공개 정적인 메소드

Returns the index of 'resource' in the seriest of resources for which it belongs.
public static GetIndex ( CraftResource resource ) : int
resource CraftResource
리턴 int

GetInfo() 공개 정적인 메소드

Returns a CraftResourceInfo instance describing 'resource' -or- null if an invalid resource was specified.
public static GetInfo ( CraftResource resource ) : CraftResourceInfo
resource CraftResource
리턴 CraftResourceInfo

GetLocalizationNumber() 공개 정적인 메소드

Returns the CraftResourceInfo.Number property of 'resource' -or- 0 if an invalid resource was specified.
public static GetLocalizationNumber ( CraftResource resource ) : int
resource CraftResource
리턴 int

GetName() 공개 정적인 메소드

Returns the CraftResourceInfo.Name property of 'resource' -or- an empty string if the resource specified was invalid.
public static GetName ( CraftResource resource ) : string
resource CraftResource
리턴 string

GetStart() 공개 정적인 메소드

Returns the first CraftResource in the series of resources for which 'resource' belongs.
public static GetStart ( CraftResource resource ) : CraftResource
resource CraftResource
리턴 CraftResource

GetType() 공개 정적인 메소드

Returns a CraftResourceType value indiciating the type of 'resource'.
public static GetType ( CraftResource resource ) : CraftResourceType
resource CraftResource
리턴 CraftResourceType

IsStandard() 공개 정적인 메소드

Returns true if 'resource' is None, Iron, RegularLeather or RegularWood. False if otherwise.
public static IsStandard ( CraftResource resource ) : bool
resource CraftResource
리턴 bool

RegisterType() 공개 정적인 메소드

Registers that 'resourceType' uses 'resource' so that it can later be queried by CraftResources.GetFromType
public static RegisterType ( Type resourceType, CraftResource resource ) : void
resourceType System.Type
resource CraftResource
리턴 void