C# Class B9PartSwitch.PartExtensions

Exibir arquivo Open project: blowfishpro/B9PartSwitch

Public Methods

Method Description
AddOrCreateResource ( this part, PartResourceDefinition info, float maxAmount, float amount ) : PartResource
AddResource ( this part, PartResourceDefinition info, float maxAmount, float amount ) : PartResource
GetPrefab ( this part ) : Part
GetResourceCostMax ( this part ) : float
GetResourceCostOffset ( this part ) : float
LogError ( this part, object message ) : void
LogInfo ( this part, object message ) : void
LogWarning ( this part, object message ) : void

Method Details

AddOrCreateResource() public static method

public static AddOrCreateResource ( this part, PartResourceDefinition info, float maxAmount, float amount ) : PartResource
part this
info PartResourceDefinition
maxAmount float
amount float
return PartResource

AddResource() public static method

public static AddResource ( this part, PartResourceDefinition info, float maxAmount, float amount ) : PartResource
part this
info PartResourceDefinition
maxAmount float
amount float
return PartResource

GetPrefab() public static method

public static GetPrefab ( this part ) : Part
part this
return Part

GetResourceCostMax() public static method

public static GetResourceCostMax ( this part ) : float
part this
return float

GetResourceCostOffset() public static method

public static GetResourceCostOffset ( this part ) : float
part this
return float

LogError() public static method

public static LogError ( this part, object message ) : void
part this
message object
return void

LogInfo() public static method

public static LogInfo ( this part, object message ) : void
part this
message object
return void

LogWarning() public static method

public static LogWarning ( this part, object message ) : void
part this
message object
return void