C# Class kOS.Suffixed.AggregateResourceValue

Inheritance: Structure
ファイルを表示 Open project: KSP-KOS/KOS Class Usage Examples

Protected Properties

Property Type Description
shared SharedObjects

Public Methods

Method Description
AddResource ( PartResource resource ) : void
AggregateResourceValue ( PartResourceDefinition definition, SharedObjects shared ) : System.Collections.Generic
FromVessel ( Vessel vessel, SharedObjects shared ) : ListValue
GetAmount ( ) : ScalarValue
GetCapacity ( ) : ScalarValue
GetDensity ( ) : ScalarValue
GetName ( ) : kOS.Safe.Encapsulation.StringValue
GetParts ( ) : kOS.Suffixed.ListValue
PartsToList ( IEnumerable parts, SharedObjects shared ) : kOS.Suffixed.ListValue
ToString ( ) : string

Private Methods

Method Description
InitializeAggregateResourceSuffixes ( ) : void
ProspectResources ( IEnumerable parts, SharedObjects shared ) : AggregateResourceValue>.Dictionary

Method Details

AddResource() public method

public AddResource ( PartResource resource ) : void
resource PartResource
return void

AggregateResourceValue() public method

public AggregateResourceValue ( PartResourceDefinition definition, SharedObjects shared ) : System.Collections.Generic
definition PartResourceDefinition
shared SharedObjects
return System.Collections.Generic

FromVessel() public static method

public static FromVessel ( Vessel vessel, SharedObjects shared ) : ListValue
vessel Vessel
shared SharedObjects
return ListValue

GetAmount() public method

public GetAmount ( ) : ScalarValue
return kOS.Safe.Encapsulation.ScalarValue

GetCapacity() public method

public GetCapacity ( ) : ScalarValue
return kOS.Safe.Encapsulation.ScalarValue

GetDensity() public method

public GetDensity ( ) : ScalarValue
return kOS.Safe.Encapsulation.ScalarValue

GetName() public method

public GetName ( ) : kOS.Safe.Encapsulation.StringValue
return kOS.Safe.Encapsulation.StringValue

GetParts() public method

public GetParts ( ) : kOS.Suffixed.ListValue
return kOS.Suffixed.ListValue

PartsToList() public static method

public static PartsToList ( IEnumerable parts, SharedObjects shared ) : kOS.Suffixed.ListValue
parts IEnumerable
shared SharedObjects
return kOS.Suffixed.ListValue

ToString() public method

public ToString ( ) : string
return string

Property Details

shared protected_oe property

protected SharedObjects shared
return SharedObjects