KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Public Attributes | Properties | List of all members
PartResourceLibrary Class Reference

The PartResourceLibrary lets you retrieve information about a resource type, given its name or integer id. More...

Inheritance diagram for PartResourceLibrary:

Public Member Functions

 PartResourceLibrary ()
 
PartResourceDefinition GetDefinition (int id)
 Gets information about a resource, specified by its integer ID. More...
 
PartResourceDefinition GetDefinition (string name)
 Gets information about a resource, specified by its name as a string. More...
 

Public Attributes

PartResourceDefinitionList resourceDefinitions
 
string resourceExtension
 
string resourcePath
 

Properties

static PartResourceLibrary Instance [get]
 Use this instance to access the methods of this class More...
 

Detailed Description

The PartResourceLibrary lets you retrieve information about a resource type, given its name or integer id.

Constructor & Destructor Documentation

PartResourceLibrary.PartResourceLibrary ( )

Member Function Documentation

PartResourceDefinition PartResourceLibrary.GetDefinition ( int  id)

Gets information about a resource, specified by its integer ID.

Parameters
idThe integer ID of the resource
Returns
A PartResourceDefinition, which contains all the information about the resource
PartResourceDefinition PartResourceLibrary.GetDefinition ( string  name)

Gets information about a resource, specified by its name as a string.

Parameters
nameThe name of the resource, e.g. "ElectricCharge"
Returns
A PartResourceDefinition, which contains all the information about the resource

Member Data Documentation

PartResourceDefinitionList PartResourceLibrary.resourceDefinitions
string PartResourceLibrary.resourceExtension
string PartResourceLibrary.resourcePath

Property Documentation

PartResourceLibrary PartResourceLibrary.Instance
staticget

Use this instance to access the methods of this class


The documentation for this class was generated from the following file: